I wanted to display an error message in a modal window upon click of a button. I have got a repeating grid with a list of records and buttons at the bottom. To achieve this in the Actions there is an activity which runs upon clicking the button, in that I set a flag. And I have also configured the local Action when flag is set to true. In a happy path scenario when I click the button the status of the records get changed and page gets refreshed. But every time I pick the record (error scenario) after refresh the pop up is not displayed (even though the value is set to true in the tracer) and if I click once again it displays the popup. I'm not sure why is it inconsistent.
This must be happening because the Falg Value gets set after the parent screen loads and hence it is not getting considered.
To resolve this have a section include and text field to show flag value somewhere in the screen.
Now instead of refresh on parent section use refresh section. This will ensure that the flag value gets updated on the client.
Now your scenario would consistently work. If you wish you can hide the flag value using CSS.
key here is to use refresh other section instead of current section.
Posted: 3 years ago
Posted: 27 Aug 2018 20:32 EDT
Satya Kanth (Satyakanth)
And for those who are facing this issue, request to read and follow each and every line suggested by Ujjwal as it is. Because I tried hiding it with when rule/expression which didn't work. At last I used the css and it worked. As shown in the screenshots I refreshed the section 1st which had the section included with the flag and this property is hidden through CSS (not through when or expression). And then configured the local action.