Oracle Apex 19.2 - 在经典报告中创建单选按钮 [英] Oracle Apex 19.2 - Create Radio Buttons in Classic Report

查看:56
本文介绍了Oracle Apex 19.2 - 在经典报告中创建单选按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个很好的可视化教程来介绍如何在 Apex 19.2 中创建单选按钮的各个步骤?

您的真实操作将属于 Set Value 类型,Set Type 是带有以下代码的 JavaScript 表达式:

this.triggeringElement.value

您受影响的元素是 P3_NEW 并禁用初始化时触发

Is there a good visual tutorial that takes through the various steps on how to create radio buttons in Apex 19.2? This tutorial Creating a Classic Report having radio button on each row helped me and I’m looking for a similar one..

In my case, I would like to add a radio button to each row of my classic report which when selected would add some of the informations selected by the radio button in a text field in the same page.

Any advice is much appreciated.

Thank you

解决方案

Install Sample Reporting application on your APEX instance (preferably on apex.oracle.com as Dan suggested).

Navigate to the Classic Report page.

Change the query to the report to the following:

select rowid,
       ID,
       PROJECT,
       TASK_NAME,
       START_DATE,
       END_DATE,
       STATUS,
       ASSIGNED_TO,
       COST,
       BUDGET,
       apex_item.radiogroup(1,TASK_NAME) ACTION
from EBA_DEMO_IR_PROJECTS
where (nvl(:P3_STATUS,'0') = '0' or :P3_STATUS = status)

Note the added column "ACTION" which consists of the apex_item.radiogroup with TASK_NAME value. Let's assume that this is the value that you want to pass to another page item.

Open that column's attribute under Page Designer and disable "Escape special characters" attribute and add a CSS Class (e.g. mycolumn)

Create a Page Item (e.g. P3_NEW).

Now add the following Dynamic Action

  • Event > Click
  • Selection Type > jQuery Selector
  • jQuery Selector > #classic_report .mycolumn input

Your true action will be of the type Set Value and the Set Type is JavaScript Expression with the following code:

this.triggeringElement.value

Your affected element is P3_NEW and disable Fire on Initialization

这篇关于Oracle Apex 19.2 - 在经典报告中创建单选按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆