I have a dynamic action on a page.
Event : Manual Close [Skillbuilders Modal Page 2.0.0]
Selection Type : DOM Object
DOM Object : Manual
True Actions :
Condition : Value of Item / Column in Expression 1 is NOT NULL
Expression 1 : P0_STATUS
Here I am having the problem. P0_STATUS is a Page 0 item. The value of it is set at the Modal Page. My requirement is, as soon as I close the modal window, it should refresh the page. But with this condition, it is not.
If I remove the Condition, making it None, it does refreshes the page.
I tried with, Page item / Global Parameter / Page 0 item. None of is working.
Can anyone tell, what am I doing wrong here.
Dynamic actions have 2 different type of conditions.
1) The condition in the "Condition" section
This condition determines if the dynamic action is rendered on the page.
These are only evaluated when the page is rendered. Even more specific only when the page is rendered form the server and not from the cache.
Uses the session state value of page items
2) The condition in the "When" section.
This condition determines if the true or false actions need to be executed. These are evaluated every time the event of the dynamic action is fired.
Uses the client side value of page items.
Looking at the condition type you mentioned you are now using the first one.
If the P0_STATUS changes depending on the user action in the modal page you. And the dynamic action should run depending on this new value you need to use the second one.
Meaning the When condition.
Try setting the condition to "JavaScipt expression" and the value to apex.item("P0_STATUS").isEmpty().