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
Hi,
where can I find how to use it and how it works and what it is for :-)
Relational table management
Cheers
Denis
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
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?
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.
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?
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.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.