Bertrand
 
This helps tremendously - fortunately I only have to worry about
processing the checked items... although the trick of putting the
names into a hidden field is really neat!
 
I assume that I then need an array in flowscript to iterate through
the parameters... are there any Cocoon samples that show this,
or should I rather look elsewhere?
 
Thanks
Derek

>>> [EMAIL PROTECTED] 2006/02/22 02:31 PM >>>

Le 22 févr. 06 à 08:14, Derek Hohls a écrit :

> ...The problem, though, is how to
> get all the IDs of all checkboxes that have been checked,
> where the total number of checkeboxes and their IDs, vary
> from case to case...

If you cannot use CForms, the easiest IMHO is to use naming  
conventions for your checkboxes - if all checkbox names start with a  
common prefix, you could enumerate the request parameters to find out  
which ones are checked.

The case of unchecked ones is harder, as in that case the parameter  
is simply not present. For that case, I'd add a hidden field which  
allows you to know which checkboxes exist, for example

<input type="hidden" name="cb_group_enum_1"  
value="cb_1_1,cb_1_2,cb_1_3"/>

So that your flow can have the complete list.

Or, if you have a naming convention, just knowing how many options  
there are might be enough:

<input type="hidden" name="cb_group_count_1" value="3"/>

There are many different tricks to handle that, and it's not specific  
to Cocoon - you might find better solutions around, but that's the idea.

Hope this helps,
-Bertrand




-- 
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
 
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
[EMAIL PROTECTED]


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to