I’m currently working on a project where I have to generate a report every time a new record is inserted in my database.
So far, I have created a label which is filled with the highest “BalkID” in my database.
When this “BalkID” updates, the label updates instantly to the new maximum ID.
On the PropertyChange event of this label, I inserted the following script to save a report:
So, if the label value updates, the report in the report viewer is saved. This works fine, however, the data in my report is not refreshing. Only when I close and reopen the window “report”, the balkID in my report viewer is updated to the maximum value in my database.
How do I automatically refresh, execute or update the data in my report viewer when a new record is added in my database (or when the value of a label/tag changes)?
It sounds like your report doesn’t use parameters so refreshing those won’t work.
Have you tried setting the reportPath to ‘’ and then back to the actual report path?
By adding the invoke later function, a delay of 5 seconds is added.
I don’t really know why I have to run the same steps twice, but wen I deleted the upper part, the script didn’t work anymore.