Is there a method to force an alarm Journal Table to refresh (other than changing the start or end dates)?
I want to be able to dynamically filter the journal table on associated data. I added the filter string as a dynamic property on the journal table, but changing it’s value will not update the table. The only way I can get the table to update is to change the date range and then change it back.
I’ve got the same question. I arbitrarily tried running the below code, but neither line works, I just get warnings that it is “unable to find a refresh-compatible property binding”
Here is my workaround, it’s actually very smooth from the user’s perspective.
My Alarm Journal Component’s startDate and endDate properties are bound to the startDate and endDate properties of a Date Range component. To get a refresh to happen, I put a Button component on the screen which adjusts the Date Range’s startDate and then immediately changes it back. I named this my “Refresh Button.” Here is the code from my refresh button’s actionPerformed event handler.
#Subtract one minute from the start time on the range so the Alarm Journal Table component refreshes its dataset.
startDate = system.date.addMinutes(startDate, -1)
event.source.parent.getComponent(‘Date Range’).startDate = startDate
#Add the minute back so our range is still the same.
startDate = system.date.addMinutes(startDate, 1)
event.source.parent.getComponent(‘Date Range’).startDate = startDate[/code]
Then, to get it to work automatically, I added a Timer component with the following code in its actionPerformed event handler.
After that, it’s just a matter of modifying the Timer’s delay so that the Journal refreshes at the rate you want. You can even make the refresh button invisible if you don’t want users to know it’s happening. Or leave it visible and they will have the ability to refresh at their own pace in addition to the timed refresh rate.
Now that I think about it, you could probably have the refresh button directly modify the Alarm Journal Table’s startDate instead of doing it indirectly like I did. Probably would have the same effect.