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.

Similar Messages

  • Tab canvas inside a tab canvas

    Anyone knows how to put a tab canvas inside a tab canvas.
    thanks.

    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.

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

  • Creating tab canvas inside another tab canvas

    pleas help me solving the issue...
    I want controlling code such that i can create tabpage canvas into another one.
    second tab page of first tab canvas it should be visible.
    regards
    jai

    As long as i know something like this is not possible.
    But you can emulate it this way (for this example i will assume that you want the smaller tab-canvas placed on the second page of the bigger tab-canvas) :
    1. create a tab-canvas
    2. create a stacked-canvas with bevel=none
    3. create a new tab-canvas and place it on your stacked-canvas
    4. make the stacked-canvas invisible
    5. through the trigger WHEN-TAB-PAGE-CHANGED make your stacked-canvas visible whenever you are on page 2 and invisible whenever you are on another page.
    6. adjust the coordinates of your stacked-canvas so it will appear right above the bigger tab-canvas
    Good luck with this
    Markus

  • 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

  • Created a tab canvas inside a content canvas, but i can't create a new ...

    i created a tab canvas inside a content canvas, but after that, i want to create a new empty canvas by clicking the canvas node ,then "+" , but it always gave me a new canvas with the tab canvas in it as default. this problem happens when i use tab canvas , if i just use other items i.e. text, button,list, i can create a new empty canvas. Thanks.

    I don't quite understand the steps you took to be able to recreate the problem. But you can change the canvas type of a canvas from the property palette.

  • Tab Canvas on a STACKED Canvas?

    Is it possible to have a tab canvas ON (IN) a stacked canvas? Or can a tab canvas ONLY be placed on a content canvas?
    Thanks!

    Hi,
    Can you tell the requirement clearly, whether you need to create a tab canvas on stacked canvas, a tab canvas in stacked canvas.
    1.Stack Canvas in Tab canvas
    First you need to create a tab canvas in the content canvas then you need to create a stack canvas on the content canvas, then you need to align it properly.
    Refer this link
    http://startapps.blogspot.in/2009/12/how-to-place-stacked-canvas-in-tab-page.html
    Thanks & regards
    Srikkanth

  • How to move a block from Content to Tab Canvas?

    Hi All,
    I've make a master and detailed blocks in an content canvas
    Now this master block has another some detailed blocks, How to put a tab canvas on this content canvas?
    that is if I created a new tab canvas it will appear in another page not in the content canvas!

    Is the Tabbed Canvas larger than the Content Canvas? Also, just to clarify, when you created the tabbed canvas - did you draw the tabbed canvas on the content canvas in the Visual Designer? If you created the tabbed canvas by adding it to the Canvas Node in the Object Navigator and then set the appropriate properties to assign the window, x/y coordinates, etc., I've seen this cause unexpected behavior. It is better to draw the tabbed canvas on the content canvas rather than add it to the Canvas node through the object navigator.
    Hope this helps,
    Craig B-)
    If a response is helpful or correct, please mark it accordingly.

  • Tab canvas on a content Canvas

    Hi,
    I need to put a tab canvas on a content canvas in 10g R2.
    and have items from the same data block distributed across the canvases.
    I have set them up with the appropriate viewport for the tab canvas, but at runtime, the tab canvas does not appear untill an item on it gets the focus.
    Both canvases are set to the same window.
    I'm sure this is possible and I think I have done it before but for some unknown reason can't seem to remember how !.
    Thanks in Advance
    Regards,
    Tony Garabedian

    Hi Steve,
    Yup, it is definitely related to the window, if the window is the form's console window and the window is the first window created in the form (default window created with the first canvas mostly WINDOW1) the tab canvas is behaving in that way.
    Create a new window and make sure that this window is not the console window and the behavior is very much normal, the tab canvas appears as soon as the window gets focused.
    This what I have found out for now, if later testing shows anything else I'll post the results.
    Regards,
    Tony Garabedian
    I just added a stack canvas on that same window and the problem returned....
    So I rearranged the canvases, and purposely set the canvas on the console window, it worked, so now it seems that the problem appears if you have a stacked canvas AND a tab canvas on the same window.
    Hope this ain't a bug it sure looks and acts like one though.
    Message was edited by:
    Tony Garabedian

  • Forms 5 Tab Canvas & Horizontal Scrollbar

    We are trying to implement a tab canvas which will hold a multi-record data block. The difficulty is that we would like to display a lot of fields and there is no Horizontal Scrollbar easily available for the Tab Canvas.
    We are thinking about "simulating" a tab canvas by using stacked canvases. The stacked canvas allows us to have the scrollbar, but looses some of the look & feel of a tab canvas.
    Anyone try to do this in Forms 5? How about anyone try to place a stacked canvas on top of a tab canvas?

    We're using forms 6.0.8.8. Our standard practice is to never put items on a tab canvas, instead we put stacked canvas' on the tab canvas. Besides having canvas scroll bars, it also provides a basis to work around documented bugs for refreshing/resizing windows when returning from other forms/windows of different sizes etc.
    null

  • 2 tab canvasses on a single window (form)

    Hi !
    Does anybody know of a way to put 2 tab canvases on a single window. I would like to place 2 tab canvases, each holding 2 tab pages, on 1 window. However, from the moment you use "new tab canvas page" he directly puts the page behind the other tab pages instead of starting a new one. I already tried working with stacked canvases or "new content canvas". Even if your new tab canvas page is inside a new canvas he keeps on putting the tab pages behind the previous tab pages.
    Would anybody know of a workaround ?
    Many thanks !
    Kris

    Hi Saeed,
    A possible solution to generate two tab canvasses on one window is the following:
    Add a (dummy) module component with (dummy) items between the last module component of the first tab and the first module component of the second tab.
    At runtime, you can make this extra module component invisible.
    So, in Designer you'll have the following Module Components, with property 'Placement':
    MC1. 'New Tab Canvas Page' -- first tab-page of first tab
    MC2. 'New Tab Canvas Page' -- second tab-page of first tab
    MC3. 'New Content canvas' -- dummy block, between two tab canvases
    MC4. 'New Tab Canvas Page' -- first tab-page of second tab
    MC5. 'New Tab Canvas Page' -- second tab-page of second tab
    HTH,
    Lennart de Vos

  • Tabbed canvas. What is trigger for execute_query?

    Hi!
    I use tabbed canvas. When i choose Tab WHEN-NEW-BLOCK-INSTANCE
    didn't triggered. I get data only when i click on any control
    within canvas. How to do it automaticly?

    I use this method (Forms6i patch4 - 6.0.8.13.0):
    In a when-tab-page-changed trigger on form level there is:
    IF :SYSTEM.TAB_NEW_PAGE = 'CG$M_TAB_1_PAGE_1' THEN
    GO_BLOCK('NAKLADY_UKAZ');
    UROB_QUERY_UKAZ;
    END IF;
    In a when-new-block-instance on block level (NAKLADY_UKAZ)
    there is:
    BEGIN
    UROB_QUERY_UKAZ;
    END;
    UROB_QUERY_UKAZ is a program unit in which I modify and set
    where clause of block NAKLADY_UKAZ and use execute_query if
    there are some changes in the where conditions. Instead of this
    program unit you can use only EXECUTE_QUERY built-in.
    I hope this will help you.
    Helena

  • Problem using tab canvas

    I am creating a form which has 2 canvases . The first one is a content canvas . The second one is a tab canvas . The problem is that at run time ,I need to click the "next block" button to get the tab canvas . It should have appeared below my content canvas to be correct . What do I need to do to solve this problem ? Thanks.

    How did you create your canvases? Did you create them separately and then through the properties of the Tab Canvas tell it where to be displayed? If so, this could be problematic. The best option I've found is to create your content canvas and then - using the Tools pallet on the left of the canvas screen - select the Tabbed Canvas button and draw the tabbed canvas on the content canvas. This ensures your tabbed canvas "fits" properly on your content canvas and gets displayed automatically during run-time.
    If this doesn't solve the issue, let us know a bit more details about how you created the canvases and we should be able to help you figure out a solution.
    Craig...

  • Tab canvas(tab page hidden)

    Hello Everybody,
    I have two blocks.each block have one canvas(first block have content canvas andthe second block have tab canvas),in the first block i want to to make button to make some tab pages hidden,
    how to make one tab page hidden?
    Thanks and regards,
    Mona

    Mona wrote:
    how to make one tab page hidden?
    Use the SET_TAB_PAGE_PROPERTY built-in with the VISIBLE property set to FALSE, you can set it visible/invisible dynamically.
    Your code should look like something like this:
    SET_TAB_PAGE_PROPERTY('tab_page_name', VISIBLE, PROPERTY_TRUE);Tony
    Edited by: Tony Garabedian on Oct 16, 2008 12:00 PM

  • Change Tab Canvas Tab Attributes?

    Hello:
    I've got a tab canvas where I changed the background and foreground colors using a visual attribute--this changed the "body" area of all of the individual tab canvases which is what I wanted. However, it didn't change the background colors of the actual tabs (on the top of) these canvases, they are still in the default Oracle gray and teal (the tab for the canvas currently on 'top' is gray and the others are teal). How do I change the visual attributes of the tabs themselves? This shouldn't be as difficult as it's being, but I can't find a setting for this.
    Thanks,
    Mark

    I'll bet the tabs on top actually are set by the color of the "parent" tab canvas background color. I always just set its background color, and never tried changing the individual tab pages. In fact, I don't know about making each tab a different color -- it looks like you can change each one's color, but the tabs at the top will probably keep the parent tab's color.

Maybe you are looking for

  • How to find out the maximum value

    Dear all, i have one query where in i have to calculate Excise Duty based on the  maximum  sales qantity of all materials with the corresponding sales value... i mean i wil get the maximum value of a individual material no matter how many sales has d

  • Need help in writing SQL query

    Hi, I have a rquirement where I need to convert columns into records. Table1: (note: I have around 150 columns i.e period1 to period150) unit startdate Period1 period2 period3 period4 period5 A 1/1/2011 100 200 300 400 500 Now I need data in below fo

  • Cisco 2432-24FXS Calls won't ring FXS ports when placed in Huntgroup

    Hi, I am having an issue getting calls to ring through on the FXS ports when using the "trunkgroup" command under the POTS dial-peers. Calls will ring through fine if I use the "port" command under the pots dial-peer. What I am trying to accomplish i

  • Can't start J2EE Engine

    Hi. I can't start my local J2EE Engine after a workplace SP11 installation. OS: Windows 2000 Pro. JRE: 1.4.2_07 Below you see the developer trace that is displayed when I try to start the J2EE Engine. // -Fredrik trc file: "C:\usr\sap\J2E\JC00\work\d

  • Cannot Even Safe Boot Up

    This happened after watching a movie using an external LCD TV (Samsung LN-S40920) first time ever. Than unhooked in sleep mode and from that point on hooked or stand alone I can never have my Macbook Air boot up. It is less than a year old and I am n