Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Session switched with ExpandTemplate
Message
From
22/09/2002 16:22:47
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
 
 
To
21/09/2002 18:33:15
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00703117
Message ID:
00703183
Views:
16
>I've been working for a while in trying to troubleshoot a situation and here's what I have concluded:
>
>I have several datasessions opened in my Web framework. Just before calling Response.ExpandTemplate(), SET('DATASESSION') returns 2. However, if the template being expanded contains SET('DATASESSION'), it always returns 1. I added a hook in it to print the datasession and, for some kind of reason, it resets to the default datasession when expanding a template. This is causing us a major problem. Anyone has a workaround for that?
>

Objects in VFP remember what datasession they are in. When this causes a problem, I usually pass the datasession I want as a parameter, and change the datasession inside the method being called. I don't know anything about Web Connection, but if you can change the datasession before creating the Response object, it may work without passing a parameter.
Joel Leach
Microsoft Certified Professional
Blog: http://www.joelleach.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform