Failure of Key-NxtBlk Trigger in Tab Pages
Say, I have 3 blocks, b1, b2 and b3, wherein block b1 and b3 are in a "tab-paged canvas" and block b2 is in a different canvas.
When the control is in the tab-canvas (say in block b1). Upon pressing the Key_NxtBlk, CTRL goes to the third block rather than block b2 (since b1 and b3 are in the same tab page).
Also, as the navigation is not as per the block sequence, the Key-Nxtblk trigger is also not firing.
What should I do to make the procedures written within Key-NxtBlk to fire from the tab-canvas and at the same time, make the system navigate as per block sequence.
Anticipating an Early Solution
Thanking you in advance
Ramnath Balasubramanian
Dear Bogdan Dincescu,
I cannot set the block navigation style as "Next Block" as every block in within my tab canvas are multi-record blocks with the navigation style as "Change Record". Can you suggest a different solution.
Regards
Ramnath Balasubramanian
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Bogdan Dincescu ([email protected]):
What if you set the block navigation style "Next block"? Then, normally, when pressing TAB/ENTER on the last item of the block, the cursor would move to the next block.
Then, a key-nxt-blk trigger, set at block level, should help.<HR></BLOCKQUOTE>
null
Similar Messages
-
How trigger when-tab-page-change will fire explicitley
Hi,
When-tab-page-change trigger fires only on explicitly changeing the tab page by mouse or key board, is there any way to call this trigger implicitly.
Please do not suggest option execute_trigger.
Thanks,
Ashishyou can take a copy from this trigger and put in a procedure in the form and call it in the trigger of when tab page change and when you need.
-
Trigger for Tab page selection
Hi all,
I have a form with a tab canvas with 3 tab pages. I have a multi record block in an tab page and I need to refresh the data in that block when i select the tab page. I have put the execute_query in when-new-block-instance of that block but, its not working. It will get queried only after i click on any fields of that block.
Any ideas??
With Regards,
Yathishcheck this sample code used in when-tab-page-changed, topmost_tab_page value is what you need to know:
DECLARE
tp_nm VARCHAR2(30);
tp_id TAB_PAGE;
tp_lb VARCHAR2(30);
BEGIN
tp_nm := GET_CANVAS_PROPERTY('emp_cvs', topmost_tab_page);
tp_id := FIND_TAB_PAGE(tp_nm);
tp_lb := GET_TAB_PAGE_PROPERTY(tp_id, label);
IF tp_lb LIKE 'Sa%' THEN
SET_TAB_PAGE_PROPERTY(tp_id, label, 'SALARY');
ELSIF tp_lb LIKE 'Va%' THEN
SET_TAB_PAGE_PROPERTY(tp_id, label, 'VACATION');
ELSE null;
END IF;
END;
Message was edited by:
Rondelek -
Commit/Rollback on Tab pages
I have three tab pages
1st tab page called master_detal_page. It is base block bound to tables.
2nd tab page called Keyword_page. It is not bound to the table.
3rd tab page called Exit_page. It will popup dialog box ask for save the changes. commit,rollback,exit_form on trigger when-page-change.
I encountered problems that I was unabled ROLLBACK or COMMIT the change I made on 1st or 2nd pages. When I refresh tab pages always display back to orginal records.
Please help me with any technical to solve it. Thanks
Trigger: WHEN-TAB-PAGE-CHANGED
DECLARE
v_result VARCHAR2(30);
BEGIN
IF :SYSTEM.TAB_NEW_PAGE= 'EXIT_PAGE' THEN
v_result := FUNCTION_DISPLAY_MSG_BOX('Do you want to
save changes before existing');
IF v_result = 'YES' THEN
COMMIT;
GO_BLOCK('BLK_1ST_PAGE');
ELSIF v_result = 'NO' THEN
ROLLBACK;
GO_BLOCK('BLK_1ST_PAGE');
ELSE
EXIT_FORM(NO_VALIDATE);
END IF;
END;what is the error you got? go to menu/display error to see if any.
Then it likely you got saving issue with your master-detail block.
can you save with only master block data? but cannot save if both blocks have new data?
if yes, then you may add when-validate-record trigger to master and detail blocks, with code forms_ddl('post');
then see it makes difference. -
I want to trap the even fired when i try to
change the Tab Page. I will work fine if i will change the tab page (built in when-tab-page-changed) but as per my knowlege there is no event fired if i click the same tab page twice. i.e. if a tab page named 'a' is pressed and the current tab page is 'b' then the trigger when-tab-page-changed will be fired. But if the current tab page is 'a' and user tries to click on 'a' tab page, which event will be fired? Is there any other way to trap the same? This is required because I am trying to interchange two tab canvases on one content canvas. I am doing this to avoid arrows at right side of the tab canvas incase of multiple tab pages.
Please take this matter as highest priority.
nullEdited by: user9170870 on 01.06.2010 0:27
-
I have 2 tables their structure is as follows:
1- Dept_id, Dept_name
2- Emp_id, Ename,Sal,mgr,hiredate,Dept_id
Now i want a Multiple tab page in my form if I click on Sales all the employees working in sales department should be displayed automatically likewise when I click on Accounts tab all the employees working in relevant department should be displayed automatically......how can I achive this ??? any advise or help highly appreciatedHello,
Use the trigger: WHEN-TAB-PAGE-CHANGED to detect which tab you are switching to.
Then for each tab, change the block property using: SET_BLOCK_PROPERTY built-in and change the property DEFAULT-WHERE to the one that gives you the employees working in sales etc...
To get that when you enter the tab page, use the built-in EXECUTE_QUERY
Hope this help -
I compile forms using v6i. The forms are made with v6 and they have 2 TAB PAGES with the same block and first page is visible but the second page is not navigable with mouse.
Why doesn't work ? These forms v6 are correct.
Thank you.When you click on a tab, if the cursor is in an item on the first tab page, the second won't come up. You have to move the cursor when the tab page is activated. (I'm not sure, but I have patch 13 installed, and this does not seem to be a problem any more. However my associates with an older version do have your problem.)
I use a when-tab-page-changed form-level trigger:
-- When-Tab-Page-Changed form-level trigger
Declare
new_pg varchar2(30) := :system.tab_new_page;
Begin
If new_pg <> get_item_property(:system.cursor_item,item_tab_page) then
-- cursor is on a different tab page. Need to navigate to an item
-- on the requested tab page.
If new_pg = 'TAB2' then
Go_item('B3.NAME');
else -- TAB1 tab page
Go_item('B1.KEY_NAME');
end if;
end if;
End; -
Forcing Save when changing Tab Pages
Hi,
I have a form with four different tab pages
and a common "Save" button (that performs
the Form commit).
The problem is that I would like to force
the user to commit any changes they have
made in one tab pages before allowing them
to change tabs.
Sort of a PRE-TAB-CHANGE trigger.
Any ideas on how to solve this ?
Thanks in advance.
Regards,
Klas MalmstromHi
You may use trigger When-Tab-Page-Changed, asking for commit and if user answers 'NO' return him to previous Tab.
Andrew. -
Navigating to a tab page after a show_window() in on-commit trigger
I have a multi-tab form. On-commit, the form checks for warnings. When there is one or more warnings it opens a window to list them. With or without warning messages, the data is committed with commit_form.
Whenever window with warning messages is displayed, the form always returns to the top-most tab. Otherwise tab page is not changed.
In the on-commit trigger I save the tab page and then call set_canvas_property() after show_window() to restore the tab page. For some reason, the first tab page is always on top even though the the tab page name I saved is correct. I can't use go_block() in the on-commit trigger.
Are there other ways to restore a tab page on-commit?Hi claytonfan
Are there other ways to restore a tab page on-commit? Try the following code in the WHEN-TAB-PAGE-CHANGED OR On-commit trigger.
IF GET_CANVAS_PROPERTY('tab_canvas_name', TOPMOST_TAB_PAGE) = 'first_tab_name' THEN
GO_BLOCK('BLOCK_NAME');
--write ur code--
ELSIF GET_CANVAS_PROPERTY('tab_canvas_name', TOPMOST_TAB_PAGE) = 'second_tab_name' THEN
--write ur code--
END IF;Hope this helps...
Regards,
Amatu Allah -
Hi all
Is any way to found examples of
WHEN-TAB-PAGE-CHANGED trigger
in forms implementations.
Any references will be very usefull.
Thanks a lot,
GorIn the the on-line help Forms' doc there is one :
In case you cannot find it... here it is:
Examples /* Use a When-Tab-Page-Changed trigger to dynamically**
change a tab page's label from lower- to upper-case**
(to indicate to end users if they already have** navigated to the tab page):*/
DECLARE
tp_nm VARCHAR2(30);
tp_id TAB_PAGE;
tp_lb VARCHAR2(30);
BEGIN
tp_nm := GET_CANVAS_PROPERTY('emp_cvs', topmost_tab_page);
tp_id := FIND_TAB_PAGE(tp_nm);
tp_lb := GET_TAB_PAGE_PROPERTY(tp_id, label);
IF tp_lb LIKE 'Sa%'
THEN
SET_TAB_PAGE_PROPERTY(tp_id, label, 'SALARY');
ELSIF tp_lb LIKE 'Va%'
THEN
SET_TAB_PAGE_PROPERTY(tp_id, label, 'VACATION');
ELSE
null;
END IF;
END;Greetings...
Sim -
What are the shortcut keys for new tab page?
It looks like the new tab page (Firefox 13, with the
screenshots of your popular pages in it) is a mouse-only
feature.
Is this correct? What are the shortcut keys to access
the links on the page?
thanks,
PatrickHi,
As of now there aren't (most likely) keyboard shortcuts. Please also see [https://support.mozilla.org/en-US/kb/new-tab-page-show-hide-and-customize-top-sites this] for working with the new tab page. -
Key Handling in Tab Pages of Form
Dear OTNz
I want to control my tab pages with some HOT keys
For example : I have Five Tab Pages named as FIRST,SECOND,THIRD,FOURTH and FIFTH
now i want to access them with the keys ALT+F,ALT+S,ALT+T,ALT+U and ALT+I rescpectively...
Is there a way in oracle forms to capture key codes and then use them to go to the particular tab page with those keys.
If any body knows ..pls tell me ASAP.i'll be really thankfull.
ALL i want to do is to provide hot keys to my TAB PAGES....
I'll like ORACLE REPORT TEAM to respond me if there is any way to implement this functionality.
THANK YOU.Hi Qaiser
The best place to ask this question is the Oracle Forms forum. I hope env the "ORACLE REPORT TEAM" will agree with me.
Regards
Sripathy -
When-tab-page-changed trigger PL/SQL
I have a form which Has two tabbed regions
Can Anyone please let me know how to write the PL/SQL for the when tab page changed trigger for this scenario.
I can do it for single tabbed region but cant understand how to do it for 2 or more tabbed regions
thanksYou have to check :system.tab_new_page for what tab page you ended up on as the result of the user navigation. See the help file for an example of code.
-
F2 Key - List all of the Tab Pages
Hi, I am trying to make F2 Key work to list all tab pages for client-server forms, but could not. I am not sure the F2 key feature for forms 6i is only for web forms or it works for client-server forms as well. The version of the 6i is:
Forms [32 Bit] Version 6.0.8.18.3 (Production)
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
JServer Release 8.1.7.0.0 - Production
Here is the help from Form builder 6i:
New ability to list all tab pages
A new key, called List Tab Pages (corresponding to the F2 key), has been added to the tab canvas functionality.
If the end users press this key, they are shown a pop-down list of all the tab-page names for that canvas. From this list, they can pick the tab-page that they want to activate.
This feature is handy in those cases where there are so many tabs for the canvas that not all can appear simultaneously.
Please help!
Thanks,
LLI use Forms [32 Bit] Verzia 6.0.8.17.1 (Produkcia) and there is no F2 key. Do you see F2 key if you press CTRL+F1 ?
-
Tab pages - Navigation Problem
Hi,
What key I should use, if I want to navigate to other blocks in the same tab page.
Thanks
KC
nullI had this same problem. I created a TAR on Metalink about it and Oracle's response to me was to see Note#1016812.4 "KEY-NXTBLK AND KEY-PRVBLK DO NOT FIRE ON TAB PAGE".
Basically, those triggers perform differently for tab pages.
Solution Description:
=====================
The KEY-NXTBLK and KEY-PRVBLK triggers are re-defined to mean "Next Tab Page" and "Previous Tab Page" when on a tab page.
However, you can put calls GO_ITEM or GO_BLOCK into a WHEN-TAB-PAGE-CHANGED
trigger instead of the KEY-NXTBLK and KEY-PRVBLK triggers. This way, when
Forms thinks you want to change tab pages, you can change blocks.
Solution Explanation:
=====================
The KEY-NXTBLK and KEY-PRVBLK triggers were redefined to be consistent
with the Microsoft standard for tab sheets.
null
Maybe you are looking for
-
Can't delete files from external hard drive
So here's an interesting problem that I've never run across. I have a Western Digital hard drive plugged in and I was deleting some files off it today when suddenly it started saying that there were some files in use and it couldn't delete those. I h
-
How to display the Page Numbers in AP Check Print Report
Hi I am using <?for-each@section:G_CHECKS?> at form field. But It did not works for me. Please guide me inthis regard. Thanks Namitha
-
FRM-92101 in wu_test (the webutil demo form)
Error: FRM-92101 in wu_test (the webutil demo form) Problem: I am attempting to run the wu_test form, downloaded with demos for webutil 1.02. Running wu_test or another form containing webutil functions results in FRM-92101 in the form's window and t
-
Using FIND icon in Oracle Apps 11i
I have a custom 6i form in Orcale Apps 11i which uses a search screen to find matching records. Once I open up the main form, I want to be able to go back to the search screen using the FIND icon in the toolbar (right below the Edit button). I am not
-
Hi Experts, Please guide me i am alone here. I Developed one BDC program For IW51. I want to wirite the condition for already exitting record based on the date. So i select the data from VIQMEL(view). I am getting the problem with date format, when i