General information
Category:
Forms & Form designer
Title:
Problem with USE AGAIN & Multiple DataSessions
Hi All,
Have a form (FORM1) which uses the Default DataSession with a Local View (Will Call VIEW1) in the Form's DataEnvironment with Alias Property Set to 'Source' and NoDataOnLoad set to .T.
In the FORM1's LOAD Method there is Code similar to:
SELECT Source
{Create Indexes}
USE VIEW1 AGAIN IN 0 ALIAS Selected
{Create Indexes}
Code works with no problem and no View Parameter Prompt
Have a 2nd form (FORM2) with a Private Data Session, the same DataEnvironment & Load Method Code.
1. If I run FORM1 first, then do something that Queries VIEW1 (Global Data Session), and then run FORM2 (Private Data Session), I have no problem.
2. If I run FORM2 first and do something which queries VIEW1, and then attempt to run FORM1, the USE AGAIN Line in the FORM1's LOAD Method now asks for a View Parameter & I get an Error Message saying that 'ALIAS Source is Already In Use'...Looks like USE AGAIN with Views doesn't always respect Data Session Boundaries...
Anyone seen this?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only