A user asked me to create a “Printed” checkbox which is automatically set to “true” when the RMA Form report is generated. I created a Data Directive on the SysTask table, which successfully sets a UD boolean field to True. The problem is that the user ALSO wants a “REPRINT” note to show on the report if the Printed value is True. I added a textbox and set its visibility to only show if Printed’s value is True.
The Data Directive is setting the Printed value before it generates the report-- which means the “REPRINT” note shows every single time! How can I delay the field update until after the report is generated? Here is my Data Directive Code (Standard, not In-Transaction) (it’s only an Execute Custom Code box in the directive)
I don’t see StatusMonitor as an option in Method Directives. That’s a System Method and not Product, right?
I’m on 10.1.400 if that’s relevant, I don’t know if 10.2 or other versions have different Methods.
Oops! I was wrong about my problem actually, my Data Directive was working just fine-- my expression in the Visibility box of the report was wrong! I fixed it up now and it’s working as intended.
Another possible way to go after this would be to set the date and time in another field if it is blank and to set visibility based on the timestamp being greater than X minutes old.
Rather than a checkbox that means “printed”, use a UD Number field for “Times Printed”, and add 1 to it. Then, in the report, if the field is 1, you know it’s the first time. If it’s more than 1, then it’s a reprint. You also have added information in knowing how many times it’s been reprinted, in case that’s ever helpful.