All,
Let's say I have an interface with a button widget, which triggers an asynchronous process (i.e., a!startProcess). There's also a local variable (let's call it local!myVar) that is initially empty. My goal is to display the value of this variable when it's updated. The asynchronous process is to determine what value gets assigned to this local variable. And I'm looking for ways to display this value without having to reload/leave the interface.
From what I understand, the use of a!refreshVariable() is probably the best way to make this work, but I'm having some difficulties figuring out how to pass a dynamically assigned value within the asynchronous process back to the interface.
Any tips/pointers will be much appreciated!
Discussion posts and replies are publicly visible
Big thanks to all who responded to this posting - I found the replies really helpful!
I think I'm getting close to finding a suitable solution for my need, but here's one final bit of "need" that initially didn't seem that relevant:
The said asynchronous process involves interactions with an external system. The short end is that the external system will return a Boolean value at the end of the interaction. That's why I stated that it might take a few minutes before the value assignment can happen, but an edge case scenario also warrants the possibility of this handshake taking as long as a few hours.
A few additional comments:
cc: lukasm0001 Peter Lewis jims419
If the handshake time really ends up being a few hours in some cases, i think it's no longer a reasonable expectation that the user is still on the same interface. In that case, using auto-freshing variables is a moot point; I would strongly urge you to handle this in-process somehow -- for one example, set up a process trigger that kicks off a new task that's assigned to the original user when the handshake is complete, or send the user an email, etc.