How do I add multiple values for a single object?

thread: 2 messages  |  last: a year ago  |  started: friday, march 26, 2010, 5:15 pm pdt


#1  |  kingwithin (San Francisco, CA) United States of America
Friday, March 26, 2010, 5:15 PM PDT

Wanted to get some best-practices rather than coming up with some hack:

I am going to have an XML call which may return an unknown number of Account Names potentially.  

I'd like to display that information in a QForm, where each is the value for a checkbox.

When someone selects different values, then presses the btnSave, I save them all at once.

Is there something perhaps QCodo best practice which would help me to do this?  

Thanks!

#2  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Saturday, March 27, 2010, 7:37 AM PDT

I'd suggest using a QCheckBoxList, which acts similar to a multi-select QListBox, except that it will display as a list of checkboxes instead of a multi-selectable listbox.

There are ample examples for QListBox in the Examples site -- you can basically use those to base your QCheckBoxList implementation on.



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.