In my report form object, I have a problem where a cursor disappear when I change data sessions.
Here's the main operations.
1. Do ThisForm.DataEnvironment.OpenTables()
2. In my form Init(), CREATE CURSOR TEMP ...
3. In my report button I save the current data session, switch to another and come back to the form data session:
lnDataSession=ThisForm.DataSessionId
SET DATASESSION TO 1
SET DATASESSION TO lnDataSession
4. Cursor TEMP is not available anymore.
Could it be that cursor TEMP is not part of the private data session of my form because I create it after my ThisForm.DataEnvironment.OpenTables()?
If I put the SET DATASESSION TO 1 in comments, I don't have any problem.