I have inserted the following piece of code in order to show always the updated number of available tasks to the users.
=a!localVariables( local!report: a!refreshVariable( value: a!queryProcessAnalytics( report: cons!IOC_USER_TASK_REPORT, contextProcessModels: { cons!IOC_PROCESS_MODEL_NOTIFICATIONS }, query: a!query( pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 1000), filter: a!queryFilter( field: "c1", operator: "<>", value: 2 ) ) ), refreshInterval: 0.5), "Workflows (" & length( local!report.data ) & ")")
=a!localVariables(
local!report: a!refreshVariable(
value: a!queryProcessAnalytics(
report: cons!IOC_USER_TASK_REPORT,
contextProcessModels: {
cons!IOC_PROCESS_MODEL_NOTIFICATIONS
},
query: a!query(
pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 1000),
filter: a!queryFilter(
field: "c1",
operator: "<>",
value: 2
)
),
refreshInterval: 0.5
"Workflows (" & length(
local!report.data
) & ")"
Sadly enough, the automatic refreshing is not working at all. Is this an expected behavior or there is something wrong with this code?
I am running on Appian Cloud 19.2
Discussion posts and replies are publicly visible
Hi Mike,
I'm also noticing that once a button is pressed on form (even though it doesn't submit the form) the interval refresh variables seem to stop working.
Interesting... under what conditions? I just added a buttonWidget to basically the same test form as linked above (it doesn't save into anything but is clickable), and for me at least the autorefresh does continue happening correctly. But you might be doing something differently.
Yep, I encountered the same issue...