Problem in displaying stack canvas.....

anyone plz help......
First let me explain wat I hav done
I have a form module with two canvas - one is of content type(Canv1) and another is stacked type(stack1).. In Canv1 there is a button (Click)
in WHEN-NEW-FORM-INSTANCE trigger
hide_view('stack1');
in the WHEN-BUTTON-PRESSED trigger I hav given
Show_view('stack1');
hide_view('Canv1');
but,when I run the form and click the button it is not displaying stack1 canvas
Why?.....

anyone plz help......
First let me explain wat I hav done
I have a form module with two canvas - one is of
content type(Canv1) and another is stacked
type(stack1).. In Canv1 there is a button (Click)
in WHEN-NEW-FORM-INSTANCE trigger
hide_view('stack1');
in the WHEN-BUTTON-PRESSED trigger I hav given
Show_view('stack1');
hide_view('Canv1');
but,when I run the form and click the button it is
not displaying stack1 canvas
Why?.....You don't need to hide your content canvas, just use show_view for the stacked canvas. and check the viewport height and width on your stack canvas properties.
Tony

Similar Messages

  • Display stacked canvas on tab canvas page

    Hi,
    I am using Forms 10g. I have Content canvas named CANVAS1. I created a tab canvas called TAB_CAN contains TAB_PAGE1 and TAB_PAGE2, Stacked Canvas called STACK1.
    If if create tab canvas on content canvas thourhg labout editor. It's display well when forms run. But, i have created manually.
    1. How to display tab canvas programatically.
    2. How to display stacked canvas on TAB_PAGE1
    Regards,
    Murali

    Looks like you are in the wrong forum.
    Please post this in the [Forms forum|http://forums.oracle.com/forums/forum.jspa?forumID=82]
    Timo

  • 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?

  • Display stacked canvas on content canvas?

    hello all,
    i am try to show the stacked canvas on content canvas at design . but its not display. i set the following properties.
    type-stacked
    displayed:true
    blevel:none
    window: window which is assign to content canvas
    raised on entry: true
    display x position
    display y position
    view hori. scroll bar: true
    after setting above properties stacked canvas is still on showing on content canvas at design .
    please help me
    thanks
    yash

    Hi,
    1.Create one content canvas and create one stacked canvas.
    2.give the label as Conetnt canvas and stack canvas respectively.
    3.Go to conetent canvas layout editor
    4.click on menu view-->Stacked Views and select ur stack canvas.
    5.Now ur stack canvas is placed on ur content canvas.
    6.select the stack canvas in same layout editor and click on one of the corner of stack canvas.
    7.now u can move that stack canvas where ever u want on content canvas.
    if u hav any problem then ask me.

  • Problem with generating stacked canvas in Designer 6i

    When I try to generate a master detail form, in which the detail block is placed on a 'new stacked canvas' the form is generated as expected: master- and detailblock are both created, but when running the form
    the detail block is somehow made invisible. I don't understand!!!
    Does anyone recognize this problem????
    Hope to hear from you!
    Alex

    Hello,
    When you put a block on a "new stacked canvas" that canvas is generated as a popup canvas. If that popup overlaps with some other generated items (for instance: items in master block) Forms will not show it.
    You can try showing that popup canvas programatically with Show_View('canvas_name') in When-New-Form-Instance and see what happens.
    Dalibor
    P.S. Why do you have to put detail block on a popup canvas? Why don't you simply put it on a "same content canvas"?

  • Stacked canvas dispalying problem

    hi am displaying multiple stacked canvas on a content canvas. i have a problem in displaying them even hiding the first canvas(B) am not able to display the second canvas(A) its still showing the first canvas(B).
    am using show_view(A) to display the stacked view while i use hide_view(B) to hide the canvas B
    almost both the stacked canvas have same fields in particular i kept the mirror fields on the stack B from stack A.
    my requirement is to display stacked canvas A or B dynamically!!
    can any one direct me with some gud solution.
    thanks in advance.
    regards,
    madhan

    Hi Madan,
    You are using correct function to do so. But you may need to manipulate.
    When you want to show canvas A or B, follow the mentioned steps:
    If you want to hide B and show A
    IF canvas b is visible then
    hide_view(B);
    show_view (A);
    go_Item (item_on_cavans A)
    END IF;
    And vice versa.
    Cheers
    Ram

  • Displaying multiple stacked canvas

    can any one tell me how to display mutiple stacked canvas on a content canvas dynamically. how to set property to hide and display stacked canvas.??
    can any one help me regarding this???
    thanks in advance
    regards,
    madan

    like mentioned before you need to control them with hide_view('<canvas_name or id');
    and show_view to display.
    Hide your stacked canvases you don't need upon start of the form in the when-new-form-instance trigger
    And if you click the help button and type hide_view you'll find even reeady to use examples.
    The help is included for some reason ;-)

  • 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 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.

  • 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.

  • 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

  • Problem with Stacked Canvas

    Hi,
    I have prepared a stacked canvas on a content canvas.
    Both content and stacked canvas are based on the same data block. In the data block 2 items are on content canvas and the remaining are on stacked canvas. I have also a scroll bar on the content canvas so that we can scroll to the right as there are many items on it.
    so 1st and 2nd fields are on the content canvas and remaining ones are on stacked canvas.when i tab out of the 1st field stacked canvas goes invisible, but when i tab out of the 2nd field stacked canvas again comes back.
    How can i avoid this?
    I want the stacked canvas always to be displayed when i tab out from any where.
    One more problem is, when i click on the 2nd field the stacked canvas goes invisible too
    Your suggestions are greatly appreciated.
    Thanks
    Sandeep

    Check if the second item overlaps the area of the stacked canvas. Forms always makes the current item be displayed fully and therefore hides all areas which would overlap the item.

  • (another) stacked canvas on content canvas problem

    I've searched the forums for the last 2+ hours and can't find a solution for my problem, although there are hundreds of questions on this subject.
    I have a stacked canvas on top of a content canvas. The canvases share the same window. They also share a data block. I added radio buttons on the main canvas to "show/hide" the stacked (my ultimate goal is to have 2-3 stacked and toggle. When hide, the stacked canvas is hidden, but when i click show, it is not. I understand reading all the posts that the block with focus will display, and I've added both a go_block and go_item prior to the show_view. Below is my code. MEL_DETAILS is content and MEL_LINE_ITEM is stacked.
    IF :stack = 'SHOW_STACK' THEN
    GO_BLOCK('MEL_ITEM');
    GO_ITEM('MEL_ITEM.MIS_PROJECT_NO');
    SHOW_VIEW('MEL_LINE_ITEM');
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', visible, property_true);
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', display_position, 718, 583);
    SET_ITEM_PROPERTY('PROJECTS.STACK',MOUSE_NAVIGATE,PROPERTY_FALSE); -- radio button
    ELSif :stack = 'HIDE_STACK' THEN
    HIDE_VIEW('MEL_LINE_ITEM');
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', visible, property_false);
    SET_ITEM_PROPERTY('PROJECTS.STACK',MOUSE_NAVIGATE,PROPERTY_TRUE);
    END IF;

    user12198246 wrote:
    I've searched the forums for the last 2+ hours and can't find a solution for my problem, although there are hundreds of questions on this subject.
    I have a stacked canvas on top of a content canvas. The canvases share the same window. They also share a data block. I added radio buttons on the main canvas to "show/hide" the stacked (my ultimate goal is to have 2-3 stacked and toggle. When hide, the stacked canvas is hidden, but when i click show, it is not. I understand reading all the posts that the block with focus will display, and I've added both a go_block and go_item prior to the show_view. Below is my code. MEL_DETAILS is content and MEL_LINE_ITEM is stacked.
    IF :stack = 'SHOW_STACK' THEN
    GO_BLOCK('MEL_ITEM');
    GO_ITEM('MEL_ITEM.MIS_PROJECT_NO');
    SHOW_VIEW('MEL_LINE_ITEM');
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', visible, property_true);
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', display_position, 718, 583);
    SET_ITEM_PROPERTY('PROJECTS.STACK',MOUSE_NAVIGATE,PROPERTY_FALSE); -- radio button
    ELSif :stack = 'HIDE_STACK' THEN
    HIDE_VIEW('MEL_LINE_ITEM');
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', visible, property_false);
    SET_ITEM_PROPERTY('PROJECTS.STACK',MOUSE_NAVIGATE,PROPERTY_TRUE);
    END IF;Here, it seems two problem..
    The line..
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', visible, property_true);
    and
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', visible, property_false);No needed
    Hope this helps
    Hamid

  • Stacked Canvas with one block displaying twice

    I have a question regarding the Stacked Canvas. I have to create a calender for clients. (I am using stacked canvas to do that).
    In the 'calender' table i would have the information like ClientID, Year, weekno, start date, end date.
    So i created two blocks for 'Calender' table in this form. One block for Content canvas with ClientID and Year (Block1). And another block (Block2) on Stacked canvas for weekno, startdate and enddate.(normally there will be 52 weeks sometime 53 weeks)
    On the Block1 it suppose to display the ClientID and Year once. And in the block2 (stacked canvas) it suppose to display 53 rows with weekno and the start/end dates.
    When i create a new row in the block1 for clientid and year (1234, 2008) then the block2 will be populated with 01-jan-2008 to the 31-dec-2008. But the problem i am having is when i try to save it is trying to save two times one from block1 and once from block2 resulting in a unique constraint error.
    how should i structure this so it saves only once?
    I tried to keep the clientid and the year in block1 as non-database items and copied those values into the block2, that way it saves correctly but when i try to query on the upper block it gives me error.

    But you only have one table. You need two tables for master-detail. Can you normalize the calendar table and change it to two tables (master-detail).
    See
    Re: regarding display of records in header and line level
    Gerd offers a solution for two blocks and one table. Maybe that will work for you.
    Message was edited by:
    Mark Roberts

  • Stacked Canvas Problem in oracle 6i form builder

    Hello,
    i have 2 content canvas "DTL and PUNCH",1 tab,1 horizontal canvas in window1 and 1 another content canvas "parameter" in window2.
    i have created a stacked canvas under dtl canvas because
    I have a master-details form. my details has more columns so im planing to use stack canvas.
    but at run time it is not displaying?
    please help me regarding that?
    Thanks
    With Regards
    Vishal Agrawal

    hello,
    then you should set viewport x and y position of stack canvas below the height of button in DTL block.
    means If button y position = 170 then
    viewport position of x = 5,
    viewport position of Y = (y position of button + height of button+5) . (for Stack canvas)
    Same way,
    If stack canvas height = 270 then
    viewport position of x = 5,
    viewport position of Y = (viewport position of Y of stack canvas + height of stack canvas+5) . (for Tab canvas)
    PS

Maybe you are looking for