Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Cascading Parameters Post Reply Post New Topic
Author Message
pgiering
Newbie
Newbie


Joined: 25 Aug 2009
Location: United States
Online Status: Offline
Posts: 37
Quote pgiering Replybullet Topic: Cascading Parameters
    Posted: 14 Sep 2010 at 3:32pm
Hi,
 
I have a report that lets me enter a batch number, and outputs a corresponding order number. 
 
The batch number is really a lot number, and every time the material from that lot is used to prepare another mid-level assembly, an order number is assigned which becomes the lot number (or new batch number) for that mid-level assembly. 
 
The report is intended to work as a way to trace the original source material through multiple orders, incase there is ever a recall.
 
The report is not very efficient though, because one must enter the original batch/lot number, run the report, and get a list of all orders generated from that original batch.  Then, the user must run the report again, once for each order number in the first set of results, then again for each order in that set of results, and so on, untill a null value is reached, meaning the terminal use has been discovered, or the product is gone (in which case we would use another method to search for the sale).
 
My question is, is there a way I can build the result object "order number" into my queries record filter, so that I ask for all orders with the manually entered initial batch/lot number, and then have it automatically also run for for all corresponding order numbers?
 
I find this very confusing to talk about, hopefully you understand what I'm trying to say.  If not, I will be happy to elaborate.
 
Thanks,
 
Paul
 
BTW... here is my current Record Filter:
 
InStrRev({intrans.batchno},{?Source Batch}) = 1 and
{intrans.orderno} <> ""
 
note:  if the {intrans.orderno} is "", it is not a transaction type I'm interested in. 
 
 
The report currently delivers a result like this:
 
TranType   Part#   Qty   TranDate   BatchNo   OrderNo 
 
 
 
Not sure if that extra info is helpful, but thought it might help you visualize what I'm describing.
 
Thanks.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 15 Sep 2010 at 4:23am

 I think I understand your question and I do not know of a way that would not involve special coding to hold data in an array to rerun the report using the data from the initial run as your new parameter entries.

I am having trouble visualizing your set up though. It seems though you start with a single batch number it can cascade into multiple order numbers or just a single order.
Also is there a maximum level of repition that you want to check repeated
and
can you give a real life sample data process?
 
My initial thought is to keep adding the table back into the report joining from batchno to orderno then the next oderno to bathcno then repeated but i am not sure i am fulling getting the process you have.


Edited by DBlank - 15 Sep 2010 at 4:24am
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
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



This page was generated in 0.016 seconds.