Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Expandtemplate does not evaluate
Message
De
24/10/2001 15:18:39
Charles Richard
Nvo Management Systems
Boisbriand, Québec, Canada
 
 
À
23/10/2001 11:31:12
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00571889
Message ID:
00572846
Vues:
24
I got it working the way you suggested so I went ahead and created an object with custom methods to return values I need in a template. I create the object as private just before executing response.expandtemplate. The template contains:
<<\%=oFormVars.GetDateRange()\%>>
The resulting page shows:
< \% ERROR: oFormVars.GetDateRange \% >>
So I creates a private var (lcTestMessage) with some text in it. This fails too. Finally, I put
<<=TYPE('lcTestMessage')>>
and the value in the web page is
U
. According to the Web Connect samples, this should work. What gives?

TIA
>Use an equal sign before date() like this
>
>
>
><<\%=date()\%>>
>
>
>
>Glenn
>
>
>>I have decided to use expandtemplate for the first time so I set up a simple process which executes as follows:
>>
>>response.expandtemplate('testtemplate.wc')
>>
>>testtemplate.wc contains date() within the proper open and close percentage tags. (I can't show the contents here, UT says I am not allowed to put tags in my text)
>>
>>The resulting page contains everything in the testtemplate.wc but the date() function is not evaluated. Why?
>>
>>
>>TIA
Charles Richard
NVO Management Systems
crichard@nvo.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform