将 Oracle Apex 报表元素设置为只读

发布于 2024-09-25 10:05:31 字数 111 浏览 2 评论 0原文

您好:

是否有办法在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夏夜暖风 2024-10-02 10:05:31

由于整个选项卡表单对于特定用户来说是只读的,因此您可以在渲染时执行此操作,而不是使用 Javascript。但是,您需要每列的 2 个副本:

  1. 为授权用户显示的列,而不是只读
  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:

  1. Column to be displayed for an authorised user, not readonly
  2. Identical column to be displayed for a non-authorised user, with Element Attributes set to 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.

自此以后,行同陌路 2024-10-02 10:05:31

好吧,我的概念有误。我想将表格形式设置为只读。这就是为什么我看不到“只读”框的原因。如果您打开生成页面的源代码,每列都会给出一个具有以下命名约定的 id:

id="f02_0001"

此表格单元格位于第 2 列、第 1 行。因此,您可以使用 JavaScript 循环遍历列并修改其属性。在此示例中,我使用 jQuery:

var payments = $("[id^='f08_']"); // get all cells for column 8

// loop through items
$.each(payments, function(){
   alert($('#'+this.id).val());       
   // make whatever changes you want to this.id, such as make read-only
});

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:

id="f02_0001"

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:

var payments = $("[id^='f08_']"); // get all cells for column 8

// loop through items
$.each(payments, function(){
   alert($('#'+this.id).val());       
   // make whatever changes you want to this.id, such as make read-only
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文