Dynamic Show/Hide button functionality
637224Oct 6 2010 — edited Oct 6 2010Hi,
The problem I have is:
I have a page which based on a page item, will either need to show a Create or Apply Changes button. However, the page item is set through Ajax. I know you can't use Dynamic Actions for buttons. If I put a condition on the button based on a change to the page item, because it's done through Ajax, the condition on the button never changes, so the button remains hidden.
Example:
I have a page item called P1_ID
If this is null then
Show Create Button
Else
Show Apply Button
When entering the page, P1_ID is not equal to NULL so the CREATE button is not visible. I then click on another button called New_Entry. This triggers through ajax a change to P1_ID and using a Dynamic action clears the value it holds. I now need to make the CREATE button visible, however the CREATE button has a condition on it, which says P1_ID must be NULL. By clearing the value using Dynamic Actions, the condition for some reason doesn't get met and the button remains hidden.
Can anyone help mewith this? I'm using Apex 4.