View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Inserting multiple selections from list/menu

Thread began 9/08/2009 6:21 am by dallySP | Last modified 12/11/2009 4:55 pm by dallySP | 3673 views | 20 replies

elizabeth130596

Update Multiple Select Options-- did you get it to work?

Hi - I have a table to update, we have successfully gotten the WA data assist behavior to insert a record with form fields that allow for multiple options.

Using hand-coding, putting the (implode) function ahead of the fields we are adding the options to, we get a comma-separated value inside the field in the database.

Great.

I am now building the Update form. In reviewing your post on this subject, I see that you went back and forth a few times regarding hand-coding the pages to allow for this. To review:

1. In order to update a field that contains a value of a comma separated array, one must first extract (explode) that array into a form that we can work with, putting it back into our check boxes, drop down lists.. whatever. We then have the update form with the already-selected options, selected on our update form. We do not want all of our users to have to reselect all of their options from scratch.

2. After the thing has been extracted, with the existing values pre-selected, we make our changes and use the update record behavior.

3. Since the behavior cannot recognize the multiple-options, we must then re-hand-code the options for that update behavior, adding the implode feature back into it. The results of this is that multiple options are put into the database as a comma separated array.

4. In this example, I will not be referring to checkboxes, since I am using all text fields.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...