I have tweaked the suggested code as follows:
whileprintingrecords;
global StringVar Array UsersArray;
global NumberVar Array HoldTimeArray;
BooleanVar CurrentUser:=false;
numbervar x;
If {q_hist.REASON} = "Held" and next({q_hist.ITEM_ID}) = {q_hist.ITEM_ID} then
For x := 1 to...
The table (which is a part of a workflow database and captures the history for items going through workflow) has the following structure (I am only listing relevant fields): UserID, ItemID, Reason (can be "Held", "Viewed", "Cancelled", "Routed In"...
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.