[Zope] SQL and customise screen

2000-07-27 Thread Vincent DELHOMMOIS

Hi,

I would like to use an SQL request to search some data in an access
database.

The request need to be executed when somebody clic on a button (onclick="")

The result need to be displayed on the screen, but not on one line. I must
be able to place the results in different places on the document.

If somebody has any idea.

Vincent - Thanks

PS : At least, I must be able to customise the array display with the search
zope wizard



___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] SQL and customise screen

2000-07-27 Thread Diny van Gool

At 09:38 27-7-00 +0100, Vincent DELHOMMOIS wrote:
Hi,

I would like to use an SQL request to search some data in an access
database.

The request need to be executed when somebody clic on a button (onclick="")

The result need to be displayed on the screen, but not on one line. I must
be able to place the results in different places on the document.

May be you could use something like this:

form action="mylist" method="get"
table
  tr
tdinput type="submit" value="Click here"/td
  /tr
/table
/form

mylist (dtml-method):

dtml-let results="sql.selectWhatYouWant(REQUEST)"
  table
dtml-in results
  dtml-var yourdisplaymethod
/dtml-in
  /table
/dtml-let

In yourdisplaymethod (dtml-method) you can specify where you want to place
your results.

Diny



DIVA
Faculty of Veterinary Medicine
Utrecht University
The Netherlands
http://www.vet.uu.nl

___
Zope maillist  -  [EMAIL PROTECTED]
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 )