on 10-15-2007 10:11 PM
I have two queries that return the same result (same columns, different rows). I'm running one or the other based on a condition. I want to assign the result to something so that I can run a repeater against it after (one of the two) queries has run.
Cond .... 3rd leg(After condition)
/
Query 1 Query 2 Repeater
Paul,
If your two queries (different Query Templates?) both return the exact same columns, but just different rows, wouldn't it make more sense to just have a single Query action block instead of a conditional branch? This way your Repeater logic could just work directly on the single query results and you wouldn't have to map or copy any xml objects around.
You could use the stringif function in the expression editor to handle the specifics of your current Query1 and Query2, even adjusting the QueryTemplate property of the action block itself if necessary. The effective use of query parameters and/or the template(s) themselves should make this quite possible and streamlined in your logic flow.
Regards,
Jeremy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a local parameter of type "XML" (in the BLS workbench menu). Use an "Assign XML" link to copy the output from the query that you executed to:
Local.YourParameter
That's all you need to do!
You can then use the Local parameter as the input to your Repeater...
Rick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.