[Zope] Newbie Question

Chris Meyers chris@hddesign.com
Fri, 2 Nov 2001 16:39:27 -0600


On Fri, Nov 02, 2001 at 04:39:52PM -0500, zope@virtosi.com wrote:
> On Fri, 2 Nov 2001, Lynn Mayes wrote:
> 
> > Hi there,
> > 
> > Looked through many archived mailing lists, and I don't see specifally what
> > I want - or I didn't look in the right place.  In any case, if this is an
> > old question, please forgive me.
> > 
> > Couple of things:
> > 1) Working with SQL tables through Zope - Have created queries, and they
> > work fine.  However, I would like to create one area (DTML method), where I
> > can have 3 different submit buttons, querying 3 different queries - I am
> > sure this is possible, I just am not too sure how, as this is still new to
> > me.  Want to have the user be able to pick what ever he/she wants to query
> > from one location.  
> 
> three buttons from one set of <FORM> tags??? (three forms would seem 
> easy..)

You could also assign separate actions to each button:
<form action="">
...
<input type="submit" name="query1:action1" value="Query 1">
<input type="submit" name="query2:action2" value="Query2">
...
</form>
Where action1 and action2 are the different actions that call the ZSQL Methods.

HTH,