Controlling focus in a Tab Canvas when a FORM_TRIGGER_FAILURE is raised

Hello,
I am currently working on a form that is using a Tab Canvas. The canvas has about 9 pages, and I am, at this moment, adding error handling functionality on the fifth page. My problem happens when a condition is met that raises a FORM_TRIGGER_FAILURE exception and the focus automatically goes to the first page of my canvas instead of staying on the fifth page. Is there anyway I can set the focus so that it remains on page 5 instead of going back to the front page?
Thank you,
Jojo

I use tabs, and a FORM_TRIGGER_FAILURE will not by itself cause focus to move to the first tab. There is something happening in your form just prior to the FORM_TRIGGER_FAILURE that is placing focus to some item in the first tab (maybe you're calling a function or procedure that is doing it?). If you don't know, try running the debugger and trace through your code during runtime and see what is causing it.

Similar Messages

  • Focus problem in TAB Canvas form

    Hi
    I am calling FormB from FormA by using
    CALL_form('FormB.FMX',NO_HIDE);
    But when I click on the any other field ( other than the first field in the called Form ), the screen is becoming blank, again I need to click on the Execute Query button, but after that I can click on any other field it wont go invisible.
    FormB has TAB canvas
    Oracle & Form Version Oracle 10g
    THanks in advance

    Hi,
    When I run the form directly also I am getting the same problem,
    Hi Tony,
    <<Define what's blank??? Errors???? >> means , I need to click on the execute query button to see the data, even to see the controls in the forms.
    As I said, i am calling this form from another form, and I am assign the values in the prequery, I am gettign the result propery, but when I click on any other control, the form become empty, I need to click on exec query to see the values and tex items etc.
    This form has one content canvas and one tab canvas.  What are the properies to set to place tab canvas on the content canvas.

  • Tab canva disapear whith stacked canvas

    hi guys,
    in my form there is:
    1. content canvas
    2.tabbed canvas
    when i put a stacked canvas the tabbed canvas disapear. any help?

    stack canvas can not put on top of tab canvas.
    what I did is to put tab canvas on content canvas and make tab canvas height very short, and then put stack canvas right below tab canvas that look like it's on tab.

  • Tab Canvas controlled programmatically

    Hi,
    I have tab canvas which had tab1 and tab2.
    Tab1 have master data and tab2 has detail information .
    I have Detail button in tab1 ... if i click the
    Detail button
    in when-button-pressed
    Go_block('Detail_blk');
    control goes to the new block, but the tab scope (tab2) is not showing ...
    How do i change the make visible tab2 when i do click the detail button from the tab1.
    Thanks
    Mani

    Yours is a combination of issues. Just going to the block will not ensure the Tab Page and stacked canvas will be visible. Unfortunately, in this situation, you cannot relay on a simple GO_BLOCK to display everything correctly. You will have to explicitly display the Tab Page (as dfcii indicated) and you will need to explicitly show your stacked canvas with Show_View. When you leave your stacked canvas, you will need to ensure it is hidden as well as you can't rely on the When-Tab-Page-Changed (WTPC) trigger to hide your stacked canvas. Consequently, you will need to include a call to Hide_View in your WTPC trigger. Also, make sure you navigate away from the item in your stacked canvas before you call Hide_View.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Tab canvas disappear when the main stacked canvas reach the end of column

    Hi all,
    I have 3 canvas ( 1 main canvas, 1 stacked canvas ) and this link to 1 tab canvas. All these are in the same window.
    Whenever using the keyboard to press enter navigate from column to column and when it reach the end of the main canvas which is about to jump to the stack canvas, the two canvas ( stacked & tab ) was hide by itself. Even I have stated earlier to show all canvas in the pre-block trigger. when I keep on press the enter to jump to the next stacked canvas, this stacked canvas is being shown again. My tab canvas was not appear if I am press the enter key. However, if I press the arrow key down the tab canvas is appear. This I wasn't do any code to call the tab canvas.
    When I keep on press enter and reach the end of the stacked canvas again the tab canvas is disappear, unless I have press the arrow key down to display the tab canvas.
    Trying to use show_view( tab canvas ) in many trigger but still does not show the effect.
    Anyone has this experience before ?
    Thanks.
    Lim

    Hi Lim
    Pls check this hope it helps u to recognize dealing with muti-canvas in 1 window...
    how to use stack canvas in tab canvas in oracle forms
    Regards,
    Amatu Allah.
    Edited by: Amatu Allah on Sep 22, 2011 2:23 AM

  • Setting stacked canvas properties when inside a tab canvas

    Hi all,
    I grope setting the x and y position of a stacked canvas programmatically : I work inside a tab canvas , there is one multirecord based block which is split into two tab pages. The problem is that the x and y positions of each first item in each tab of the block are no the same. And I want to hide and show the stacked canvas on which is based the scrollbar of the block , according to the top_most_tab_page.
    The stacked canvas has the same width and height as the tab canvas ; it has viewport width set to the width of the scrollbar , say 0.415 ; it has viewport height set to the length of the scrollbar , say 1.833 ; the viewport X/Y position on canvas properties are set to 0.
    I tried to set the VIEWPORT_X_POS and VIEWPORT_Y_POS properties of the view programmatically to place the scrollbar just sticky with the first item when in each tab page , but the scrollbar is not displayed on the desired place. It is moved.
    So how to place the stacked canvas at the right position to be stuck with the left first item ?
    Thank you very much indeed.

    I did a little test and it works (it'll only take you 3 min)
    Create a new Form.
    Add 3 Canvases 1 Content and 2 Tab with the following Properties
    Content
    Vieport X Position on Canvas: 0
    Vieport Y Position on Canvas: 0
    Width: 540
    Height: 324
    Master Tabs
    Vieport X: 35
    Vieport Y: 20
    Vieport Width: 460
    Vieport Heigth: 280
    Detail Tabs
    Vieport X: 150
    Vieport Y: 95
    Vieport Width: 260
    Vieport Heigth: 160
    Then go to Layout editor and while viewing the Content Canvas go to the menu View -> Stacked View...
    From there select both tab canvases to be shown.
    Also add a dummy item (i.e a button )somewhere in the form otherwise nothing will appear when you run the form.

  • Multi-Tab Canvas Navigational Controls

    I want to control navigation out of a block displayed on a "tab" canvas to other "tabs" in a form containing multiple tab canvases. Are ther any "events triggers" associated with the "tab" level similar to the "WHEN_BUTTON_PRESSED" trigger such as "WHEN_TAB_SELECTED"?
    I assume I must place the triggers on the block (or blocks) associated with the respective tabbed canvases.
    null

    The trigger must be placed at the form level. Use "if :system.cursor_block = 'BLK'"
    to code for each tab.

  • When New Tab Canvas/Page?

    What is the best way to determine when you user has navigated to a new tab canvas/page when the navigation does not occur by clicking on the tab canvas's Tab? For instance, when the user clicks a button item that navigates to a different tab canvas/page I want to disable the tab canvas/page the user came from.
    Any help would be greatly appreciated.

    Hi
    i asked that question before pls read the following link
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=2191397
    Amatu Allah

  • Tab Control Focus

    I have a tab controls with two tabs.  I put a lot of indicators under each tab.  During run time, the indicators will get updated, and the user can select which tab he wants to view.  I only want the user to change the tab order.  It seems like when the user is on the 1st tab and the indicators on the 2nd tabs are being updated by the program, the problem will switch the tab control to the 2nd tab.  Is there a way to disable that?  
    Kudos and Accepted as Solution are welcome!

    You'll have to show us a VI.  I have never seen the tab switch from one page to another unless either the user clicked on a new tab, or the program programmatically changed the tab.  Generally for me, the tab control is never read from or written to inside the VI, it is just used as a mechanism to separate and organize different parts of the program.  Updating an indicator on a non-shown tab should not be causing that tab to be switched to.
    How do you want the user to change the tab order?  Do you mean that you want to swap the locations of the tabs so that page 2 moves to the left ahead of page 1?

  • Tab canvas + post-forms-commit + form_trigger_failure

    Hi all,
    There is a tab canvas with eight tab pages in my forms.
    In the post-forms-commit form-level trigger there are controls based on some conditions before executing the processes. When the conditions in the controls are not met then a stop alert is shown and form_trigger_failure is raised. All of these actions , that is the alert and form_trigger_failure , are contained inside a procedure named affiche_erreur.
    The problem is that after pressing the alert button then forms goes to the first tab page. And the focus is on a non-navigable button ! Very strange !
    I trapped the form_trigger_failure exception in post-forms-commit , but untill now I do not find any way how to put the focus in a specific item.
    So how to put the focus into a specific item or a specific tab page ?
    Thank you very much indeed

    Mark , the when-tab-page-changed trigger does not fire after I pressed the alert button although the focus goes always to the non-navigable button in the first tab-page. I wrote a pause statement at the beginning of the when-tab-page-changed trigger but there was no pause alert at runtime.
    Finally I created a timer in the exception of the post-forms-commit trigger which catches the form_trigger_failure exception , and in the when-timer-expired trigger I wrote go_item.

  • Tab Canvas

    Hi,
    I am using Forms 10g. I have Content canvas named CANVAS1 display few items from BLK1. I created a tab canvas called TAB_CAN contains TAB_PAGE1 and TAB_PAGE2, display items from BLK2
    I would like to show the form in enter query mode and Form should display both CANVAS1 and TAB_CAN
    Content canvas only displayed if i write in when-new-form-instance
    show_view('canvas1');
    show_view('tab_can');
    go_item('blk2.item1);
    go_item('blk1.item1)
    enter-query;
    tab canvas only displayed if i write code like this in write in when-new-form-instance
    show_view('canvas1');
    show_view('tab_can');
    go_item('blk1.item1)
    go_item('blk2.item1);
    enter-query;
    So, I request you to write a code to display both canvases and control should be in contant canvas and form should be enter-query mode.
    Regards,
    Murali

    Hello Murali,
    As you are saying you want to show a Content canvas (Canvas1) and Tab Canvas (Tab_Can) both at the same time, you need to use more than one window for this.
    Actually at any instant of time, you can show only one canvas on any window. So have two windows WINDOW 1 and WINDOW 2.
    In Content canvas, set the window as WINDOW1, and in WINDOW1 set the primary canvas as CANVAS1. And, for tab canvas actually you should have another content canvas(CANVAS2) on which you have placed this Tab_Can. So in content canvas (CANVAS2), set the window as WINDOW2, and in WINDOW2 set the primary canvas as CANVAS2.
    It will work i feel.
    Regards,
    Yathish...

  • Tab Canvas displaying Stacked Canvas at runtime disappears?

    Hi,
    I have 3 canvases that contain the following:
    1) Content Canvas -- This contains the TREE item.
    2) Tab Canvas -- A tab canvas with a single Tab Page
    3) Stacked Canvas -- This is a Stack Canvas with a few
    text items on it.
    4) Single Window.
    ======At runtime the following actions occur: ==========
    1) The Viewport of the stacked canvas is set to the
    Viewport of the Tab Page on the Tab Canvas so that it
    looks like the Tab Page has a vertical and horizontal
    scrollbar with text items displayed.
    2) A text item on the Stacked Canvas is in focus as soon
    the as the form window is displayed.
    ===================Problem is : =====================
    1) When I select a Node of the Tree Item, the Tab Canvas
    automatically disappears(or becomes invisible) , as a
    result the stacked canvas displayed within it at
    runtime also becomes invisible. I am left with only
    the Tree item being displayed.
    =======================================================
    PS : I have never experienced this problem with just the
    content canvas and the Tab Canvas together.
    Any soultion to this problem is most appreciated.
    Thanks
    Sharath

    I am experiencing the exact same thing. The width of the tabs in the layout editor is varied depending on the length of the text. However, at run-time, the width of the tabs is fixed, causing the tabs to be wider than the window and a set of VCR buttons to appear in the upper right corner of the canvas. Personally, I think this is a Forms bug. Why would they intentionally let us set the width to variable at design-time only to force a fixed width at run-time?

  • Forms 6i, Stacked & Tabbed Canvas- Wierd behaviour

    Hi,
    I am having a wierd problem:
    Scenario:
    I have a datablock of 40 columns.
    I put 1 (say col-1 on page_1 and col-21 on page_2) column each on two different TAB pages.
    I created 2 stacked canvases: page_1_stacked & page_2_stacked
    I put col-2 to col-10 on page_1_stacked
    and col-22 to col-40 on page_2_stacked
    I used the following code to show/hide the appropriate cols/stack canvases when the users changes Tab pages:
    [when-tab-page-changed
    if (:system.tab_new_page ='PAGE_1')
         then
         show_view('PAGE_1_STACKED');
         hide_view(''PAGE_2_STACKED'');
    elsif (:system.tab_new_page ='PAGE_2')
         then
         hide_view('PAGE_1_STACKED');
         show_view(''PAGE_2_STACKED'');
    end if;
    Problem:
    Everything seems to work fine, the stacked canvases show/hide as expected, but --->as soon as I put my cursor in any column on TABBED PAGE (here col-1 or col-21), all the stacked canvases vanish
    -->if as a result of above case where I put the cursor in a tabbed-page col and canvas vanished, I navigate to the next field (which is on canvas), the canvas shows up (which is normal)....but then this canvas wont get hidden with my hide view... and end up with all stacked canvases shown together or none at all
    I have played around with all the properties and am really trapped.
    Please help!
    Thanks.

    Devang, are you aware that if you put the cursor focus in a field, Forms will ignore any show_view or hide_view commands if they cause the cursor to disappear? And if your cursor focus is in a field in a stacked view, hide_view will not work. Forms will not let you hide or cover up what ever item is identified by :System.Cursor_Item.
    I do not know why you need Col_1 or col_21 on the tab canvas. Put them on your stacked canvasses, too.
    Use a when-new-item-instance block-level trigger to determine which tab page should be displayed. If :System.trigger_item = col_1 through col_20, make sure Page_1 is displayed, and for col_21 through col_40, make sure Page_2 is displayed.
    Similarly, use a when-tab-page-changed trigger to move the cursor to the correct canvas. You wouldn't even need to use show_view or hide_view, Forms will do that for you each time you move into an item on either canvas.
    And why are you using two canvases anyway? Since you are using a horizontal scrollbar, why not put them all on a single canvas? (And then you wouldn't need the tab pages.)

  • Tab canvas disappears at run time

    Hi,
    I have a Content canvas with a data block displaying fields in the top section of the canvas_main. Bottom half of the canvas_main has canvas_tab with three tab pages tab1, tab2, tab3 all have data block (child records fo above block) each.
    At run time I can see the canvas main with its items but cannot see the tab pages.
    since I execute a query in WHEN-NEW-FORM-INSTANCE which is supposed to populate fields in canvas_main as well as child records in tab pages. I have inlcuded debug messages to see if tab page does appear or not. So the tab pages do appear and also display child record but tab canvas does not stay on the scree.
    Did try to use SHOW_VIEW('tab_canvas') without any luck.
    Any advice is greatly appreciated.
    Thanks

    Hi,
    a tab canvas is like a stacked canvas.
    Both canvas types disappear, when they lie over an item, with input focus. When you press next block / next item (when the items on the tab canvas belong to the same block) should display the canvas again. When this is true, I am probably right.
    Regards
    Hans

  • Place a Tab Canvas within a Tab Canvas (there is more Stack Canvas)

    I Use Forms [32 Bit] Version 10.1.2.0.2.
    Hi All.. I have the same problem with this case ( Place a Tab Canvas within a Tab Canvas ).
    but I need help with my case, what if there is more stack canvas, like this :
    - I created Tab Canvas first, then
    - in my first Tab Canvas I put the new tab canvas (this solved), then
    - I create again new Tab Canvas in the second Tab Canvas.
    How do I control that in Trigger Level Form - WHEN-TAB-PAGE-CHANGED ? if I want to show if :
    - First Tab Canvas I klik then the second Tab Canvas is show (solved), then if
    - I klik second Tab Canvas then the third Tab Canvas is show. (this my case)
    thx b4 to all ...... I am newbie in forms
    Edited by: 973372 on Dec 14, 2012 2:05 PM

    not yet

Maybe you are looking for

  • Can we use logical Operator in C:When  tag of JSTL

    Hi, I am developing an application in JSTL. I am using c:when tag. I have question whether can we use Logical OR operator in JSTL. I have tried using the following Syntax: The two bean fields have the value DISABLED <c:set var="testval" value = "${be

  • Can I startup with Leopard from Mac Mini using iMac G5 as display?

    I'm considering a mac mini purchase after the release of leopard. I have a iMac G5 that is not cutting it for film rendering. I would like to use it as a display for my Mac mini. Can I use Startup disk and work in the Mac Mini's OS?

  • Pages Copy & Paste Style Buttons don't change font size and style?

    Shouldn't the font size and style also be copied and pasted when I use the buttons to copy & paste the style within a page?

  • Add File to Library issue

    I have downloaded an 82mb mp3 file from another service. When I choose File, Add file to Library, I select the file and click open. There is a pause and then the add file dialogue box disappears as if it has successfully finished. However my file doe

  • Setting up the "Directory Access" application

    I was just looking at the "Directory Access" application, and noticed some services enabled by default (AppleTalk, Bonjour etc). I'm not using AppleTalk or Bonjour, so would it be useful to switch these off? (for security reasons or performance). Can