QCheckboxList: how do i get the checked values of QCheckboxList

Login or register to post comments
1 reply [Last post]
Offline
Joined: 06/15/2010

i have inserted a QCheckboxList to my page.

i need help on how i can get the checked values and the best way u think one should store it in the database.

i'll appreciate urgent reply pls.

alex94040's picture
Offline
Joined: 11/06/2008

QCheckBoxList is a control that inherits from QListControl. QListControl has a property called SelectedItems - and also SelectedValues. Inspect those.

You can learn all that from inspecting the code of the QListControl, or by reviewing the documentation: http://api.qcu.be/#http://qcu.be/view_documentation.php?url=Controls/QLi...

How to store results form a QCheckBoxList in the database: I'd recommend an association table. You're fundamentally allowing the user to pick several entities that are relevant to the edited object. You thus have a many-to-many relationship.