close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Repeat Selection on a recordset using Dynamic Parameters

Thread began 4/07/2011 12:18 pm by markhaynes75235 | Last modified 4/14/2011 12:49 pm by markhaynes75235 | 861 views | 2 replies


Repeat Selection on a recordset using Dynamic Parameters

I've got a page that uses the Accordion .js to display event data from a recordset in a repeat region. Inside each repeat region is a dynamic thumbnail image in a Repeat Selection behavior set to show a set of 8 images with recordset navigation. This works fine in the first repeat region but in subsequent ones, the filtering I've used is only calling the last image from the first set of 8 in the previous loop. The original query looks like this:

SELECT events.idevents, events.eventStatus, events.eventStatusID, event_album.idevent_album, event_album.eventID, event_album.eventImgURL, event_album.eventImgWdth, event_album.eventImgHt, event_album.eventImgAlt, event_album.eventImgThumbURL, event_album.eventImgThmbWdth, event_album.eventImgThmbHt, event_album.eventImgThmbAlt, event_album.eventImgStatus, event_album.eventImgStatusID
FROM events, event_album
WHERE events.idevents = event_album.eventID AND event_album.eventImgStatusID = 1

As you can see the WHERE clause filters on the events.idevents = event_album.eventID. The eventImgStatusID is an on-off switch to enable or disable the display of each image.

I've tried adding a dynamic parameter named MMPhotoParam:

WHERE events.idevents = event_album.eventID AND event_album.eventID = MMPhotoParam AND event_album.eventImgStatusID = 1

The MMPhotoParam references $row_rsEventDtls['idevents'] from the EventDtls recordset which is prior to the current recordset. I set the parameter to use default value of 1 and this gives me the same results.

I've removed the events.idevents = event_album.eventID from the query and I get the same results, possibly because the default value for the parameter is 1, so I changed it to 0 and the page displays 8 thumbnails - 4 of the first image and 4 of the second image in the first loop. In the second loop only the 8th image in the first loop is displayed.

I'm sure that there's a way to write the query so that the data is displayed properly - perhaps I need to move the query inside the repeat region. Any help or advise on how to get this working would be greatly appreciated.

enthusiastically, etc...

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





Ease of use


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