Kevin H ha scritto:
> I have a TG Form, which has a CheckBoxList as one of its fields
>
> I want to set the options of the CheckBoxList field based upon a
> variable/parameter which changes per request.
>
> How can I do this? Is there a way to set a widget param from within
> my controller? Can I access the request from within update_params?
>
> I'd post my code, but at this point I'm not even sure I could read
> it. It's totally non-functional. I've been over and over this and I
> think I've tied my brain in knots. Any help would be appreciated.
>
> Kevin Horn
>
>
you can pass in the same manner data, options and attr of all widgets...
(for example the availble_data of a select_shuttle).
form_params = dict(value = {},
available_options = {}, #for
select_shuttle
options = {}, #for select input widget
attrs = {}, # for tag attributes.
)
--
+------------------------------------------------------------+
Glauco Uri - Programmatore
glauco(at)allevatori.com
Sfera Carta Software(r) [EMAIL PROTECTED]
Via Bazzanese,69 Casalecchio di Reno(BO) - Tel. 051591054
+------------------------------------------------------------+
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---