Oracle Apex复选框在只读模式下显示会话违规错误。

huangapple go评论58阅读模式
英文:

Oracle Apex Checkbox when read only showing session violation error

问题

I have a page item which is a checkbox: P1_EMPID

它以前是可编辑的,但现在我需要在单击另一个按钮时对其进行检查。

我将P1_EMP_ID属性设置为-> 只读-> 始终

维护会话状态-> 始终
会话状态保护无限制。

在按钮上-> 我设置了动态操作的值,将P1_EMPID设置为Y以检查复选框。当我单击按钮时,分配发生,但当我使用页面上的更新按钮进行操作时,它抛出以下错误:

会话状态保护违规:这可能是由受保护的页面项引起的。

但项目的值受保护设置为否。

可能的原因是什么?

英文:

I have a page item which is a checkbox : P1_EMPID

It was editable previously but now i have requirement to add another button on click of which this would be checked.

I set P1_EMP_ID property-> Readonly-> Always

Maintain Session State-> Always
Session state protection unrestricted.

On the button-> I have set value dynamic action which sets P1_EMPID TO Y to check the checkbox. When i click button assignment happens, But when i proceed using update button in page it throws following erro:

Session state protection violation: This may be caused by protected page item.

But value protected for the item is set to No.

What could be the cause?

答案1

得分: 0

这是预期行为。“只读”不仅控制项目的显示方式,还保护项目免受更改。服务器确保项目确实是“只读”,并且浏览器无法在服务器上更改项目的值。解决方法是不使用“只读”属性,而是使用css类“apex_disabled”。

英文:

That is expected behaviour. “Read Only” does not only control how an item is displayed; it also protects the item against changes. The server makes sure that the item is indeed “Read Only”, and that the browser is not able to change the item value on the server. The solution to not use the "Read Only" attribute but use the css class "apex_disabled"

Oracle Apex复选框在只读模式下显示会话违规错误。

huangapple
  • 本文由 发表于 2023年5月10日 20:37:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/76218518.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定