I am working on a project where I need to refresh an entire interface after a process model has completed execution. I need to ensure that once this process model finishes executing, the associated interface is refreshed to reflect any changes.
I have tried using the onSuccess property to trigger a refresh, but unfortunately, I have not been successful with this approach.
onSuccess
I would appreciate any advice or examples on how to implement this. Specifically, I am looking for guidance on:
Thank you in advance for your assistance!
Discussion posts and replies are publicly visible
The trick with Appian is to not try to refresh "the interface", but refresh the data the interface displays. I assume that you store some values to local variables. You can use a!refreshVariable to make those refresh.
In such tricky situations, where I need very clear control on when something refreshes, I use a local variable "refreshCounter". For the locals I want refreshed, I use a!refreshVariable like this
a!localVariables( local!refreshCounter: 0, local!yourLocale: a!refreshVariable( value: <YOUR_VALUE> refreshOnVarChange: local!refreshCounter ) )
I can then use a!save() to increase that counter from anywhere within the interface.
BTW, how did you come up with "a!refreshContent"?