Move stack canvas programatically at runtime

hello all
i have built a stack anvas on top of a content canvas which is always visible
I want to create a functionality wherein i can move the stack canvas at runtime
i want to create buttons Eg UP , Down ,Right And Left which could move the stack canvas According to the button i press.
Can any one help me with this ??
When i click the down button(and keep it pressed) the canvas should move down as if i am dragging it down until i release the button
plzz help me with this
mandar

Hello,
Use the Set_Canvas_Property() and Set_View_Property() built-ins.
Francois

Similar Messages

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

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

  • Stacked canvas is overlapping the content canvas

    Hi all,
    I am writing a program where I have one content canvas and a button to display the stacked canvas on button click. But when I run the form, 'only' the stacked canvas is showing-up even though I have hidden the stacked canvas in the on-new-form trigger.
    Can anybody please shed some light.
    Thanks,
    Naren.

    Hi,
    Assuming you have two or more datablocks:
    On the object navigator, move up (drag-drop) the datablock shown on the main canvas, so it apeears first.
    OR
    Open the Forms properties and set property: "First navigation data block"
    Regards,
    Hugo.

  • Question about stacked canvas disappearing

    Hi,
    I have a block which has some database items and non-database items. Since
    there are many items in the block, I use a stacked canvas with horizontal bar
    to display the less important items.
    In the trigger of new-block-instance, show_view('stacked_canvas')
    But I face one problem. When I click on a non-database item and then move
    the cursor away from the item, the stacked canvas suddenly disappears.
    Any idea ?
    Many thanks in advance

    Imagine each canvas as a piece of paper stacked on a desk. Each piece of paper possibly has a different size and the top left corner of each piece is possible oriented in a different spot. When you say show_view('stacked_canvas') its like reaching to the bottom of the pile and putting that canvas top. When you click on an item not on the stacked canvas that items canvas is placed on top. Your problem is that your non-database item content canvas is covering up the stacked canvas. I think...
    Your issue could be solved by simply rearranging the canvas order by putting the stacked canvas last (I think) in the object navigator.
    Raise on Entry could also be causing your issue. Go to the help. Click the search tab. Type "raise on entry". Read "Working with the Raise on Entry Canvas Property". There is a good explanation in there on how stacked canvases get covered up by content canvases and when.

  • 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/]

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

  • Stacked canvas background color

    How on earth do I get the background color of my stacked canvas to be the same as the rest of my form (the default forms grey color)? I have both my main canvas and stacked canvas on the same visual attribute, all with background & foreground colors set to unspecified (at both the canvas and visual attribute level). No matter what, the background of the stack is white. I've tried setting it at runtime, but the color is slightly different on each machine used. I've tried everything I can think of -- any ideas? Thanks.

    Well the problem is that we want the background surrounding our main canvas to be white (that way the tabs up top are white too) and the form itself in the main canvas to be the default grey (that is our standard). Changing the background to gray or some other color in the visual attribute changes both the white background and the default form's grey to that one color, which doesn't really fix the problem at all. If it's left as unspecified, we get the white background and the default forms grey for the background color of the form. The stacked canvas always wants the white.

  • Have to prevent navigation to another stacked canvas.

    Dear all,
    I am developing an application using forms 6i with oracle 10g.i have many stacked canvas in this application.where in one particular canvas i have a button namely 'SUBMIT' in which i have a trigger when-button-pressed
    with following code.
    go_block('to_sanct');
    declare
    g char(1);
    begin
              message('value is '||:gd_ind);
         if :gd_ind is not null then
         if :gd_ind = 'Y' then
              G:='Y';
         ELSE
              G:='N';
         end if;
              MESSAGE('IN');
              MESSAGE('TRANS ID'||:c_trans);
              MESSAGE('head '||:c_head);--navigation occurs after this message.***
              MESSAGE('gd value '||G);
    Leave_application.grant_or_deny_leave(:c_trans,:c_head,G);
    COMMIT_form;
        MESSAGE('OUT');
              MESSAGE('TRANS ID'||:c_trans);
              MESSAGE('head '||:c_head);
              MESSAGE('gd value '||G);
    end if;
    if form_success then
         message('You have granted the above request');
    else
         message('failed');
    end if;
    end;That is if i click this submit button the packaged procedure should be invoked and the values passed thru the form should be committed.in order to know the values passed i have given several messages before and after invoking the package.my problem is after this message
    MESSAGE('head '||:c_head);  --navigation occurs after this message.*** navigation moves from the current canvas to another canvas.i don have any clue why its happening like this and i want to stop this navigation from current canvas to another one.all canvases in this form are stacked canvas.pls suggest me what i have to do?.

    Sorry for such a late reply Hamid.I have tried commenting all code and putting the button only with
    null; In such case navigation doesn't occur.then again i tried commenting each set code and i suspect that navigation occurs only in the presence of "COMMIT" statement.
    declare
    g char(1);
    begin
         --     message('value is '||:gd_ind);
    /*     if :gd_ind is not null then
         if :gd_ind = 'Y' then
              G:='Y';
         ELSE
              G:='N';
         end if;
         --     MESSAGE('IN');
         --     MESSAGE('TRANS ID'||:c_trans);
         --     MESSAGE('head '||:c_head);
              --MESSAGE('gd value '||G);
    Leave_application.grant_or_deny_leave(:c_trans,:c_head,G);*/
    COMMIT;
    /*   -- MESSAGE('OUT');
         --     MESSAGE('TRANS ID'||:c_trans);
         --     MESSAGE('head '||:c_head);
         --     MESSAGE('gd value '||G);
    --end if;*/
    end;Does this COMMIT statement have any impact on the navigation?.Do u have any idea Hamid.

  • Stacked canvas dimentions problem

    Hello
    Why if i had used an inherited stacked canvas and tried 2 change the height and width of it ...
    it doesn't change it remains with the same size,can any body answer me why it behaves like this...!?
    Thanks in advance,
    Regards,
    Abdetu...

    Abdetu,
    am getting a compilation error says: identifier 'viewport_width' Must Be Declared I must apologize, I misread the Forms Help which lists "VIEWPORT HEIGHT" and "VIEWPORT WIDTH". What I failed to recognize was that there was no underscore "_" between the words. Therefore, these are Properties of the stacked canvas that can only be set through the property palette - not the SET_VIEW_PROPERTY built-in. Sorry! :8}
    1. You have a Stacked Canvas that has a property class assigned to it or you subclassed the canvas into your form when you copied it from another form (like a template form).what is the difference i would like to know ?
    >
    The difference is where the source of the referenced propertes (property class) exist. For example, if you subclass the property class from a source Form (such as a template.fmb or an Object Library.olb) then the set of properties are dependent on the source object (.fmb or .olb) and you have to ensure the source object is in the FORMS_PATH. If you manually create the property class in the form there is no dependency on other objects. For the record, it is "Best Practice" to subclass Property Classes from a common source so you can standardize and reuse common sets of properties (as well as other shared objects).
    Vertically half of The content of the canvas wasn't seen the other half was blank gray ...!!! e.g. can't scroll horizontally to see the rest of it...!!! So it is cutting off some of the items on the stacked canvas? For example:
    Stacked canvas when viewed in Layout Editor
    |---------------------------------------|
    | Item 1[              ]                |
    | Item 2[              ]                |
    | Item 3[              ]                |
    | Item 4[              ]                |
    |---------------------------------------|
    Stacked canvas when viewed during runtime
    |---------------------------------------|
    | Item 3[              ]                |
    | Item 4[              ]                |
    |                                       |
    |                                       |
    |---------------------------------------|Have you tried to copy the stacked canvas instead of subclass it just to what happens?
    Craig...

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

  • How to create stacked canvas

    How to create stacked canvas on a content canvas in forms builder.
    Please let me know if anybody has some steps or screenshots.

    once you build a content canvass your next step is to create another canvass with a property canvas type of stacked. those two canvas the content and stacked should have the same property of raise on entry yes and should be on the sane window.
    to force to display the stacked canvass at runtime on your Form level trigger WHEN-NEW-FORM-INSTANCE add this code
          show_view('stacked_canvass');where the stacked_canvass is the name your stacked canvass. hope this helps.

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

  • Go_item problem on stacked canvas

    Hello.
    I use stacked canvas in my form. On that canvas i have a button. User use this button to close stacked canvas. I use:
    hide_view('canvas_name');
    go_item('block.item_name');
    It seems as go_item is not working. Cursor only moves to the block and to the first item in that block.
    Why doesn't cursor move to item i choose?
    Thanks.

    Hello.
    It's still not working.
    And i'm not hidding first canvas.
    It is the main canvas. And on that canvas i press button to open small stacked canvas. And on that stacked canvas there is a button to close this canvas and to move cursor to one item on the main canvas. And that is not working. Cursor moves to the first block item on main canvas.

Maybe you are looking for

  • Error during activation of objects

    Activation of the change list canceled Check result for Data Type ExchangeLogData | http://clnt_prxy.com:  Namespace http://clnt_prxy.com is not defined in the software component version ZTEST_SWCP , 1.0 of ztest.com can you please let me how to corr

  • Wireless Router cuts out at the same time every day.

    I'm having an issue with my WRT160N router.  I'm noticing that my internet connection cuts out for about 5 minutes every day in between 5:30-7:30 pm.  Without fail, every single day, I can count on it going out for about 5 minutes during this time. 

  • What are patterns in BPM

    hi experts What are patterns in BPM

  • Clock icon always displays 10:15:00

    Hi, It's more a comment than a question but the icon for the calendar always displays the correct date, the icon for messages displays the number of new messages. So why is it that the icon for the clock doesn't display the correct time ? I suppose u

  • Maximum length of URL for RRI

    Hi all, I am trying to create a URL as a receiver for a BI Query. It appears to be truncating my URL. Is there a maximum length for a URL in RRI? The URL I'm trying to use is http://##.##.##.###/xxxxRegistryDemo/Report.jsp?r=aGFsdG9ufmhhbHRvbn5FbnRpd