close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Relational table management

Thread began 8/18/2010 1:24 pm by Cologne | Last modified 8/18/2010 5:00 pm by Jason Byrnes | 1357 views | 5 replies |

Cologne

Relational table management

Hi,

where can I find how to use it and how it works and what it is for :-)


Relational table management


Cheers
Denis

Sign in to reply to this post

Jason ByrnesWebAssist

there is no in depth how to for the manage relational table behavior.

It is used to manage a linking table.


A linking table is used to create a many to many relationship between two tables.

for example, lets say you have a products table and a categories table and you would like to assign multiple categories to each product, you would need to use a linking table to create the many to many relationship.

The available documentation for the manage relational table behavior is in the help:
index.htm

Under Features -> Managing Multiple Records -> Manage Relational Table

Sign in to reply to this post

Cologne

Hi jason,

so I hope I understand...its some to collect information of two other tables? maybe I can use it for my site.

ARTIST
INSTRUMENTS

so I create a new table artistInstruments

and in this table I store hte artistID and the selection of instruments, the artist plays?

Artist1 plays guitar, drums, bass

is that right?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, you would create a third table:
artistInstrament:
artistinstramentID - primary Key
artistID - Foriegn Key relation to the artist.artistID
instrumentID freign key relation to the instruments.instrumentID

and the manage relational table would allow you to assign the instruments to he artist.

Sign in to reply to this post

Cologne

OK,

so, i create an insert page. 2 recordsets, artist and istruments.

then i create the formular with both recordsets.

and to insert the date i use the relation table manager

ist that correct?


How can I ad more information, like, for every instrument the quality the user paly it?

Sign in to reply to this post

Jason ByrnesWebAssist

start with a regular artist insert or update page as created by the data assist wizard.

In the Insert or Update record behavior, not the Store As name in the session variable section, make sure this session exists on the bindings panel, if not you will need to add it manually. Click the plus button and select session variable and set the name to the one from the insert or update Store As.

Then create a recordset for the instruments.

Add a checkbox element to the artist form for the instruments, set it's checked value to be the instrument ID, and add a repeat region around it to display a checkbox for each posible instrument.
Then add the Manage relational data behavior.


On the first step of the wizard, set the trigger and select the relation table (This is the new table you have created)

On the second page, you set the main table join. In this case, the column that joins to the artist table. for the foreign key select the artistID column, set the type to number, click the lightning bolt next to value and select the Session Value from the Store As section of the Insert or Update behavior.


On the third page, you configure the options table join. in this case, that is the column that joins the instruments table. Select the instrumentID column, set the type to number. The options form field should already be set to the instrument checkbox.


you will not need to make any changes on the fourth step.

Sign in to reply to this post

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