Stacked Canvas and Raise FORM_TRIGGER_FAILURE

My form consists of a content canvas and a scrollable Stacked canvas. If FORM_TRIGGER_FAILURE is raised from one of the items on the content canvas the stacked canvas gets hidden, as you would expect i.e. FORM_TRIGGER_FAILURE returns the focus back to the item and because this item is on the Content canvas, the stacked canvas get hidden.
I need to be able to handle this i.e. when FORM_TRIGGER_FAILURE is raised for the items on the content canvas, I need to be able to issue a SHOW_VIEW for my stacked canvas. However, I cant work out how to do it. I've tried placing various triggers on the content canvas items, in the hope they'd fire when FORM_TRIGGER_FAILURE returns focus to the item but without success. Any ideas ?
Regards
Peter.

hi
try to adjust the View port width & height of stacked canvas properties back and forth.
ram Not sure this addresses my problem. The stacked canvas properties are fine. However, I want to be able to execute a SHOW_VIEW on my stacked canvas after a FORM_TRIGGER_FAILURE has been raised. Obviously, I could place a button that did SHOW_VIEW when pressed but thats far from ideal. I want to be able to do it automatically without any need for the user to do anything.
Regards
Peter.

Similar Messages

  • New stacked canvas and action items

    I have a form with tree module components into the same window: one new content canvas and two new stacked canvas.
    The window has an action item. When I execute this form the action item is'nt visible because is placed under the stacked canvas. Is possible display the action item at the bottom of the window?

    hi
    try to adjust the View port width & height of stacked canvas properties back and forth.
    ram Not sure this addresses my problem. The stacked canvas properties are fine. However, I want to be able to execute a SHOW_VIEW on my stacked canvas after a FORM_TRIGGER_FAILURE has been raised. Obviously, I could place a button that did SHOW_VIEW when pressed but thats far from ideal. I want to be able to do it automatically without any need for the user to do anything.
    Regards
    Peter.

  • Stacked Canvas and No. of records display on the block?

    Any coding to re-size the "Stacked" canvas and no.of records displays on the block?
    Please advice,
    Amy

    u can set the view port and Width and height of the Stack canvas at runtime but not No of Records display....
    set_view_property .....VIEW_SIZE or Width / Height
    for canvas size use SET_CANVAS_PROPERTY
    Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • What is diffrerence between return builtin and raise form_trigger_failure

    what is diffrerence between return builtin and raise form_trigger_failure

    I believe you mean using the keyword RETURN; in a forms trigger versus raise form_trigger_error
    Mostly Depends on what trigger it is used in
    Generally
    Return: Stops the execution of the trigger and exits when it encounters the return keyword, however, no additional checks or form status settings are made. Acts like trigger fired successfully.
    Raise form_trigger_failure: Sets forms/block/record status (at appropriate level) depends on trigger may rollback etc.. see trigger defintions.
    Dave

  • Stacked canvas and bean area

    Hi
    i have a bean area which display graph placed on a stacked canvas. i have set the stacked canvas to show the horizontal scrollbar. i want to allow user to scroll through the stacked canvas when the graph increase in width.
    in my program, the bean area width would be dynamically change - increase the width depending on the number of data using
    set_item_property('NAV.BA',WIDTH,690).
    but the bean area does not seem to increase in width even when i set the property. why is it so?
    appreciate any help. thx.
    Siti

    Hi,
    did you try to change the size of the bean display that runs in the BeanArea. The bean area should adjust to the size of the bean displayed. I didn't find a bug filed on the issue of not being able to set the width and height of a JavaBean container. But I could find one for Forms 6.0.5 that was fixed in 6i about not resizing the bean container according to the resize of the embedded bean area.
    If this doesn't solve the problem I recommend contacting customer support at metalink.oracle.com
    Frank

  • Content canvas and  a stacked canvas moving when scroll through the details

    Dear Friends
    I have Mater and Details Block , and I have two canvas content canvas and a stacked canvas, and the a stacked canvas on top of content canvas , and I have set the horizontal and vertical scroll bar for the stacked canvas , my problem is that when I inquire and click on the details block which is on stacked canvas the header content canvas is moved up
    and what I want the header to be stable and not moving when scroll through the details .
    Best regards
    Jamil Alshaibani

    if the canvas is moved during runtime in general the problem is that is does not fit completly in the window. Try to adjust your window-size so that the whole layout fits into it.

  • Validation vs Stack canvas on tab page

    Hi,
    I have a problem about how to show/hide view when validation was triggered.
    My situation is:
    - I have a 3 pages tab-page. On the first tab, I have a stack canvas. I have codes to show the canvas at When-new-form-instance and show/hide the view at When-Tab-page-change.
    Problem:
    - I click on the third page and enter something wrong values on a field and then I didn't go to another field, click the first page directly.
    The oracle form shows the first tab without the stack canvas and the error message popup at the same time.
    - We have a backend procedure which is used to give the error include the Raise form_trigger_failure. When the validation is fail, this procedure will be called to give the error message. It is a standard procedure so we must use it.
    - I tried to Show_view before or after the error message, but it cannot help.
    Question:
    Is there any method to help this problem? Thanks for advance..
    I am using Forms10g.
    Regards.

    Another solution without a timer :  You can use the WHEN-TAB-PAGE-CHANGED-Trigger to handle the change of a tabpage.  And here, before you navigate to another tabpage, you can use the built-in ENTER to start the validation before the next tabpage is displayed.+When-tab-page-changed runs AFTER the tab page has switched. If you run validation from it, you will need to check if the validation failed, and then go back to the prior tab page.
    Also, the Validate built-in is a better method to cause validation to occur.

  • Stacked canvas as a tab element

    I am working on a form say 'A'. In this form, I have a tabbed canvas 'B' with 4 tabs.
    I created another stacked canvas 'C' on which there are elements from 3 different blocks. Now I need to make this stacked canvas as an element of tab2 in canvas 'B'. I.e., if the user clicks on the tab2 of canvasB, it should show the stacked canvas C below the tab.
    How can I do this?
    Thanks,
    Chiru

    It is not possible to define stacked canvas for a tab canvas.
    To avoid such circumstances,
    in pre-form, you write
    HIDE_VIEW('STACKED_CANVAS');
    SHOW_VIEW('TAB_CANVAS');
    If tab canvas is not showing up, set the fol. property
    raise on entry : yes
    viewport x and y position to 0
    and try runing ,
    if the tab canvas is showing up, gradually return to the required position
    else check for any hide_view(tab_canvas) code in your form.
    or you can reduce the height of content canvas to view tab canvas. Check the window name of content and tab canvas is same.
    And in when tab page changed, you write for each tab page name
    IF :SYSTEM.TAB_NEW_PAGE='PAGE2' THEN
    go_item('some item in tab page 2');
    SHOW_VIEW('STACKED_CANVAS');
    ELSIF :SYSTEM.TAB_NEW_PAGE='PAGE1'
    go_item('some item in tab page 1');
    HIDE_VIEW('STACKED_CANVAS');
    END IF;
    Why that go-item is required?
    Suppose your cursor is in an item in the stacked canvas, and if you click on page 1, The stack canvas wont disappear.
    Edited by: Dora on Dec 23, 2009 8:29 AM

  • Stack Canvas Horizontal Scroll Bar

    Hi There,
    I'm using Forms 6i (Rel.2) and i am facing a problem with may stack canvas's horizontal scroll bar at runtime, as follows:
    As I put the cursor on an Item inside the stack canvas, and try to scroll away to the left where that Item is no longer viewable, and then stop scrolling, the scroll back will jump back to that Item,so I have to press and hold the mouse on the scroll bar as long as I need to see other Items at the far end! I tried to set the "Raise on entry" property to "YES", but no success.
    I tried the same in Forms 5 and it works fine with no problems at all!!!
    Any suggestions?

    Hi,
    My colleague found out that a timer I had programmed in a calling form to show the current time was actually refreshing every one second and in doing that it was refreshing the whole view which caused it to jump back to the first item. I had to remove the timer and it's working fine now.
    Thanks again,
    Ali

  • Stacked canvas

    Hi
    I have a screen where part of the block is in a 'fixed' content canvas and part is in a stacked canvas which is scrollable. Initially, both canvases are displayed and I can scroll backwards and forwards in the stacked canvas. However, when I select one of the fields that is outside the stacked canvas the stacked canvas disappears. Is there anyway of pinning the stacked canvas so that it is visible all the time.
    Thanks

    Hi
    What i understand when your naviagation is on contact canvas item then stack canvas disappear.
    it is so simple just click on the border of stack canvas and drag the stack canvas away from the items of contant canvas. it may possible your stack canvas is over the any item of contant canvas
    Regards

  • Stacked canvas view placed on the content canvas

    Hi to all,
    i am developed a one form ,i.e placed the stacked canvas view on the content convas.
    i create a two data block's with same table.
    one data block for content canvas and one for stacked canvas.
    in the content canvas i taken two fileds with scroll bar and remaining fields placed on the stacked canvas.
    these stacked canvas view put on the content canvas.it dispalying and
    executed succesfully.
    here i am getting one problem i am displying the 10 records at a time in both canvases.my requirment is placed on the
    cursor on the content canvas particular record scroll down then automatically show the same record details in stacked canvas and
    content canvas scroll bar is changed automatically stacked canvas scroll bar is changed.
    any one help me.........

    {quotei create a two data block's with same table.
    one data block for content canvas and one for stacked canvas.{quote}
    This is not necessary. Just create one data block and then assign the block items to your Content and Stacked canvases. You can display items in a data block on different canvases. By doing this, there is no need to write code to synchronize the records because they are part of the same data block so they will automatically scroll as you navigate through your records.
    Craig...

  • Stacked Canvas question in Forms [32 Bit] Version 10.1.2.3.0 (Production)

    Hi Friends, I am not sure if my explanation will suffice for resolution to this easy problem that is causing me so much grief.
    I have a form with one content canvas ROOT_CNV, One tab canvas TAB_CNV with two tab pages and One STACK Canvas Stack_CNV.
    All these canvases are on one Window ROOT_WINDOW.
    The tab canvas (TAB_CNV) is tabular in nature.
    There is a menu button that you can press that switches one record in the tab canvas and place this record in the stack_cnv. All the fields on the stack_cnv are mirror_image of the Tab canvas record that is the items are synchronised.
    NOW THE PROBLEM. When you press the switch button and you are in the stack canvas and you try to query any record, the form will take you back to the tab canvas and the fields will freezes, there are lots of forms here with this functionality that woks, but I cannot figure out while this particular one is behaving lke this.
    I have made the Stack canvas smaller, however, the issue is till the same, I think it has to do with the stacking order and I had already rearrange this to know avail, any suggestion will be appreciated.
    Thank you.
    Tab canvas
    Page 1        Page 2
    *===== ========*
    record     proj              sub         Status
    *1 A 1 ACTIVE*
    *2 B 1 PENDING*
    *3 C 1 ACTIVE*
    *4 C 2 ACTIVE*
    Click on the Menu Icon on record 1, then the stack canvas shows up (Stack_CNV) in a form Format
    **STACK_CNV* Page1 Page2*
    *===== =======*
    Prog:       A                Sub  : 1
    Status :   ACTIVE
    The tab pages still shows up on the stack canvas which is okay, however, when you try to query from the stack canvas, it takes you back to the tab canvas and everything freezes. Both canvas are on Root_cnv content canvas.

    Hi Ade2
    Pls Create a KEY-ENTQRY trigger at the form level add the following code :
    GO_BLOCK('dept');
    CLEAR_BLOCK(no_commit);
    ENTER_QUERY;Hope this helps...
    Regards,
    Amatu Allah

  • Simple Problem with Stacked Canvas, I hope

    Hello all,
    I am become a bit frustrated with what I thought would be a simple form development solution. I am trying to create a form with a stacked canvas that will display about 20 fields that can be scrolled through. This is the detail
    Total of 25 fields
    5 Fields on the content canvas
    20 Fields on the stacked canvas
    I created the first canvas that originally contained all 25 fields. Then I created the stacked canvas and moved the appropriate fields to the stacked canvas. Using the forms builder editor, I positioned my stacked canvas as such so that it would not overlap the last field on the content canvas or visa versa. This is a form being developed for Oracle EBus. Whenever I run the form in the apps, the stacked canvas is not visible. It only becomes visible when the 1st field on the canvas has focus. When the stacked canvas becomes visible, it shows all of the items of the stacked canvas and not just the ones that I included in the viewpoint. Once I tab through the last field of the stacked canvas, it goes back to the first field on the content canvas and the stacked canvas disappears. At this point I am not doing anything complicated, but for whatever reason this just is NOT working. Any advice anyone can provide, I would very much appreciate it. This is VERY frustrating.
    Thank you in advance.

    Step No. 1
    Set the STACKED CANVAS's property VIEWPORT WIDTH AND VIEWPORT HEIGHT
    This property determines what viewable width and height of the stacked canvas at runtime.
    Set SHOW HORIZONTAL SCROLL BAR or SHOW VERTICAL SCROLL BAR or BOTH as YES so that you can scroll down to view all the items in the CANVAS.
    Step NO.2
    In your WHEN-NEW-FORM-INSTANCE trigger, write the code to make the canvas visible
    SHOW_VIEW('stack_canvas_name');

  • 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

  • How do put a stack canvas inside the tab canvas

    Hi all,
    I have content canvas and tab canvas Now i want to put a stack canvas on the tab canvas .suppose tab canvas page are Page1,page2, page3 when i click the page1 then display the stack canvas 1,and when i click page2 then
    display stack canvas 3 ..... so on. help me to find the solutions to this Issue
    Thanks

    You would use the when-tab-page-changed trigger to use hide_view and show_view commands to hide one stacked canvas and show another.
    Just keep in mind that for a canvas to be displayed, the cursor must be in an item on that canvas, or at least in an item NOT covered by the canvas.

Maybe you are looking for