问题
I'm trying to update some page items with a dynamic action. I have an "on change" dynamic action on one text field and want to run a calculation on another column and display/save it.
I've tried disabling session state globally, but nothing I do seems to get rid of this error message on a page submit/process gets fired:
1 error has occurred Session state protection violation: This may be caused by manual alteration of protected page item P5_EXAMPLE_ITEM. If you are unsure what caused this error, please contact the application administrator for assistance.
How to I get rid of this error? I want to manually alter this protected page item...
回答1:
From my own experience: it appears that P5_EXAMPLE_ITEM
is a text item which has the "Read only" property set to "Always".
If that's so, set the item type to display only (because the first combination - a read-only text item - is nothing but a display only item with "save session state" set to "no").
回答2:
Alternatively, you can try removing the disabled attribute from the input item using a dynamic action after refresh of the region containing it:
$("#P5_EXAMPLE_ITEM:disabled").removeAttr("disabled");
来源:https://stackoverflow.com/questions/55613090/cant-disable-session-state-protection-on-oracle-apex-18-1-0-00-45-for-dynamic-a