close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Multiple Tables in Data Assist Admin Pages

Thread began 9/10/2009 1:29 pm by elewis93815 | Last modified 10/04/2009 8:00 am by elewis93815 | 3398 views | 9 replies

georgina_barrett_187762

I have 3 tables: a Book table, a Category table and a CategoryList table that is a join table for the other 2. It stores book ids and category ids.

I created a recordset to list all the categories and then used a repeat selection around a checkbox to display all the categories with checkboxes next to them.

I have successfully created an insert form that inserts a book as a single insert and on the same page a multiple insert that inserts all the categoryids from the category table into the category list table via the checkboxes on the page (I hope you can understand this)

I also did the manage relational tables for all 3 (I wasn't sure if this was necessary)

This all works perfectly.

I am now trying to do the same with the update page but I am having a problem tying the current data into the check boxes. I have successfully created the update form for the single update of the books. I have created a recordset to list all the categories (as I did on the insert page) But I don't know how to check the checkboxes that are already listed in the database. I guess I need to create another recordset to display all the categorieslist ID's that are associated to that book - but I don't know how to tie these together. Also when I update the form the categoriesList table doesn't update. I suppose I could simply use an insert multiple form for the categoriesList table and force the user to check all the categories again but it would be more professional if I could display the current ones and allow them to add/remove the ones they want.

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