Question
Virtusa
AU
Last activity: 27 Aug 2018 20:33 EDT
Inconsistent modal dialog behaviour
Hi All,
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.
I hope I'm not confusing
Hi There,
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.
Regards,
Ujjwal