I'm trying to invoke the a!save() function when an interface loads. Is there any way to save a value into a rule input of an interface without any user interaction?
I've noticed this statement on a forum somewhere "Rule Inputs and local variables in an Appian Interface can only be updated as a direct consequence of a user interaction.".
What I'm wondering about is if there is any way to mock user interaction to force a save into the ruleinput? My value is saved in the localVariable.
Any suggestions would be greatly appreciated.
Jan
Discussion posts and replies are publicly visible
That's not possible.
But when you explain your use case, I am sure we can help you with some ideas.
Agreed with Stefan - one common work around is that you can set a default value for your rule inputs in the value of your activity class parameter in your process model, or you can also use local variables on the form and then save the results at the end into a rule input.
What purpose would this serve?
The interface calls a specific REST API endpoint and we want to be able to output the data we got from the API to the parent interface without any user interaction.
My default suggestion would be that you should do the API call in the parent interface in that case. If it's supposed to start out there, then why not make it actually start out there?
OK. It is not possible to do it in this specific way. Can you help use to understand that UI from a more abstract perspective?
I think this is the best suggestion.