clearing the field value through UI action works only when the UI action is Rerun.

amarnathsundara
Tera Contributor

I have this UI action that actually works in restarting the flow. However, the approved data, asignment group, assigned to values are cleared ONLY when I run the UI action the second time. 

 

Has anyone else experienced something similar ?

 

amarnathsundara_0-1668787832991.png

 

3 REPLIES 3

RaghavSh
Kilo Patron

There doesnt seems to be an problem with code. I think the issue is with timing, since you are running the flow in foreground.

 

Can you try to put your current.update() before line no.11 and check the behaviour.


Raghav
MVP 2023

Mike_R
Kilo Patron
Kilo Patron

Can you try moving line 11, action.setRedirectURL(current); to after the current.update(); ?

 

Also, it could be related to your script running the flow in the foreground. You might need to try the "Asynchronous" code instead to run it in the background.

SanjivMeher
Kilo Patron
Kilo Patron

Can you try moving the line 12 after current.update()?

Also I would like to understand what are you using flow designer for? Can it be triggered based on some condition instead of manually calling it.


Please mark this response as correct or helpful if it assisted you with your question.