Going to Specific tab in oracle forms

两盒软妹~` 提交于 2019-12-11 08:49:57

问题


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.


回答1:


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.




回答2:


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



回答3:


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:


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



来源:https://stackoverflow.com/questions/22833948/going-to-specific-tab-in-oracle-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!