Joined: 19 Jun 2012
Location: Australia
Online Status: Offline
Posts: 16
Topic: Subreport instance-specific param's Posted: 10 Sep 2012 at 4:11pm
Suppose a subreport calls a stored procedure. My Understanding is that regardless of the number of instances of the subreport in a given execution, the stored procedure gets called only once. Is there any way to change this configuration, such that I can pass subreport instance-specific parameters to the stored procedure, providing different results for each subreport instance?
A world of unexamined lives is a waste of a world!
Joined: 19 Jun 2012
Location: Australia
Online Status: Offline
Posts: 16
Posted: 11 Sep 2012 at 1:30pm
Hi DBlank
Thanks for your reply.
Not too sure of what you mean by 'where', but if this helps: The report is an event calendar, in which each event is a record in the main report. One of the subreports is 'Sponsors' (optional) which sometimes has more than one record per event, which I'd like to group together as a comma separated sentence, but I'm finding that rather difficult. I'd hence like to just write a stored proc to do this for me, but to make the stored proc shorter, it'd be great if I could call it once per event rather than just once per report, but as I said, my understanding is that each stored proc associated with a report runs just once. Am I wrong? Or is this actually configurable? If the latter, how do I do it?
Cheers
Tristan
A world of unexamined lives is a waste of a world!
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 11 Sep 2012 at 1:46pm
The sub report runs each time it is generated. If you place it in a location in the main report like the report header that is only generated once it only runs once. If you place it on a detail section it runs once per detail that is printed. So you can pass it any number of values, like one value per row.
Does that help?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum