Skip to main content
Participant
December 4, 2008
Question

spry filter

  • December 4, 2008
  • 1 reply
  • 467 views
i am attempting to display a list of comments beneath an image, using 2 xml datasets. what i would like to do is filter the comments dataset depending upon the current image.
i have been using the spry filter() function and can successfully filter my dataset if i use a number or a string as an argument. what i want to do is pass in a dataset variable.

Alternetively, is there another method i should consider ?
This topic has been closed for replies.

1 reply

Inspiring
December 4, 2008
crushfor wrote:

> if (row["ImageID"] == {dsimages::imageID})

The Spry tokens are not replaced, and as such, the token you're using has no direct value. You'd need to access the dsimages JavaScript object to access the imageID value. Sorry I've not worked much with the datasets so I don't know specific syntax to get that value out, but you should ask Spry questions in the Spry forum:
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602



--
Danilo Celic
| http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert