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

Similar Messages

  • Integrating mutiple forms into one form using tab canvas

    Hi everyone,
    I'm relatively new to Forms 6.0 and also to this discussion. Could somebody please explain the pros/cons while integrating 8 maintenance forms into one form(Each page in the tab canvas representing one form)?
    Any help will be greatly appreciated.
    Thanks
    Aruna

    If the maintenance forms are small, you can integrate them into a single form with a tab canvas, although 8 may prove difficult--try it and see what it looks like to have eight tab pages. Make sure the first block and field in the form navigator is the field you want to show at startup.
    You would use multiple forms (1) to modularize largish chunks of complex code that don't interact with each other (2) to decouple logically separate applications (3) to decouple reusable modules that you can then pop into other applications (4) to create shareable components to share through an object library into base forms.
    In your case, the main issue is the logical separation with reusability also raising its head. Each form is logically distinct for maintaining a specific set of tables, so putting it in a separate form makes sense. It would also allow you to reuse the maintenance forms in different applications without including everything. This might be a security issue, for example--some apps might need access to only some of the 8 forms.
    Tab pages are also not as easily formatted as you might like, so check it out before assuming that tab page interfaces in Forms are your solution.

  • Tab canvas does not put the items in their specified positions

    Hi all,
    I have created a form with a tab canvas with three tab pages, each page has it's own text items.
    I saved this form without any problems.
    When i open this form again, i found that, some of the items in the first tab page are not put in their positions in this page, although the x position and y position is still correct in the property pallette.
    i overcome this by moving these items with the mouse to any direction and returning it back, but the problem comes after saving and trying to open the form again.
    Not : this occures only in the first tab page, i tried to swap the second tab page(page7) with the first tab page (page6), now the problem occures with page7(which became the first after swap) .
    Please help

    Yes, the items are in a frame.
    Both automatically and locked for the frame upate layout property causes the problem.
    I want to tell that the form in run time is ok, but in the forms builder the text items are not in their specified positions.
    Then when changing any property for the items even if it was not related to the item position, the item is then displayed in the correct position.

  • Tab canvas active style in web

    I have a form with a tab canvas . The problem is the Active Style property is not working in web.Is there any workaround to highlight the active tab?
    Thanks in advance
    Khalid

    Khalid,
    change the tab label to all Uppercase if selected.
    tab1 | TAB2 | tab3 | tab4
    Frank

  • Tab-Canvas and Stacked-Canvas (Forms 5.0)

    Is it possible to design a tab canvas that contains stacked-canvas? I can't create it!

    Yes - it is possible to design a tab canvas that contains stacked-canvas. Create a separate canvas with its own block and you can call go_block and the canvas/block will show. You can also call show_view but the canvas you call must be of the type stacked. (aside - a tab canvas seems to automatically act like a stacked canvas). I have used a canvas w/block that sits at the top of the screen by setting it to be only 60 points tall (and it is the first block in the list) then in a when-new-form-instance trigger I call show_view('tab canvas name') and have its viewport begin at 60, therefore the tab canvas fits right under the header canvas. You can then leave this to call other canvases/blocks and return and set up the same situation again. Sometimes I have gotten strange results where no matter what I do it will not show the tab canvas - at this point usually you recreate what won't show and it will then work.
    good luck.

  • How to use stack canvas in tab canvas in oracle forms

    hi all,
    how to use stack canvas in tab canvas in oracle forms. please if any one help out in this.

    Hi
    u can simply create a button in ur tab canvas in this button pls write the following as an example...
    SHOW_VIEW('STACKED_CANVAS');
    GO_ITEM ('SAL'); -- Pls note this item should be navigable and visible in ur stacked canvas form
    HIDE_VIEW('TAB_CANVAS');In order to return back to ur tab_canvas pls create a button in this button pls write the following...
    HIDE_VIEW('STACKED_CANVAS');
    SHOW_VIEW('TAB_CANVAS');
    GO_BLOCK('EMP');
    GO_ITEM ('EMPNO'); -- Pls note this item should be navigable and visible in ur stacked canvas form
    Hope this helps...
    Regards,
    Abdetu...

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

  • How to change content/stacked canvases to tab canvas

    Hi,
    I have created a form which has one content canvas and multiple stacked canvases. The content canvas displays the first page and then we hv to click on next to go to the next stacked canvas and so on. I want to try making it in tabs (tab canvas) and then I will decide which one looks better and performs good.
    Can you guys please give me a detailed instruction on how to convert my content and stacked canvases to tab canvases. I have never done tab canvas. I tried one, I changed one of my present stacked canvas to tab but all the fields and texts were gone and there were just two tabs in it.
    Please suggest. Thanks in advance.

    Might get a better response in the Forms forum...
    Forms

  • 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

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

  • 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

  • Add Content Convas to a Form with Tab Canvas

    Hi,
    I have a From with the tab Canvas (with 3 tabs). I wanted to provide few buttons which are common to all the tabs.
    How can i do it?
    I know of one way that it can be done is to add the tab canvas to the content canvas and then put the buttons on the Content Canvas. I can't seem to add it(Content Canvas) to the existing form. I tried using a fresh form and then copying the existing tab canvas on to it, it doesn't work.
    I don't want to recreate this tab canvas as I have lots of code that has been added to the tab pages.
    Is there a way to solve my problem ?
    Appreciating in Advance.
    Reena

    Hi Reena,
    Create the content canvas. go to layout editor.
    Go to View --> Stacked Views on the menu.
    select the tab canvas and say ok.
    Now go to Edit --> Select all. Deselect the new content canvas .
    Move all these selected items on the tab canvas down so that you can have enough space on the top of content canvas.
    Cheers.
    Ram Dontineni.

Maybe you are looking for

  • Itunes and Quicktime do nothing

    I am running the latest itunes and quicktime as of 5/19/07 on a 13" Black Mackbook (Intel Core 2 Duo, 1GB ram, 120GB drive) with bootcamp running windows XP Pro SP2 with all windows updates. itunes works fine in mac os... but... For some reason when

  • Unqueriable SQL Azure DB Server

    I have a SQL Azure DB server that is in a "bad" state.  The error I get in the console is: Some features are not currently available for the server '<server name>' in subscription '<sub id>' since the server information could not be retrieved at the

  • Problem in opening editor in Oracle 11g release 2

    Hii all I have Install Oracle 11g release 2 on my 32 bit windows OS. But I am having Little problem while opening editor 1) when ever i am typing ed in sql prompt I am having error     Cannot create save file "afiedt.buf"    How ever i have tried wit

  • This one might be tough...

    This issue is hard to explain. Simplest is to to show the link to open up the Numbers document and then explain. The spreadsheet can be accessed at http://web.me.com/prajnamuktika/Site/Blog/Entries/2011/1/9Pricing_Invoice_SPreadsheet_-_NumbersDocumen

  • Error When Creating Deployable Client Proxy

    I've created a WSDL file from the XI Integration Directory (Tools--> Define Web Service). I then tested this with XMl Spy and VB.NET. They worked fine. I then used NWDS (SP13) to create a deployable client proxy. When building the client definition N