That's correct. Order = 4 can be complete and then we wouldn't want to know about it. A contract may go from stage 1-5 but not in a sequential order. It may start at stage 2 then goto 4 then 5. It may start at 1 and end in 3. All I want to know is the current stage (max order) and whether it is...
Thanks LB, but the lates stage isn't always 4 as in the above example. It can be anything between 1-5. I want to find the latest stage, then check whether it is pending, withing the group header if possible. If it is pending then print the details if not suppress the details.
How can formulas...
I tried using the following formulas:
//@pending
if {Contract_Stage.Status} = 'Pending' and {Stage_Order.Order} = shared numbervar maxStgOrder then 1;
I calculated the maxStgOrder inside a subreport because the following formula won't accept if I use maximum({Stage_Order.Order}...
Thanks for that. Now I'm stuck with the following format which I think will not work if I move the items to group footer.
My report should look like this
Id Contract Stage Status Date
== ======== ===== ====== =====
1 Test1 Start Complete...
Thanks, that's correct I only need the last stage for now. Now I understand it. I will need to also do a report to check any stage pending. Could you please give me an idea.
Thanks, I never thought of putting everything in group footer.
Is {Contract_Stage.status} <> "Pending" only enough? Don't I need something like:
if {Stage_Order.order} = maximum({Stage_Order.order}, {Contract.Contract_Id}) and {Contract_Stage.status} <> "Pending" then true;
to check the status...
I have following 3 tables
Contract(Id, Name)
Contract_Stage(Id, Contract_Id, stage_name, status, date)
Stage_Order(stage_name, order)
Each contract can have upto 5 different stages. The Stage_Order table is there to specify the chronological order of stages.
Currently I'm grouping by the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.