how to pass dynamic value in session
I want to store a dynamic value in dtml session...like.. <dtml-let data="sessionMgn.getSessionData()"> <input name="name" width=30 value=""> <dtml-call "data.set('name', nameobject)"> </dtml-let> now i want to pass on the value entered in textbox in session object that is nameobject...how do i do that..plz let me know how to do this in dtml.... in somewhere i found that as a method session value is passed ...so let me know with out python script is it possible to pass DYNAMIC VALUE to session.. help me out... reg
Hiya, I think you need to pass the variable through the REQUEST first into the form. I create forms something like this: <dtml-let data="SESSION.getSessiondata()"> <Dtml-if "REQUEST.form.has_key('Submit')"> <dtml-call "data.set('name', nameobject)"> </dtml-if> <form name="thisdocname"> ---> not the data.var name <input type='text' name='name'> <input type='Submit' name='Submit'> </form> </dtml-let> If anyone can add to this, please do. Cheers, Paz -----Original Message----- From: zope-dev-admin@zope.org [mailto:zope-dev-admin@zope.org] On Behalf Of P.Sanjay Sent: Thursday, August 16, 2001 12:16 PM To: zope-dev@zope.org Subject: [Zope-dev] how to pass dynamic value in session I want to store a dynamic value in dtml session...like.. <dtml-let data="sessionMgn.getSessionData()"> <input name="name" width=30 value=""> <dtml-call "data.set('name', nameobject)"> </dtml-let> now i want to pass on the value entered in textbox in session object that is nameobject...how do i do that..plz let me know how to do this in dtml.... in somewhere i found that as a method session value is passed ...so let me know with out python script is it possible to pass DYNAMIC VALUE to session.. help me out... reg _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
I answered this separately in private email, but the gist of it was: <dtml-call "data.set('name', scriptName(arg1, arg2)"> ... where scriptName is (perhaps) a PythonScript that returns a storable value. P.Sanjay wrote:
I want to store a dynamic value in dtml session...like..
<dtml-let data="sessionMgn.getSessionData()"> <input name="name" width=30 value=""> <dtml-call "data.set('name', nameobject)"> </dtml-let>
now i want to pass on the value entered in textbox in session object that is nameobject...how do i do that..plz let me know how to do this in dtml.... in somewhere i found that as a method session value is passed ...so let me know with out python script is it possible to pass DYNAMIC VALUE to session.. help me out... reg
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
-- Chris McDonough Zope Corporation http://www.zope.org http://www.zope.com "Killing hundreds of birds with thousands of stones"
participants (3)
-
Chris McDonough -
P.Sanjay -
Paul Zwarts