Can't disable session state protection on Oracle APEX 18.1.0.00.45 for Dynamic Actions updating Page Items

隐身守侯 提交于 2020-04-11 05:53:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!