Forum OpenACS Development: Re: Retrieving ",multiple" from ad_form in widget proc

Collapse
Posted by Malte Sussdorff on
Hi Dave, thanks a lot for the explanation. I managed to get this done by only changing a single line:

Index: acs-tcl/tcl/form-processing-procs.tcl
===================================================================
--- acs-tcl/tcl/form-processing-procs.tcl (revision 462)
+++ acs-tcl/tcl/form-processing-procs.tcl (working copy)
@@ -809,6 +809,7 @@
if { $af_element_parameters($element_name:$flag) ne "" } {
return -code error "element $element_name: $flag attribute can not have a parameter"
}
+ lappend form_command "-$flag"
}

nospell -

It would be great to see this added to the toolkit, especially as we could get away with a lot of code that tries to figure out if something is multiple or not in the widget-procs.tcl But who knows, maybe there is some code written somewhere that relies on multiple not being set in the element create, so I leave this to the OCT to decide whether to pick it up or not.

Thanks again for the outline and hints.