Reply
 
LinkBack Thread Tools Display Modes
Old 03-24-2008, 12:21 PM   #1 (permalink)
djg58
Guest
 
Posts: n/a
Default Pass a Subreport parameters then filter on them

I have nearly completely customized the Installed Price proposal report to suit our needs, including extensive scripting and new parameters. Everything works extremely well, but I need to go one more step and I am completely stuck.

I need to interate through some proposal items in a different sequence than the main report does, keying off the current item in the main report. To do this, I would have to indicate to the subreport what the current item is, pick up the value of several fields (zone and CustomProperty4), then filter on these.

I've gone through the ReportUtilities and Item libraries and found many ways to handle the sorting and subreporting supported by the d-tools reports, but no way to do what I'm looking for.

Again what I need to is:
1) Pass a couple of fields to the subreport.
2) Filter the datasource by those fields so the report iterates through only a subset of the data related to the current item in the main report.

I've picked through the D-Tools and DataDynamics forums, but haven't found how to make this work.

Thoughts anyone?
  Reply With Quote
Old 03-27-2008, 01:34 PM   #2 (permalink)
RickC
Guest
 
Posts: n/a
Default

Originally Posted by djg58 View Post
I have nearly completely customized the Installed Price proposal report to suit our needs, including extensive scripting and new parameters. Everything works extremely well, but I need to go one more step and I am completely stuck.

I need to interate through some proposal items in a different sequence than the main report does, keying off the current item in the main report. To do this, I would have to indicate to the subreport what the current item is, pick up the value of several fields (zone and CustomProperty4), then filter on these.

I've gone through the ReportUtilities and Item libraries and found many ways to handle the sorting and subreporting supported by the d-tools reports, but no way to do what I'm looking for.

Again what I need to is:
1) Pass a couple of fields to the subreport.
2) Filter the datasource by those fields so the report iterates through only a subset of the data related to the current item in the main report.

I've picked through the D-Tools and DataDynamics forums, but haven't found how to make this work.

Thoughts anyone?
I've posted a couple of demo reports that show ways to accomplish the two things you describe: The can be found here:

Adding Filter to SubReport

This is done with a bit of brute force. The filter is a valid XPath Expression. The script demos how to use some of the internal objects to generate the valid XPath filter and then update the recordset pattern on the report

See comments in the script code for explanation

Passing Values to Subreports

This demos using the built in AR Parameters. Take a look at the comments. The demo consists of two reports (a main and a sub report). The sub report describes how to set up the parameters and shows how the values can be retrieved and the main report shows how to set the values of the parameters on the sub reports.

This may also be of interest:
Resorting Items in subreports

-R
  Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Pass Type Double as a Parameter CrystalHacker Reports and Reporting Center 0 07-01-2009 04:34 PM
Please.. Filter Out not Filter In CrystalHacker Reports and Reporting Center 8 06-17-2009 06:21 PM
Setup to Pass Numeric Values as Parameters CrystalHacker Reports and Reporting Center 1 06-12-2009 01:28 AM
Datamatrix Filter dbranch Bugs Section 1 07-29-2008 05:36 PM
Report Parameters fryeguy Suggestions and Feature Requests 1 07-12-2007 11:46 AM


All times are GMT. The time now is 02:44 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
D-Tools, Inc.