On Fri, 2002-04-26 at 08:27, McDonnell, Larry wrote:
Hi,
I am new to the Zope environment but I have been successful. I have been able to add odbc database connection and through a form input information to this database. Now I would like to view this information. I have set up z sql methods and I can see the info under the manage_test format. I would like to be able to re-populate my output form (its a copy of the input form but without the submit). I have gone through the zope book but maybe I missed something. Any examples or pointer I can use, thanks.
This sounds like the exact issue I was dealing with a few weeks ago. I wanted to use one form for both input and review. Attached to this email are some files that make up my solution. The basic idea is to have a generic form that gets included either by the input or the edit pages. I also have a python script included that populates the REQUEST object with the results from the database. What I'm doing here is quite possibly the clumsy way to solve the problem, but it worked for me. (I've since moved on to a more ZPT centric way of doing things). The 'edit' page is the primary page, and calls all the others. I hope this helps. -- Colin Fox cfox@crystalcherry.com CF Consulting Inc. GPG Fingerprint: D8F0 84E7 E7CC 5C6C 9982 F1A7 A3EB 6EA3 BC97 572F