Hello. In my DTML document I set a temporary variable called 'price' to 0 using the following statement: <dtml-call "REQUEST.set('priceNumber', 0)"> Then, I try to access this variable in my DTML method by using the following: <dtml-var "REQUEST.get('priceNumber')"> and 'None' is echoed. I have also tried printing the entire REQUEST object using the following: <dtml-var name="REQUEST"> and this variable is not found in the list of variables mentioned. The suprising part is that I have tried the same thing with another variable called 'degreeNumber' and everything works just fine. I don't think it's a naming issue since I have tried serveral other names. Any help would be greatly appreciated. Thanks. - Asad
Hello. In my DTML document I set a temporary variable called 'price' to 0 using the following statement:
<dtml-call "REQUEST.set('priceNumber', 0)">
Then, I try to access this variable in my DTML method by using the following:
<dtml-var "REQUEST.get('priceNumber')">
and 'None' is echoed.
try <dtml-var priceNumber> REQUEST variables only last as long as the dtml method is executing. If you send the user to another page (eg an html form) the priceNumber variable will not be available when the user returns (you have to send the variable data to the form and have the form send it back again)
I have also tried printing the entire REQUEST object using the following:
<dtml-var name="REQUEST">
and this variable is not found in the list of variables mentioned.
try <dtml-var REQUEST> HTH Jonathan
Asad Habib wrote at 2004-1-23 10:12 -0500:
Hello. In my DTML document I set a temporary variable called 'price' to 0 using the following statement:
<dtml-call "REQUEST.set('priceNumber', 0)">
Then, I try to access this variable in my DTML method by using the following:
<dtml-var "REQUEST.get('priceNumber')">
and 'None' is echoed.
I have also tried printing the entire REQUEST object using the following:
<dtml-var name="REQUEST">
and this variable is not found in the list of variables mentioned.
The suprising part is that I have tried the same thing with another variable called 'degreeNumber' and everything works just fine. I don't think it's a naming issue since I have tried serveral other names.
A long time (years) ago, I analysed a similar problem. It turned out to be a DTML caching problem. I no longer remember the details. Maybe, you find my post in the mailing list archive... -- Dieter
participants (3)
-
Asad Habib -
Dieter Maurer -
Small Business Services