Passing multiple cfprocresults out of a CFC

Ask a Question related to Coldfusion Component Development, Design and Development.

  1. #1

    Default Passing multiple cfprocresults out of a CFC

    Hi All. I have a stored procedure which returns two datasets. If I wasn't
    using a CFC, I'd just use two cfprocresult tags and access each as needed. But
    it is my understanding that a function can only return one query(among other
    datatypes) and it is assigned one variable name. How do I access multiple
    record sets from one CFC function? (I'm using CFMX 6.1) Thanks for your help!
    -Andy

    leontova Guest

  2. Similar Questions and Discussions

    1. Passing Multiple Checked options in Repeating Region
      Using PHP- I have a repeating region which pulls from MySql database. Each region has a checkbox with a unique dynamic value assigned. I need...
    2. Help! - Passing form data between multiple pages
      Hi, I am working on a multiple pages survey, right now if my user fill out page 1, click next, then fill out page2, page3, his answer will be...
    3. Passing multiple values accross a hyperlink ?
      Hi, I have a link as follows: <A HREF=""Tracker.asp?MovementID=" & RS("MovementID") & " PONumber=" & RS("PONumber") & """>" & RS("MovementID")...
    4. ampersand problem when passing multiple parameters in URL
      Hi, when I try to pass some parameters in an URL, I always get an URL where the ampersand is represented as '&amp;'. I tried: $url =...
    5. Passing multiple values using Response.Redirect
      hie there, i want to be able to pass multiple parameters to another page. currently, i am able to do so, but somehow i feel it is not the correct...
  3. #2

    Default Re: Passing multiple cfprocresults out of a CFC

    leontova wrote:
    > Hi All. I have a stored procedure which returns two datasets. If I wasn't
    > using a CFC, I'd just use two cfprocresult tags and access each as needed. But
    > it is my understanding that a function can only return one query(among other
    > datatypes) and it is assigned one variable name. How do I access multiple
    > record sets from one CFC function? (I'm using CFMX 6.1) Thanks for your help!
    How about returning a struct that has two memebers, one for each result?

    --
    Danilo Celic
    | Extending Knowledge, Daily [url]http://CommunityMX.com/[/url]
    danilocelic *TMM* Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139