Skip to main content
Inspiring
May 17, 2007
Question

cfprocresult

  • May 17, 2007
  • 1 reply
  • 434 views
My cfprocresult gives me a structure...
i can use cfdump see values...

what is best way to loop thorugh the result and find list of my id?

i get
id, name, sal as structure

Please let me know.
    This topic has been closed for replies.

    1 reply

    Participating Frequently
    May 17, 2007
    the name parameter that you used in your cfprocresult tag becomes the name of a query, so you can use the query attribute in cfloop, cfselect, and cfoutput, etc., to loop through this "query":

    <cfprocresult name="your_result">

    <cfoutput query = "your_result">
    #id# <br>
    </cfoutput>

    .....etc...

    Phil