Going to Specific tab in oracle forms

2019-08-11 23:09发布

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

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.

4条回答
Luminary・发光体
2楼-- · 2019-08-11 23:44

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.

查看更多
\"骚年 ilove
3楼-- · 2019-08-11 23:49

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'

  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;

查看更多
时光不老,我们不散
4楼-- · 2019-08-11 23:51

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');
查看更多
Root(大扎)
5楼-- · 2019-08-12 00:07

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');

查看更多
登录 后发表回答