This topic is locked

Set multiple checkbox list on Edit page

10/30/2014 6:16:43 PM
PHPRunner General questions
H
headingwest author

There is an article here:

http://xlinesoft.com/phprunner/docs/select_multiple_values.htm
That shows how to save a multi-select checkbox into the database as mulitple records.
But how do I read it back into my edit/view pages?
What I want to do is use the "Process Record Values" event and set $values['RecordID'][n] = 1 but I can't find the array of $values for a multi-select.
Thanks for any help.

Sergey Kornilov admin 11/4/2014

Unfortunately it's not that easy. This sample code is intended to work on the Add page only. Making a fully-functional Edit control is more complicated. Usually things like this are implemented via Edit control plugins: http://xlinesoft.com/phprunner/docs/how_to_create_your_own_edit_control.htm
I would say that using the built-in functionality where multiple selection is stored as a comma separated list of values is much easier.