Hi
Thank you for including your report template.
Do note that xrTableCell39 in your report template has to do with your Labor records, NOT with your Scheduled Users records.
Be very aware of this - so when you are troubleshooting, you have confirmed there is no start or stop time in the Labor record
When I import, and open that report template up via a workorder that has a labor record with no start or stop date/time and a part record, the following is what I see:
xrTableCell39
xrTableCell39 correctly does NOT display because you do have a BeforePrint that makes the field invisible if the exact output is
I see no issue here.
If your Labor’s Start Date & Time field still does not go invisible, then possibly your computer’s date/time format does not exactly match what you told that script to match which was exactly 1/1/0001 12:00:00 AM. Recheck your own computer settings, see what the date/time actually shows as to confirm.
Quick way to do this is to drag over to your report template’s Labor Detail3 area the Service Start Date & Time and confirm that it definitely does show exactly 1/1/0001 12:00:00 AM when you preview.
xrTableCell40
I imported your report template
I ran a Preview in the report template designer, realized couldn’t see all of the Service Stop Date & Time, so I made it bigger so I could see what it actually was returning.
When I did so, I could see that this field actually returns 01 Jan, 001 (12:00am - 12:00am
As this field is NOT returning 1/1/0001 12:00:00 AM, then obviously the script to make it invisible if it matches 1/1/0001 12:00:00 AM won’t work.
If in the future a field or tablecell doesn’t work, first recommendation would be to compare its properties to another that is working.
In this case, xrTableCell39 is working so I compared it to xrTableCell40
I removed the FormatString that was set for (Data Bindings) -> Text -> FormatString {0: - h:mm tt)} that was set for this field. And Previewed, and now no longer shows if the data/time is exactly 1/1/0001 12:00:00 AM