RE: [Zope] Automatically go to another page after query results?
I did something like that the two weeks ago. After saving the info, I wanted to send them back to a certain page, and tell them that the info was saved successfully. Admin_editSectionForm is the page I wanted to send them to sectionSaved is a parameter I wanted to pass. <dtml-let pageLocation="'Admin_editSectionForm' + '?sectionSaved=1'"> <dtml-call expr="RESPONSE.redirect(pageLocation)"> </dtml-let> I remember having to use the dtml-let to build the location and querystring because I was having the same problem as you. So I just built a string that represented the location, then simply redirected to the content of that variable string. Worked nicely. hth, Tommy Innovation: The Best Way To Predict The Future ... Is To Create It.
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Bob Campbell Sent: Thursday, July 26, 2001 3:03 PM To: Zope@zope.org Subject: [Zope] Automatically go to another page after query results?
Hello all, Can anyone help Sheree, cause I certainly can't..., I'm still chunking away at the basics... Thanks!
Here is the scenario.... (all of this is generated from a database)
A user looks at the Officer info page and then clicks Modify to change the information. In the Modify page, once the user clicks Submit, the update is made and I then need to and send the user to back to the Officer info page.
I've been trying RESPONSE.redirect but cannot figure out syntactically how to pass the parameters...
RESPONSE.redirect('cltest?var1=<dtml-var var1in>')
The above causes var1 to be equal to the actual text of <dtml-var var1in>
So what I need to do is... within a dtml method I want to automatically go to another page (need to pass parameters as well) after certain steps are performed such as an update query
In Cold Fusion I was able to do this using the CFLOCATION tag.
Hope someone can help!
Sheree Beaudette, AVP
Applications Support Analyst Banknorth Group, Commercial Services 207-828-7133 Fax: 207-756-6990 sbeaudette@banknorth.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
I did something like that the two weeks ago. After saving the info, I wanted to send them back to a certain page, and tell them that the info was saved successfully.
Admin_editSectionForm is the page I wanted to send them to sectionSaved is a parameter I wanted to pass.
<dtml-let pageLocation="'Admin_editSectionForm' + '?sectionSaved=1'"> <dtml-call expr="RESPONSE.redirect(pageLocation)"> </dtml-let>
The real solution is to move business logic like this into a python script.
participants (2)
-
Steve Drees -
Tommy Johnson