34755

Going to Specific tab in oracle forms

Question:

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.

Answer1:

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.

Answer2:

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

Answer3:

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'

<ol><li>open submit button properties and set 'keyboard navigation'= No and 'mouse navigation'= No</li> <li>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</li> <li>

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;

</li> </ol>

Answer4:

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

Recommend

  • Concrete5 (5.7) - Don't cache page or current block on block error
  • c# parsing xml with and apostrophe throws exception
  • Recursion in ASP.NET Core Razor views
  • integration of function in modelica
  • Msvcr71.dll Msvcp71.dll missing
  • Rails 5 - Google Maps - Javascript error - initMap is not a function - fixing one js issue creates a
  • NRefactory: How do I access unresolved Named Arguments on a Property Attribute?
  • How to filter on year and quarter in pandas
  • Warning: strpos() expects parameter 1 to be string, resource
  • how to query for min or max inet/cidr with postgres
  • Insertion large number of Entities into SQL Server 2012 [duplicate]
  • Oracle - Second level subquery cannot see field from main query
  • R sqldf renaming a field in a select statement
  • crash in __tcf_0
  • How to turn (A, B, C) into (AB, AC, BC) with Pig?
  • Detecting # in Scheme list
  • Flex items with same property values are rendering in different sizes
  • Enumerating Controls on a Form
  • Pycharm: Marking a folder as 'sources root' is not recursive for subfolders
  • Invalid Date on validation Date of js
  • MySQL Order by column = x, column asc?
  • Unable to get column index with table.getColumn method using custom table Model
  • Grails calculated field in SQL
  • How to write order and limit within cakephp joins array
  • Record samples being played with OpenAL
  • Breeze - Deleted Items nav properties bug
  • Jenkins: How To Build multiple projects from a TFS repository?
  • How do I fake an specific browser client when using Java's Net library?
  • javaw.exe and eclipse startup problems
  • Can Jackson SerializationFeature be overridden per field or class?
  • Apache 2.4 - remove | delete | uninstall
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Matrix multiplication with MKL
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • NSLayoutConstraint that would pin a view to the bottom edge of a superview
  • CSS Applying specific rule for a specific monitor resolution with only CSS is posible?
  • What are the advantages and disadvantages of reading an entire file into a single String as opposed
  • need help with bizarre java.net.HttpURLConnection behavior
  • Converting MP3 duration time
  • How to push additional view controllers onto NavigationController but keep the TabBar?