Tab Canvas controlled programmatically

Hi,
I have tab canvas which had tab1 and tab2.
Tab1 have master data and tab2 has detail information .
I have Detail button in tab1 ... if i click the
Detail button
in when-button-pressed
Go_block('Detail_blk');
control goes to the new block, but the tab scope (tab2) is not showing ...
How do i change the make visible tab2 when i do click the detail button from the tab1.
Thanks
Mani

Yours is a combination of issues. Just going to the block will not ensure the Tab Page and stacked canvas will be visible. Unfortunately, in this situation, you cannot relay on a simple GO_BLOCK to display everything correctly. You will have to explicitly display the Tab Page (as dfcii indicated) and you will need to explicitly show your stacked canvas with Show_View. When you leave your stacked canvas, you will need to ensure it is hidden as well as you can't rely on the When-Tab-Page-Changed (WTPC) trigger to hide your stacked canvas. Consequently, you will need to include a call to Hide_View in your WTPC trigger. Also, make sure you navigate away from the item in your stacked canvas before you call Hide_View.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.

Similar Messages

  • Multi-Tab Canvas Navigational Controls

    I want to control navigation out of a block displayed on a "tab" canvas to other "tabs" in a form containing multiple tab canvases. Are ther any "events triggers" associated with the "tab" level similar to the "WHEN_BUTTON_PRESSED" trigger such as "WHEN_TAB_SELECTED"?
    I assume I must place the triggers on the block (or blocks) associated with the respective tabbed canvases.
    null

    The trigger must be placed at the form level. Use "if :system.cursor_block = 'BLK'"
    to code for each tab.

  • Change the pages of a TAB control programmatically

    How can I change the pages of a TAB control programmatically, but not by pushing the tabs in Front Panel when program runs?

    100% correct, Thanks
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

  • Controlling focus in a Tab Canvas when a FORM_TRIGGER_FAILURE is raised

    Hello,
    I am currently working on a form that is using a Tab Canvas. The canvas has about 9 pages, and I am, at this moment, adding error handling functionality on the fifth page. My problem happens when a condition is met that raises a FORM_TRIGGER_FAILURE exception and the focus automatically goes to the first page of my canvas instead of staying on the fifth page. Is there anyway I can set the focus so that it remains on page 5 instead of going back to the front page?
    Thank you,
    Jojo

    I use tabs, and a FORM_TRIGGER_FAILURE will not by itself cause focus to move to the first tab. There is something happening in your form just prior to the FORM_TRIGGER_FAILURE that is placing focus to some item in the first tab (maybe you're calling a function or procedure that is doing it?). If you don't know, try running the debugger and trace through your code during runtime and see what is causing it.

  • Tab Canvas

    Hi,
    I am using Forms 10g. I have Content canvas named CANVAS1 display few items from BLK1. I created a tab canvas called TAB_CAN contains TAB_PAGE1 and TAB_PAGE2, display items from BLK2
    I would like to show the form in enter query mode and Form should display both CANVAS1 and TAB_CAN
    Content canvas only displayed if i write in when-new-form-instance
    show_view('canvas1');
    show_view('tab_can');
    go_item('blk2.item1);
    go_item('blk1.item1)
    enter-query;
    tab canvas only displayed if i write code like this in write in when-new-form-instance
    show_view('canvas1');
    show_view('tab_can');
    go_item('blk1.item1)
    go_item('blk2.item1);
    enter-query;
    So, I request you to write a code to display both canvases and control should be in contant canvas and form should be enter-query mode.
    Regards,
    Murali

    Hello Murali,
    As you are saying you want to show a Content canvas (Canvas1) and Tab Canvas (Tab_Can) both at the same time, you need to use more than one window for this.
    Actually at any instant of time, you can show only one canvas on any window. So have two windows WINDOW 1 and WINDOW 2.
    In Content canvas, set the window as WINDOW1, and in WINDOW1 set the primary canvas as CANVAS1. And, for tab canvas actually you should have another content canvas(CANVAS2) on which you have placed this Tab_Can. So in content canvas (CANVAS2), set the window as WINDOW2, and in WINDOW2 set the primary canvas as CANVAS2.
    It will work i feel.
    Regards,
    Yathish...

  • 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

  • Detail Window of a Tab canvas

    I have a tab canvas with one tab filling up the whole tab page with 15 horizontal line, but the last column is a detail button which I want to see additional info for that line,
    should I add rowid for that block - to select that row when I press the detail button??
    Do I use a stacked canvas or a content canvas?
    Do I need a new block for that detail info and use a post query from the 1st block to populate the second block??
    Any insight would be helpful
    Thx

    Since you are so set on the post-query method, do this:
    Do NOT use a post-query. Just create one or more additional items in the same block that are assigned to a separate stacked canvas. Set these items singly-occurring (property Number-of-Items-Displayed = 1). Create a "Details" button in your block on the main canvas that user can click. All its WBP trigger needs to do is:
        Go_Item('Blk.Detail_Item');
    I don't think you even need a:
        Show_View('Detail_Canvas');
    On the stacked canvas, create a cancel button with a WBP trigger that does a Go_Item('Blk.<main-canvas-item>'). And make sure you cannot use the Tab or Enter key to navigate into the details canvas items (Set the appropriate Next-Navigation-Item properties).
    The above method is certainly the easiest. However, if for some odd reason, you don't want to fetch all the details for every record during the initial query, then you can use a different method. This one involves the same stacked canvas and details button. But use a control block and one or more items to display the data. In the WBP trigger, Select detail_columns into :Control_Block.detail_item where rowid = :base_table_block.rowid; and then Go_Item('Control_block.detail_item'); Control_block.detail_item is of course displayed on the stacked canvas.

  • Focus problem in TAB Canvas form

    Hi
    I am calling FormB from FormA by using
    CALL_form('FormB.FMX',NO_HIDE);
    But when I click on the any other field ( other than the first field in the called Form ), the screen is becoming blank, again I need to click on the Execute Query button, but after that I can click on any other field it wont go invisible.
    FormB has TAB canvas
    Oracle & Form Version Oracle 10g
    THanks in advance

    Hi,
    When I run the form directly also I am getting the same problem,
    Hi Tony,
    <<Define what's blank??? Errors???? >> means , I need to click on the execute query button to see the data, even to see the controls in the forms.
    As I said, i am calling this form from another form, and I am assign the values in the prequery, I am gettign the result propery, but when I click on any other control, the form become empty, I need to click on exec query to see the values and tex items etc.
    This form has one content canvas and one tab canvas.  What are the properies to set to place tab canvas on the content canvas.

  • Tab canvas + post-forms-commit + form_trigger_failure

    Hi all,
    There is a tab canvas with eight tab pages in my forms.
    In the post-forms-commit form-level trigger there are controls based on some conditions before executing the processes. When the conditions in the controls are not met then a stop alert is shown and form_trigger_failure is raised. All of these actions , that is the alert and form_trigger_failure , are contained inside a procedure named affiche_erreur.
    The problem is that after pressing the alert button then forms goes to the first tab page. And the focus is on a non-navigable button ! Very strange !
    I trapped the form_trigger_failure exception in post-forms-commit , but untill now I do not find any way how to put the focus in a specific item.
    So how to put the focus into a specific item or a specific tab page ?
    Thank you very much indeed

    Mark , the when-tab-page-changed trigger does not fire after I pressed the alert button although the focus goes always to the non-navigable button in the first tab-page. I wrote a pause statement at the beginning of the when-tab-page-changed trigger but there was no pause alert at runtime.
    Finally I created a timer in the exception of the post-forms-commit trigger which catches the form_trigger_failure exception , and in the when-timer-expired trigger I wrote go_item.

  • 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

  • Adding tabs dynamically at runtime for a tab navigator control

    Hi,
    Is it possible in flex builder 2 to dynamically add the tabs
    at runtime to the tab navigator control, if we can add plz tell the
    procedure to do that
    thanks in advance

    Given that you had a tab navigator declared in mxml like
    this:
    <mx:TabNavigator id="myTabber" selectedIndex="0">
    </mx:TabNavigator>
    you should just be able to call the addChild method, passing
    the child tab containers. So for example, in some ActionScript
    event handler:
    var newTab:Canvas = new Canvas();
    myTabber.addChild(newTab);
    bear in mind I haven't done this by adding tabs, but have
    done tons with adding controls to an application at runtime using
    this method (DataGrids, Grid, GridItems, etc...)
    Jason

  • How to specify tabbed canvas appearing?

    Hi All,
    I've three canvases two content and one tabbed, the first content canvas contains a data block which goes to the second content canvas via pressing a button caontins GO_Block.
    I've drawed a tabbed canvas (using its specified tool) in that second content canvas but this tabbed one is appearing in both content canvases!
    I want this tabbed canvas to appear only in the second content canvas only! How Plz?
    Thank you
    Note: I'm using Forms 6i

    Use SHOW_VIEW('Name of your tab_canvas') to programmatically show a canvas, use HIDE_VIEW('Name of your tab_canvas') to hide it.

  • Master block content canvas and Detail Tabbed Canvas...

    Hi All,
    I am trying to create master block content canvas and then detail block on tabbed canvas.
    How i can view these two canvases together ?
    these two canvases opening in separately in layout editor...how i can show them both in one window..???
    Please some advice on this ..
    Thanks,

    Hi
    these two canvases opening in separately in layout editor...how i can show them both in one window..???it's just a matter of x & y issue ; pls increase the y position of the tab canvas to move it downward (straight lower down the content) minimize the tab w & h if necessary just for temporary adjustments form design.
    By this way u would control the design layout of the two canvases.
    Hope this helps...
    Regards,
    Amatu Allah

  • 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

Maybe you are looking for

  • Why does my camera have dark spots?

    The camera displays several dark spots when the camera is open. The photos taken also show these spots. Any help?

  • Track changes when editing pdf text?

    Is it possible to track chnages when editing the text of a pdf? If so, how? And if not, is it possible to make all edits I do on a document in another colour to differentiate the original text from my editing text? (Without pressing a colour swatch e

  • JDBC-ODBC connection to MS SQL Server

    Hi All, I am new to Java. I want to connect from my JSP page to a remote MS SQL Server. So please tell me where i can find the suitable driver(MS SQL and not SQL Server 2000. I think SQL Server 2000 driver is not compatible with MS SQL Server). It wo

  • What are the specs of the video the Playbook records?

    Hello, I'm going through the challenge of converting Playbook MP4 video files to edit them in Final Cut Pro. I was wondering if anyone could give me the full specs on the video the Playbook records. Is it 720 X 1280? Interlaced or progressive? What i

  • Edit function greyed out in LR  and PS  have CC

    unable to edit in LR and PS   Windows vista  6 g ram