I have a Report Viewer component on my client which may or may not be open at the time the gateway script runs. If the client is open and the report viewer is showing how can I refresh the component?
Thank you for any help. My current gateway script is as follows:
if not initialChange:
save = system.tag.read('[WELDER]DAILY_SAVE_PROGRESS_IGNITION').value
if save == 1:
Add another parameter to the report and bind it to the tag above. Or create a custom property on that window that is bound to the tag above and add a property change script to refresh binding on the report component.
I would not use another report parameter. Instead, I would use system.util.sendMessage to broadcast the need to refresh the report. The client message handler would locate the appropriate window and if open, trigger the report refresh on the viewer component. (Assign to any report parameter, even with the same value, to trigger report refresh.)