View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Manage Relational Tables: Relational Table Not Updating

Thread began 5/25/2009 4:45 pm by Nigel | Last modified 6/02/2009 8:50 am by Nigel | 1342 views | 6 replies

Nigel

Manage Relational Tables: Relational Table Not Updating

OK, after burning up way too many hours on this, I give up, I cannot get the MRT behavior to work. I'm trying to update the itemcolors table, which is a lookup table for my product options, linking ItemID to ColorID. I added the product options using the Insert Multiple Records behavior, that worked fine. Now I need to offer the ability to update that table, so after updating all other fields (product name, description, image, etc.,) the ItemID is passed in the URL to the item-update-options.php page.

STEPS. I created a checkbox list, bound the variables from the colors table, and applied a repeat region driven by a recordset from the colors table. I then applied the MRT behavior using the ItemID from the URL ($_GET['ItemID'] as the key value.

RESULTS. The checkbox list displays correctly, all the options are displayed and only the ones in the lookup table are checked. However, if I check or uncheck any options and submit, the page reloads (no redirect specified) and the original options are restored, i.e., the lookup table is not updated. I removed everything and started from scratch multiple times, I don't know what I'm doing wrong.

BTW, I've used the MRT before on another site and after a brief struggle I wrestled into submission. I've compared the code and the only differences I can see are that I previously used a session variable for the key value in step 2 of the wizard; and there is no repeat region outside of the DA repeat selection behavior, whereas in my current page DA left my repeat region and inserted it's repeat selection inside of it.

[Code removed for brevity.]

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...