Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Session switched with ExpandTemplate
Message
De
22/09/2002 16:22:47
Joel Leach
Memorial Business Systems, Inc.
Tennessie, États-Unis
 
 
À
21/09/2002 18:33:15
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00703117
Message ID:
00703183
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform