Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Verified Answer
Replies
24 replies
Answers
3 answers
Subscribers
9 subscribers
Views
6341 views
Users
0 members are here
startProcess
process model
refresh interface
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Refresh Interface after a!startProcess does not work
cedric01
Certified Senior Developer
over 1 year ago
Hi,
We have a simple interface wich contains a refresh button that triggers a a!startProcess() function (to update some fields in Db and then update fields in the GUI).
The interface is displayed from a RecordType view.
The process gets some data and then write simply the current datetime into an updated_on field in the table.
The problem we met is when we click on the button, the data are not refreshed (or works just the first time).
When we debug the variables in the interface we can see that the data are still the Old ones despite the fact the data are correct in the Db table.
If we click again and again, the data are never refreshed.
I've tried a lot of things :
- add a counter in the interface to ensure the save is called when the process ended
- all the process nodes are well chained.
- I've deleted a lot of nodes in the process so that now it contains only 5 nodes (to be sure, to avoid the 50 nodes issues).
- I've created a little testing snippet example and all works fine in another environment (with a Site, a RecordType, a process, a simple Interface and the Vehicle CDT example).
Would you have any idea why this problem occurs ?
Regards
Discussion posts and replies are publicly visible
Top Replies
rajesh pamisetty
over 1 year ago
+1
suggested
Certified Senior Developer
Hi Cedric, Did you try using a!refresh Variable function on the data you are refreshing from DB?
Komal Jain
over 1 year ago
+1
Certified Senior Developer
Have you applied Channing in the process called under a!startprocess , please do the channing till the db update.
Mike Schmitt
over 1 year ago
in reply to
cedric01
+1
suggested
Certified Lead Developer
cedric01 said: Calling the ER from onSuccess Check your ER. If you have any local variables in it, they're probably not set to "refresh always", and therefore won't automatically re-execute even when…