activeCheckboxList/activeDropdownList - how to populate from one table and save to another?
Posted 22 April 2010 - 07:07 PM
For example, I need a list of Issue A, Issue B, Issue C, and Issue D (from issue_types table); then save each checked issue into it's own row in the Issue table - or update, if the row has already been inserted.
For some reason this has turned into a nightmare, and I can't figure out how to do it with Yii. It seems really basic, so I thought I'd ask in case I'm missing something. Does anybody have suggestions?
Posted 23 April 2010 - 01:00 AM
Posted 23 April 2010 - 11:51 AM
I looked over the tabular input page, which is what I've used for other projects - but since each checkbox needs extra information along with it (like a primary key and such) to check if it exists, how would I do that? When the checkbox array gets passed along, there's not a good way to assign each piece of the array it's PK (if one even exists).