DNNDev.com Forums Minimize
SP's with multiple recordsets
Last Post 10 Aug 2010 05:57 PM by Mark Guercio. 5 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Angus Beare
Advanced Member
Advanced Member
Posts:751
Avatar

--
28 Jul 2010 09:17 PM  
Anyone tried using XMP with multiple recordsets from a single stored procedure?

I was just wondering if it can be done? How would one refer to the fields?

Gus
if the only tool you have is a hammer you tend to see every problem as a nail.. http://www.carawaydesign.com
Derek Gentry
New Member
New Member
Posts:2
Avatar

--
06 Aug 2010 06:30 PM  
You cannot do it at this time. But there are other ways to accomplish this. Can you send me an example of what you are trying to do?

dgentry@infotrx.com
Angus Beare
Advanced Member
Advanced Member
Posts:751
Avatar

--
08 Aug 2010 12:01 PM  
Hi Derek

thanks, in the end I managed to pursuade the client to give me a separate SP for each recordset.

thanks
Gus
if the only tool you have is a hammer you tend to see every problem as a nail.. http://www.carawaydesign.com
Mark Guercio
New Member
New Member
Posts:64
Avatar

--
10 Aug 2010 04:54 PM  
Hi Derek,

Even though Angus found a solution perhaps you'd be willing to help me out with a very similar problem.

I currently have a classic asp application (basically a big form) that collects information from our accounting system via 4 seperate queries (these likely could be converted to stored procedures) then includes the result sets from the queries in the form as form fields.

I would definitely like to use XMP to port this application into DNN and our intranet, though I am stuck at including one than one queries recordset in a selectcommand.

How would I be able to include an additional set of 3 query results or the values from a multiple recordset stored procedure?

Is this possible using XMP?

Any light you can shine on this would be much appreciated.

Thanks for your help..

Mark
Derek Gentry
Basic Member
Basic Member
Posts:463
Avatar

--
10 Aug 2010 05:00 PM  
Of course. Always willing to help.

Yes XMP is a very powerful tool. You can create a master template with 4 seperate templates in it. Each one showing a different recordset. I cannot imagine (although not improbable) that you are trying to combine the 4 recordsets into one list template.

Maybe if you share with me a little info on the application itself I can help you design it.

Derek
Mark Guercio
New Member
New Member
Posts:64
Avatar

--
10 Aug 2010 05:57 PM  
I have one template, a searchsort that queries an external database of clients and uses a itemtemplate to return a list of clients that have met the search criteria, a hyperlink is displayed using a url parameter populated with the client number from the itemtemplate record.

The hyperlink is a redirect to an addform which uses the url parameter in a selectcommand to query an external databasetable to gather address information for the client number passed to it as the url parameter. It then populates addform fields with this additional address information.

All this is working beautifully so far...

Now..In addition to client address information I need to populate approximately 15 additional form fields based upon three queries from our accounting system. These queries are driven by the same parameter used in pulling in the client address information.

This is where I'm stuck. I need a way to return the results from three other queries (each query only returns one row.) and prepopulate additional fields in the addform.

hope this makes sense.. if not i can send screen shots.

Thanks..

Mark
You are not authorized to post a reply.

Active Forums 4.1
spacer
dummy