Skip to main content
Known Participant
May 8, 2007
Question

CFsearch as datasource

  • May 8, 2007
  • 1 reply
  • 297 views
Is there a way to turn CFsearch results into a dynamic datasource that can be easily used with Spry datasets? I would like to return a CFsearch result into a Spry table, but am having a mental block on the possible solution. I've thought of creating a static XML page from search results, but that sounds clunky. Any ideas out there?

Thanks,
This topic has been closed for replies.

1 reply

Inspiring
May 10, 2007
From the documentation it seems like you should be able to use <cfcollection action="list"> in conjunction with some code that converts a CF recordset into XML (I've seen some custom tags floating around that do that). You'll just have to make sure you format the XML in a way that will work with Spry (Spry doesn't play well with too many nested elements).