[SOLVED] Edit child records from master edit page |
5/26/2011 9:18:23 AM |
PHPRunner General questions | |
T
text author
I've done a fair bit of searching on the forums and cannot seem to find the answer I'm looking for. |
|
![]() |
Sergey Kornilov admin 5/26/2011 |
I guess you need to provide more clear example of what you trying to achieve. |
T
|
text author 5/27/2011 |
Thanks Sergey I guess you need to provide more clear example of what you trying to achieve. The example you referring to doesn't have anything with editing or with UI. It simply shows how to handle multi-select edit control a different way. Better yet, supply a a screenshot that explains what you trying to build. |
J
|
Jane 5/27/2011 |
Hi, |
T
|
text author 5/27/2011 |
Thanks Jane - the problem with that approach I think is that it does not allow the person editing the record to see what was previously checked does it ? Hi, you can use the similar code in the Edit page: Before record updated event for this purpose. For example you can remove all records in the detail table for current master record and then re-add selected values again. |
L
|
Lena 5/27/2011 |
Hi, |
T
|
text author 5/27/2011 |
Solved - thanks Lena, your suggestion worked. Just needed to link to subject table. Hi, as workaround you can add dummy varchar field "student_subjects" to the student table. Save subject ids for each student in the field. Then set Lookup wizard as checkbox list in the "Edit as settings" for student_subjects field on the student Add/Edit pages on the Visual Editor. Also there is a way to create custom control on the edit page, select values from detail table and create custom checkbox list with selected values. Actual code is dependent on your database structure. If you want to implement this scheme publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions of you you want to achieve. |