将 Oracle Apex 报表元素设置为只读
您好:
是否有办法在 Apex 3.2 中将 apex 报告表格单元格(甚至整个报告本身)设置为有条件只读?我在选项中的任何地方都没有看到“只读”框;尝试到处寻找。
提前致谢!
Greetings:
Is there anyway to make an apex report table cell (or even the entire report itself) conditionally read-only in Apex 3.2? I don't see the "read-only" box anywhere in the options; tried searching everywhere.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于整个选项卡表单对于特定用户来说是只读的,因此您可以在渲染时执行此操作,而不是使用 Javascript。但是,您需要每列的 2 个副本:
readonly=readonly
< a href="http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/sec.htm#BABEDFGB" rel="nofollow">授权方案可用于控制哪些向用户显示列。
我希望找到一种方法来使用单列和元素属性的动态值来实现此目的,但我无法让它工作。
Since the whole tabform is to be made read-only for particular users, you can do this at rendering time rather than using Javascript. However, you would need 2 copies of each column:
readonly=readonly
Authorisation schemes can be used to control which columns are displayed to the user.
I was hoping to find a way to do this with a single column and a dynamic value for Element Attributes, but I couldn't get it to work.
好吧,我的概念有误。我想将表格形式设置为只读。这就是为什么我看不到“只读”框的原因。如果您打开生成页面的源代码,每列都会给出一个具有以下命名约定的 id:
此表格单元格位于第 2 列、第 1 行。因此,您可以使用 JavaScript 循环遍历列并修改其属性。在此示例中,我使用 jQuery:
OK, I had an error in concept. I wanted to make a tabular form read-only. That's why I couldn't see the "read-only" box. If you open the source for the generated page, each column has given an id with the following naming convention:
This table cell is in column 2, row 1. So, you can use JavaScript to loop through a column and modify it's properties. In this example, I use jQuery: