sean:
Hi John,To be honest it’s not exactly clear what you are trying to do. Perhaps you should include the content of the other methods you have referenced, also which forms are based on which data sources.
It’s important to understand that all forms having the same data source will share the same foundset instance by default. Therefore, you might see something loaded in one form affect another. It’s possible to change which foundset a form uses by calling its controller. i.e. controller.loadRecords(myRelation). This will switch the foundset that is controlled by the form. Another approach is to use named/separate foundsets. This guarantees that a form will use its own, separate foundset instance.
Some docs on this: https://docs.servoy.com/reference/servo … edfoundset
Hope this helps.
Best,
Sean
When I do ’ controller.loadRecords(myRelation) ’ for whatever reason it’ll load the Relation… but not the record the relation is connected to.
Essentially have a ‘Main’ Record and a ‘Related’ Record. These are connected by a shared ‘Key Value’.
When I load the Related Record by itself, for whatever reason it doesn’t load the Main Record. However, when I load the Related Record & then the Main Record one after the other it’ll work… if it’s the most recently created Related Record.
Not sure how to get around this. Do I need to set something up so that the Relation automatically loads the Main Record via the Key Value? Or do I have to load both of them somehow.