Re: [Zope] advanced web database question
Can you use a hidden field in the second page? say the table name is in form value 'table_name', in page 2, <input type="hidden" name="table_name" value="<dtml-var table_name>"> Anthony
"David Fu" wrote This problem bothered me for quite a long. I hope somebody can help me out.
Here is my project:
in FIRST page, I have table name list (using Radio to get user feedback). User clicks any of the table name and click submit button, he will be redirected to the second page.
in SECOND page, I have bunch of fields list (using Checkbox to get user feedback), which are associated with that table. After user chooses field / fields and submit it, he should be able to see the result table in the THIRD page.
FIRST page and SECOND page use table TableDef in database DB1; while THIRD page uses database DB2.
I can pass the table name from FIRST page to SECOND one by using FORM, and I can pass field/fields name from SEOND page to the THIRD page by using FORM too. But my question is How I can pass table name from FIRST page to the THIRD page because I have to use table name in the THIRD page. ( SQL query is: SELECT <dtml-var FieldsName> FROM <dtml-var TableName>; )
I try to use External Method to remember something. But it didn't work out.
Any help is highly appreicated.
--David
_______________________________________________ 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 )
-- Anthony Baxter <anthony@interlink.com.au> It's never too late to have a happy childhood.
participants (1)
-
Anthony Baxter