Going to Specific tab in oracle forms - oracle

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.

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.

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

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

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

Related

(Lotus Notes)Can the labels in the form set display conditions?

There is currently a form, suppose there are two labels, I want to have a field with a value for the label ex2 to appear, if not, hide the label ex2.
Is there a place to set it?
After I tried, the tab still visible...
In the Designer :
In the Client :
To hide a TAB you simply hide its contents. If you e.g. would want to hide ex2 you would select the complete content of the tab", open the text properties (Alt + Enter) and enter something like:
HideEx2 = "Yes"
in the hide- when formula. Then the tab will disappear as soon as the field "HideEx2" gets the value "Yes".
Take care: Hide whens are NOT calculated "automatically". If your Hide- When depends on the value of an option or checkbox field you need to check the mark "Refresh fields on keyword change" in the field properties of the HideEx2- field.
Otherwise your user needs to press F5 or save the document to make the tab appear / disappear
If there are Tables in the tab, then you need to do three steps:
select everything before the table (red BEFORE in the screenshot), set the hide- when
select all cells of the table, set the hide when
and at last select the text after the table (red AFTER in the screenshot) and hide it.
3 different selections, 3 times setting the checkmark, 3 times inserting the hide when! You CAN'T do it in one step, it's not possible to select a table AND its surronding and set the hide when for everything at once. You can select it, but hide when will only be set for some of the stuff.
If there is one single line that is not hidden in the tab, then it will be visible.

Replace custom menu with Oracle Forms 11g default menu

In my main form window, I have the following menu bar which is used for traversing. Its inherited from .mmb file.
Now, when I select any form on the menu, lets suppose I selected the highlighted "Purchase Order", then I don't want the same menu to be shown. I want the Oracle Form 11g's default menu to be shown instead, picture added below for reference.
I changed form's property of Inherit menu to No and the menu from image 1 isn't shown in "Purchase Order" but I still am not getting the default&smartbar menu.
How can I achieve that?
Thank you.
So I figured out a way how to disable .mmx menu and enable DEFAULT&SMARTBAR menu when I go to another form through the menu.
From the first screenshot above, the on-click-trigger had the following code
call_form(:global.path||'pc');
I replaced it with
call_form(:global.path||'pc',hide,do_replace);
So the addition of
,hide,do_replace
worked.
Side note: Also, make sure Inherit Menu property of Window property is "YES" and Menu Module of form property is set to "DEFAULT&SMARTBAR"
I think in the properties window from the form you got the property "menu module"
If you make a new form it gets the default: DEFAULT&SMARTBAR
So I think it is now filled with your mmb filename.

how to create a multiple tab on a single view

I have to create an MVC view where I have 3 tabs on a page.
Each tab has 10 fields to be accepted from the user. Then, the second tab is proceeded to which also has 10 fields.
My question is this: If I click on the back button of the page or if I go to the previous tab from the second tab, then it should show all the data which is filled by user and how to create a multiple tab on a single view. How do I go about doing this?

how to select item using Enter and enable double click in jqgrid in inline edit

Enter does not select item in select element in inline edit and blocks double click.
Steps to reproduce:
Open
http://trirand.com/blog/jqgrid/jqgrid.html
in IE9
Select
Row Editing (new)
Input types
Double click in first row "Desktop computer"
to start inline edit
Click in "Ship via" column in first row FedEx fiel to open dropdown.
Press Down arrow key to select Intime
Press Enter
Observed:
FedEx appears in Ship Via column
Double click in this row not more starts inline edit
Expected:
Intime should appear
Double click should put row in inline edit mode again.
How to fix ?
I suggest to solve the problem like in the change. The idea is very easy. Is one change focus many required finalization actions can be done in the current control. For example in case of <select> the 'change' event will be fired, onfocusout will be called and popup menus (context menu or datepicker) will be closed and so on.
SO I suggest to add the line
$(ta).closest("tr.jqgrow").focus();
inside of 'keydown' event handler after the line. The results you can see on the demo.

How do I set an optional xcodatamodel attribute?

I heard there was a checkbox or something but I can't find it anywhere in the XCode interface.
Should be right there in the data model inspector panel.
Press command + option + 3 to show that panel.
Or select the right one in the view button group and select the right tab.

Resources