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