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

How to create a detail and / or results page that displays content from a multiple choice list

Thread began 8/12/2013 12:51 pm by jonas374655 | Last modified 8/26/2013 2:28 pm by jonas374655 | 943 views | 9 replies

Jason ByrnesWebAssist

after following the Manage Relational table tutorial, the WADAitems recordset on my details page looks like this:

SELECT ItemID, `itemcategory`.`ItemCatName` AS itemcategory_ItemCatName, ItemName, ItemShortDesc, ItemLongDesc, ItemPrice, ItemSKU, ItemThumb, ItemImage, ItemWeight
FROM items LEFT JOIN itemcategory ON itemcategory.ItemCatID = items.ItemCatID
WHERE ItemID = ParamItemID



This is returning details from the items table, and the related category name from the itemcategory table. the ParamItemID variable used in the where clause is the ItemID URl variable that is used to tell the details page which item to display.

to return the related genres, you would need to edit the recordset to include the genres.GenreName column in the select statement, and include left joins for the itemgenres and genres tables:

SELECT ItemID, `itemcategory`.`ItemCatName` AS itemcategory_ItemCatName, ItemName, ItemShortDesc, ItemLongDesc, ItemPrice, ItemSKU, ItemThumb, ItemImage, ItemWeight, genres.GenreName
FROM items
LEFT JOIN itemcategory ON itemcategory.ItemCatID = items.ItemCatID
LEFT JOIN itemgenres ON itemgenres.ItemGenreItemID = items.ItemID
LEFT JOIN genres ON itemgenres.ItemGenreGenreID = genres.GenreID
WHERE ItemID = ParamItemID



Then add the genres.GenreName binding to the page and add a repeat region around it.

Doing this on the results page would be more problematic, you would need to use a nested recordset to do this on the results page.

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