Skip to main content
July 19, 2022
Solved

Values not refreshed automatically in interface after updating the data in database from process model using Write to data store entity smart service.

  • July 19, 2022
  • 4 replies
  • 0 views

I have a local variable which gets it data from an expression rule which in turn fetches data from a record. I am using this local variable within an editable grid in foreach to populate data for each rows in the grid.

When a particular value of the local variable is edited, I am enabling a Save button in the interface (The interface being displayed to user is an user input task present within a process model) and when clicked on this save button, the process gets navigated to appropriate write to data store entity smart services and then routes back to the same interface.

Now when the process stops at the same user input task again, the changed value is not reflecting and I have to do a hard refresh by pressing F5 in order for the change to reflect or I have to exit the process model and enter again. I tried using refresh variable but it is not working as expected.

Am I missing something?

Best answer by stefanhelzle0001

That behaviour also depends a bit in your process design. E.g. do you use a sub process to store the data? Can you post a screenshot?

4 replies

stewart.burchell
July 19, 2022

The usual reason for this is that you have not fully chained your process model between the User Input Task and up to (and including) the Write to Datastore node. The first break in the chain causes Appian to immediately return control to the User Interface from which you initiated the process.

July 19, 2022

Hello Stewart,

Thank you for your reply.

I had not fully chained the process initially but after your reply, I tried fully chaining the process but still the value is not reflecting immediately after the update.

stefanhelzle0001
Brainy
July 19, 2022

That behaviour also depends a bit in your process design. E.g. do you use a sub process to store the data? Can you post a screenshot?