Hi
After struggling some time with data session switching behaviour, I've ended using utility methods that rely on current form data session by storing reference of object into forms properties.
One example of something that didn't work.
oApp.oTableUtils = CREATEOBJECT('tableUtils')
in main program
and then
oApp.oTableUtils.navigateTable({alias},'next')
at form level didn't worked because data session was switched
But this work if in form Init a reference to utility object is stored in a form property
thisform.oTableUtils = CREATEOBJECT('tableUtils')
thisform.oTableUtils.navigateTable({alias},'next')
SET DATASESSION command is not needed.
>Hello Dorin
>
>That sounds like it would work, because oToolBox was then created on the 'formlevel'. however, if possible i prefere not to do this, because then i have 2 oToolBox objects.
>
>but as a last resort i'll have to do this.
>
>i is just strange that the set ds to does not work - what is for then?
>
>thanks for your help.
>
>