仅显示与“禁用”的文本字段属性设置为 YES
我正在使用 APEX 21.2。
帮助说明“仅显示”项目不存储会话状态值,并且“禁用”属性设置为“是”的文本字段会存储。但我尝试创建一个后标头计算并设置仅显示项目的值并且它起作用了。是信息错误还是我遗漏了什么?
Disabled
Specify whether this item is disabled, which prevents end users from changing the value.
A disabled text item still displays with the same HTML formatting, unlike an item type of Display Only, which removes the HTML formatting. Disabled text items are part of page source, which enables their session state to be evaluated. Conversely, display only items are not stored in session state.
I am using APEX 21.2.
The help says that "Display Only" Items do not store session state value and text fields with "Disabled" attribute set to yes do. But I tried to create an after header computation and set the value of a display only item and it worked. Is it wrong information or am I missing something?
Disabled
Specify whether this item is disabled, which prevents end users from changing the value.
A disabled text item still displays with the same HTML formatting, unlike an item type of Display Only, which removes the HTML formatting. Disabled text items are part of page source, which enables their session state to be evaluated. Conversely, display only items are not stored in session state.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为什么它不起作用? 您(开发人员)使用计算(有效)设置它,但最终用户无法修改其值,因为它设置为仅显示 - 用户可以只查看项目的价值。
Why wouldn't it work? It is you (a developer) who set it using a computation (which works), but end user can't modify its value as it is set to be display only so - users can just look at item's value.
渲染之前的计算始终是可能的,这与会话状态无关。这是关于项目在页面提交时的行为方式。
使用“仅显示”项目类型,您可以控制其提交时的行为。 “禁用”属性设置为打开的“文本字段”项目的行为相同。
我用表格对 EMP 样本数据集进行了快速测试。创建类型表达式
:P1_SAL + 1
的 After header 计算。测试1:设置“在页面提交时设置”。表单呈现时工资项增加 1。保存页面时,新的工资将保存记录
测试 2:设置“在页面提交时设置”关闭。表单呈现时工资项增加 1。保存页面时,新工资未保存为记录
您在哪里看到此帮助文本?我没有看到任何有关会话状态的信息。
A computation before rendering is always possible, that has nothing to do with session state. This is about how the item behaves on page submit.
With the "Display Only" item type you can control its behaviour on submit. Behaviour is the same for "Text Field" items that have the "Disabled" property set to on.
I did a quick test with a form on the EMP sample data set. Create a after header computation of type expression
:P1_SAL + 1
.Test 1: Setting "set on page submit" on. The form renders with the salary item increased by 1. When page is saved, the new salary is saved for the record
Test 2: Setting "set on page submit" off. The form renders with the salary item increased by 1. When page is saved, the new salary is NOT saved for the record
Where did you see this help text ? I don't see anything about session state.