getting Session state protection violation error for a hidden item that is being set with computation before header - Oracle APEX

徘徊边缘 提交于 2019-12-07 08:23:51

问题


I am trying to set the label of an item dynamically using the value of an other hidden item in the same page.

I created a computation for the hidden item in the page and set the value of the item as the dynamic label - &P613_EMPLOYEE_TYPE_LABEL.

But I am getting this error

Session state protection violation: This may be caused by manual alteration of protected page item P613_EMPLOYEE_TYPE_LABEL.   

Technical Info (only visible for developers)

is_internal_error: true
apex_error_code: APEX.SESSION_STATE.ITEM_VALUE_PROTECTION
component.type: APEX_APPLICATION_PAGES
component.id: 149000000613
component.name: DETAILS OF EMPLOYEE
error_backtrace:
----- PL/SQL Call Stack -----
object      line  object
handle    number  name
0x263d96750       935  package body APEX_050100.WWV_FLOW_ERROR
0x263d96750      1003  package body APEX_050100.WWV_FLOW_ERROR
0x263d96750      1395  package body APEX_050100.WWV_FLOW_ERROR
0x26ac006a8      3116  package body APEX_050100.WWV_FLOW
0x26ac006a8      5533  package body APEX_050100.WWV_FLOW
0x265a48af8         2  anonymous block

But I have set the session state protection fo the item to 'unrestricted'

page settings

computation

component settings


回答1:


For your hidden item P613_EMPLOYEE_TYPE_LABEL set the Value Protected attribute to NO.

When Value Protected of an hidden item is set to YES a checksum is generated when your page is loaded. When you submit the page with a different value the checksum is not valid anymore and you get the error.



来源:https://stackoverflow.com/questions/41845895/getting-session-state-protection-violation-error-for-a-hidden-item-that-is-being

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