转到 oracle 表单中的特定选项卡

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22833948/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 02:18:38  来源:igfitidea点击:

Going to Specific tab in oracle forms

oracleplsqlreportoracleforms

提问by Girish Acharya

I have 3 radio button A ,B, C and I have 3 tab page in the canvas A, B,C.

我有 3 个单选按钮 A、B、C,我在画布 A、B、C 中有 3 个标签页。

My Requirement is if user select radio A and press Submit button then tab A Should get activated and my cursor got to tab A.

我的要求是,如果用户选择单选 A 并按提交按钮,则选项卡 A 应该被激活并且我的光标到达选项卡 A。

回答by nightfox79

If it is enabled and visible then you can use the following commands:

如果它已启用且可见,那么您可以使用以下命令:

go_item('blockname.itemname');

or

或者

go_block('blockname');

If you don't need to go to a specific item then use the second command go_block.

如果您不需要转到特定项目,则使用第二个命令 go_block。

回答by pablomatico

To enable a tab page:

要启用标签页:

set_tab_page_property('TAB_PAGE_NAME',enabled,property_true);

If the tab page was not visible you should make it visible first:

如果标签页不可见,您应该先使其可见:

set_tab_page_property('TAB_PAGE_NAME',visible,property_true);

In order to navigate to that tab page, the easiest way to accomplish that is by going to a navigable item that is in that tab page:

为了导航到该标签页,最简单的方法是转到该标签页中的可导航项目:

go_item('ITEM_IN_THE_TAB_PAGE');

回答by Eng. Samer T

here is the easiest way to do this

这是执行此操作的最简单方法

In the following code, I supposed that the radio button name is: RADIO_BTN and it's value is 'A'

在下面的代码中,我假设单选按钮名称是:RADIO_BTN,它的值是“A”

  1. open submit button properties and set 'keyboard navigation'= No and 'mouse navigation'= No
  2. on tab A create a dummy item (not database item) and name it A, with width=0 and height=0 so the user will not see it, or use a real item name on tab A
  3. open trigger when_button_pressed on submit button and write the following code.

    IF :RADIO_BTN = 'A' THEN /*replace this with your radio_btn name and value */ GO_ITEM('A'); /*go to dummy item in tab A or to real item in tab A */ END IF;

  1. 打开提交按钮属性并设置“键盘导航”=否和“鼠标导航”=否
  2. 在选项卡 A 上创建一个虚拟项目(不是数据库项目)并将其命名为 A,宽度=0 和高度=0,这样用户就不会看到它,或者在选项卡 A 上使用真实的项目名称
  3. 在提交按钮上打开触发器 when_button_pressed 并编写以下代码。

    IF :RADIO_BTN = 'A' THEN /*用你的radio_btn名称和值替换它*/ GO_ITEM('A'); /*转到选项卡A中的虚拟项目或选项卡A中的真实项目*/ END IF;

回答by Shankar

First you have to set the tab page as top most using set_tab_page_property(top_most_tab_page,'tab_page_name'). after that use go_item('block_name.item_name');

首先,您必须使用 set_tab_page_property(top_most_tab_page,'tab_page_name') 将标签页设置为最顶部。之后使用 go_item('block_name.item_name');