Robert,
The only form you were needed to change was the Lookup form, where instead of Private DS you would use Default DS (set it in design-time).
Here is how it works:
Parent form has a private DS
Child form (called by parent) has Default DS
Thus child form automatically shares parent's DS. No manipulation with DS is required.
I believe this idea was initially introduced by John Koziol 7 or more years ago.
>Lots of forms call this picker form and and I'm looking for a way to easily manage this task of reusing the tables.
>Assigning the 'Thisform.DataSessionId = _screen.ActiveForm.DataSessionId' in the form's init method fits perfectly and I don't have to change every single form.
>
>>>Hi Martina,
>>>
>>>I was thinking of trying this way today. Thanks for advice.
>>>
>>
>>Why you don't want to use default datasession to share parent's private DS? Or do you want to ensure using private DS in case there is no "caller" form?
If it's not broken, fix it until it is.
My Blog