SubReports - How to pass parameters or filter?

More
1 year 8 months ago #24600 by prashant
HI,
I have a simple report which showcases Pending Items and completed items in a BOM. See details below from a regular report

 
 

What I want to do instead is keep the output side by side , which should be possible via sub reports , as of now , I get "ALL" items 
 
 
 


Based on the link here  www.fast-report.com/blogs/subreport-from-parent-report

It seems , I need to write a code so parameter can be passed from primary report into subreport but all my effort fail OR set relationship by loading the data twice , I did that too but no avail 

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #24602 by prashant
My further futile attempts . Please skip the middle 1 minute , where toolbar dissapaered

www.loom.com/share/3c7ca52997cd4449be6fa...ac-a798-2cb05747121b
 

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #24603 by admin
I reviewed the video you created and noticed that you are using only an ADOQuery object.In your situation, it would be beneficial to implement a master-detail relationship. This means you should have one ADOQuery object for the main report and another for the subreport.

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago - 1 year 8 months ago #24604 by prashant
I am trying it but how do I set the master - child relationship ? I mean which menu , button? 

Update 
1. I did try to set in object inspector, is this what you mean?

2. There is also a bug , if you rename the next query ADOQUERY1 to something else, it's not updated in the object inspector of ADOQUERY , see my screenshot

3. After setting Master, what's the next step? how do I define the relationship , and define the filter

 
Last edit: 1 year 8 months ago by prashant.
The following user(s) said Thank You: Peter.Jonson

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #24608 by Peter.Jonson

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #24609 by prashant

I have found some suggestions on fast report web site
forum.fast-report.com/en/discussion/2988...l-ado-query-problems
Lord the amount of time on this weekend I invested trying to figure this ,THANK you so much this.

This is a quick and dirty trial (it's 7AM here) . I required 3 queries , one for each type of status ' Pending' , Completed' and it's master

MORE QUESTIONS SOON

   
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save