Navigate to a tab canvases programatically at runtime

Hello everybody,
Actually i am trying to build a form with a content canvas contain buttons ("NEXT" and "Back"), there is a stacked tab canvas in the content one.
what i want to do is to navigate to the tab pages whenever the user press the buttons,as example if the cursor is on page_1 and the user pressed NEXT button the cursor should move to Page_2 and so on , is there any built in could help me in these, i tried to use go_block in trigger WHEN-TAB-PAGE-CHANGED to navigate to the block on a specific tab page but i noticed that the :system.tab_new_page dosn't changed to the new tab unless you click on the tab page.
Many thanks for reading
Muhammad Ghoneim

Dear Marcos,
Thanks for replying and help, it was much appreciated
actually i solved these by setting a global variable and equivalent to the :system.tab_new_page value so when i navigate to each tab i setting the global variable by the new tab, so i don't need the :system.tab_new_page value any more, even the user didn't click the tab page.
thanks again
Muhammad Ghoneim

Similar Messages

  • Calendar doesn't work with tab canvases

    If you generate a form (at V6) which has tab canvases on it, & also has a date item with LOV against it, you hit a problem with Headstart code's handling of the canvases. If you use the calendar LOV, when the calendar pop-up is de-activated, the tab canvases have disappeared from the main window.

    Lauri
    I went back & had another look at this, & realised that it's the same forms problem I was hitting with the combination of multi-select LOV and spreadtables. It's only happening when the calendar LOV is fired on a block which has a spreadtable, & where the next block on the form is a tab canvas. Is there a bug number for this problem, so I can track it? Thanks for the solution you provided earlier, but we're doing 100% generation here so I'd rather not be making post-generation changes to code.

  • Problem with Two tab canvases in a form

    Hi Experts,
    I am working on Oracle forms 10g (OS: Windows7) from last 1 year. I have got a requirement to create a form with one tab canvas CAN_TAB (with 2 tab pages) in main page and a pop up tab canvas ASN_SPLIT_TAB(with 2 tab pages). Now the problem is whenever we click on tabs it will fire WHEN-TAB-PAGE-CHANGED trigger and executes the complete code. As a result even if i click a tab page in CAN_TAB canvas it will fire for ASN_SPLIT_CANVAS as well. Check the below code (WHEN-TAB-PAGE-CHANGED). Now i have to differentiate between two tab canvases so that i can use IF-ELSE statement to overcome this problem. Please share your useful comments.
    BEGIN
    Lv_Toppage := Upper(Get_canvas_property('CAN_TAB',Topmost_Tab_page));
      if Lv_Toppage = 'LINES' THEN 
      go_item('shipment_summary.shipment_reference');
      show_view('CAN_LINES');
      show_view('CAN_SCROLL');
      elsif Lv_Toppage = 'ATTRIBUTES' THEN
      go_item('shipment_summary.shipment_reference');
      show_view('CAN_ATT' );
      elsif Lv_Toppage = 'AUDIT' THEN
      go_item('shipment_summary.confirmedby');
      show_view('AUDIT');
      end if;
    Lv_Toppage := Upper(Get_canvas_property('ASN_SPLIT_TAB',Topmost_Tab_page));
      IF Lv_Toppage = 'INVOICE_SPLIT' THEN
      show_view('ASN_SPLIT_STACK');
      go_item('ASN_INBOUND_CATEGORY_SUMMARY.brand_representitive');
      ELSIF Lv_Toppage = 'SUPPLIER' THEN
      go_item('CONTROL.cancel_but');
      END IF;
      hide_view('ASN_SPLIT_STACK');
    END;

    Thanks Craig. You made it happen..!! Below code is working fine for me.
    IF :SYSTEM.tab_new_page = 'LINES' THEN
      go_item('shipment_summary.shipment_reference');
      show_view('CAN_LINES');
      show_view('CAN_SCROLL');
    ELSIF :SYSTEM.tab_new_page = 'ATTRIBUTES' THEN
      go_item('shipment_summary.shipment_reference');
      show_view('CAN_ATT' );
    ELSIF :SYSTEM.tab_new_page = 'INVOICE_SPLIT' THEN
    END IF;

  • System.Tab_New_Page - with multiple tab canvases

    I'm not sure if this is a bug or not, but here goes. Forms 10.1.2.0.2
    I have a form with TWO different tab canvases - Orders_TC and Lines_Tc (Orders Tabbed Canvas and Lines Tabbed Canvas). The Orders_TC has 3 pages - page1, page2, page3 and the Lines_TC has 5 pages - page1 through to page5.
    Now - in the When-Tab-Page-Changed trigger, inspecting System.Tab_New_Page simply gives me "PAGE2" - but - WHICH "PAGE2" - how do I determine if it was PAGE2 of the Orders or Lines canvas?
    Obviously employing some naming standard on the tab pages would resolve the problem, however, I would have expected System.Tab_New_Page to return either Orders_Tc.Page2 or Lines_Tc.Page2.
    Am I missing something? Or is there a way to determine which PAGE2 it is?
    Any help appreciated.
    Regards,
    Bren

    How about :system.event_canvas
    I just tried it and it works in 6i forms. Not documented in the help, but seems to work. I just guessed at the name.
    Returns the name of the canvas that the tab page was changed on.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Getting the Selected Role Tab in WebDynpro at runtime.

    Hello Friends,
    I have a requirement to know the selected Role tab in portal at runtime and want to use this reference in WebDynpro. I did a fare research and found that this is possible in tag library however i haven't got anything for WebDynpro.
    Requirement :
    I have couple of reports which behave differently for Admin and User.
    Currently i have done the coding by accessing parent group for the logged in user.
    But the issue comes when we assign both the roles to a superuser. He will be authenticated either by user group or by admin group not both. And If user is authenticated by user group then under admin role tab also the report will behave like  user view.
    Please recommend any solution.
    Thanks
    Shobhan

    If it is OK to depend on a feature that is new to JDK
    1.4, take a look at the javadoc for
    java.lang.Throwable.getStackTrace()
    It returns an array of StackTraceElement and you can
    call these on the first element:
    StackTraceElement.getClassName()
    StackTraceElement.getMethodName()
    If you need to work with an earlier JDK, you can
    convert the stack trace to a string via these lines,
    perhaps with this code where you have Exception ex :
    ByteArrayOutputStream baos = new
    w ByteArrayOutputStream();
    PrintStream ps = new PrintStream(baos);
    ex.printStackTrace(ps);
    ps.close();
    String result = baos.toString();and get the first line from the result String.Amorrow, thanks for your response--I appreciate the help. I'm 1.4-only so I'll do your first suggestion. If I have twenty exception handlers I can now just copy-and-paste the same code in.
    Thanks,
    Glen

  • Spread table on tab canvases doesn't work

    Hi,
    I've got a form with a master/details block.
    The detail blocks are on tab canvases and are multi-records. I'd like to have spread tables, but it doesn't work.
    Is it a normal behaviour ?
    I'm working with Designer 6.0.3.5.0
    Thanks for your help
    Dominique

    Are you really sure?
    Once I had to generate a Form with such a requirement. On Metalink I found that it was possible with 6i.
    Eventually, the requirement was changed, so I didn't generate the Form and have tried it myself.
    regards,
    Harm

  • Tab canvases

    Hi, Have not used Oracle Forms for awhile. Can someone tell me how to create multiple tab canvases.
    Thanks,
    nancy

    No need to reply. I have the old version of forms. DBA is updating for me now.
    Thanks,
    nancy

  • # of tab canvases dependant on the # of groups that come back from a query

    Hi,
         I'm trying to create a dynamic creation of blocks, and tab canvases dependant on the number of groups that come back from a query. If 4 groups come back then I desire 4 tabs with the appropriate data in each tab.

    Basically Forms is not intended to build screens programmatically but it is possible to kluj it. Here's what you could do.
    Create a form with (say) four tabbed canvases, enough to fill the display. Each canvas has its own block. Then you have video style buttons - Fwd, Bk, FFwd FBk - and just scroll the blocks across when the user clicks the button.
    Did you enjoy the use of the word "just"? Sounds easy, doesn't it? In practice, what you need is an array that ties the filter criteria to the canvas number. Then you shuffle the canvases by applying the appropriate WHERE clause using SET_BLOCK_PROPERTY and then executing a query.
    The problems with this are obvious and the same as any dynamically generated UI. It will perform badly (each navigation to a canvas will trigger a fresh query, plus there's the overhead of managing the stack). Also it is fragile: there's lots that can go wrong.
    So you need to ask yourself what it is you are hoping to achieve. Can you deliver the same business function some other way? As another poster has pointed out, this is just a glorified master-detail form - the filter criterion being the master. Building this as a classic two block master-detail Form is more straightforward and more robust.
    Regards, APC

  • How 2 navigate 2 other tab in paneltabbed in jdev 11G by click of button???

    Hi All,
    I am badly stuck here. Can anybody please help
    how 2 navigate 2 other tab in panel tabbed in jdeveloper 11G by click of button???
    there are 7-8 tabs in my panel tabbed I want to navigate to second tab from first by clicking button in first tab. the second tab should get
    highlighted and user should see all components in second tab
    thanks in advance,

    Hi,
    the ShowDetail item has a "Disclosed" property that you can set from Java or through a EL reference to a managed bean method. Once you e.g. set the managed bean method such that the item is set to disclosed you send a PPR request
    Frank

  • ColdFusion.navigate and unvisited tabs

    I have created a cflayout (type = border). Naturally, I have
    a nifty left side menu, which outputs a query result as a text.
    In the center layoutarea, I have a new layout of two tabs.
    The tabs are named projectOverview and projectTickets
    A link in the left navigation menu is like: <a
    href="javascript:
    ColdFusion.navigate('project.cfm?pid=#id#','projectOverview');
    ColdFusion.navigate('tickets.cfm?pid=#id#','projectTickets')">#projectName#</a>
    Now, when I click the link, the projectOverview tab updates
    contents always, but projectTickets never updates, until I manually
    visit that tab first once. Clicking the left link for the first
    time, and then going to the Tickets tab doesn't show the changes.
    The next clicking will update the tab, because now it was once
    visited.
    How could I get around this issue (a bug?) ?
    Example cflayout that I use currently.
    <cflayout type="border" align="justify">
    <cflayoutarea position="left" name="projectDiv"
    title="Projects" splitter="true"
    collapsible="true" source="projectlist.cfm" size="170"
    maxsize="350">
    </cflayoutarea>
    <cflayoutarea position="center" align="justify"
    overflow="auto" >
    <cflayout type="tab" name="mainarea">
    <cflayoutarea name="projectOverview" title="Project
    Overview" source="project.cfm" selected="true">
    </cflayoutarea>
    <cflayoutarea name="projectTickets" title="Tickets"
    source="tickets.cfm">
    </cflayoutarea>
    </cflayout>
    </cflayoutarea>
    </cflayout>
    And again: The projectTickets source doesn't update until I
    visit that tab once. Then it updates on every click from within
    projectDiv (projectlist.cfm)

    After investigating a bit, it seems that if you don't specify
    the source attribute for a tab, then the ColdFusion.navigate works
    correctly even for an unvisited tab.However, normally a tab loads
    its contents only when it's activated. Previous ColdFusion.navigate
    referrals are overridden when the tab is activated, thus updating
    the content with the original value of source attribute.
    I think this is unwanted behaviour, right?

  • Forms 6i - Two Tab Canvases

    Hi. I have a form with 2 canvases of the Type 'Tab'. The first is named 'top canvas' and second is named 'bottom canvas'. Each tab canvas has 3 tab pages under it.
    My problem is that when the user clicks one of the 6 tab pages I need to determine which tab page was clicked.
    I was able to do this when I had only one canvas of the Type 'Tab' by doing the following:
    tp_nm := GET_CANVAS_PROPERTY('TOP_CANVAS', topmost_tab_page);
    tp_id := FIND_TAB_PAGE(tp_nm);
    tp_lb := GET_TAB_PAGE_PROPERTY(tp_id, label);
    IF tp_lb LIKE 'Details%' THEN
    go_item('to_do_mteam.hide_cursor');
    ELSIF tp_lb LIKE 'Droppers To Call%' THEN
    go_item('dropper.hide_cursor');
    END IF;
    But since I now have 2 canvases of the Type 'Tab' I can't hard code the canvas name (e.g. 'top_canvas') like I did above because the tab page could be on either the 'top_canvas' or the 'bottom' canvas. And BOTH canvases will always have a topmost_tab_page.
    Can anyone advise me on how to solve this issue? Any help would be greatly appreciated!

    :system.event_canvas
    Not documented. See thread here:
    Re: System.Tab_New_Page - with multiple tab canvases

  • Forms tab canvases

    Hi,
    Does anyone know how can I set the colour of the background and foreground on the heading of each tab page?
    Wright now,I'm setting the tab page visual attribute,but Forms is showing some others colours on the tab pages headings.
    I'm using forms 9i.

    Hi Frank,
    In the layout editor,background and foreground colors are exactly the ones I'm setting.
    I'm not having any problems with the lowercase or uppercase of the chars,but with the colors.
    But in runtime,these colors are changing to some colors depending on the LAF.
    Isn't really some other way to set them?(when I've changed the LAF,they changed too)

  • Modify BeanInfo programatically at runtime?

    I'm trying to customize the order in which properties are stored for a JavaBean, based on information gathered at runtime.
    These are classes generated by JAXB from an XSD schema. The problem is that I need the properties returned in the same order in which they appear in the schema, but getProperties() is returning them in alphabetical order. I think that I could write a custom BeanInfo class to do this, but the JAXB classes are created and compiled at runtime, so ideally I would be able to do programatically when I read the classes, instead of needing to actually write source code and compile it at runtime for the custom BeanInfo.

    Hi,
    There are range of things you can modify on a presentation at runtime. Can you provide some more details on what properties you wish to modify?
    Thanks,
    Tim

  • Get the existing tab by name at runtime

    Hi all,
    I need to get weather a tab exist by this name or not .. my scenario is
    I will have a properties file with a list of field properties along with information to which tab this field belong ...?
    At runtime I need to create a tabstrip...
    Then i need to get 1st field's  tabname, check weather a tab exist with this name or not..
    if it exist create & add this field to that tab and context, else create new tab and then add.
    add the tab to the tab strip. so on to all fields
    finally tab strip to the rootcontainer
    He ineed how to get a tab by name,
    how to create a value attribute under a value node for the view context..
    Thanks in advance .
    Sai.k.k

    Hi Armin,
    Have a look at this code
    <pre>
    for(int i=1;i<=fieldscount;i++)
      IWDAttributeInfo child = parent.addAttribute(resourceHandler.getString("FIELD"i"_FIELDNAME"),"com.sap.dictionary."resourceHandler.getString("FIELD"i+"_DATATYPE"));
      IWDInputField field = (IWDInputField) view.createElement(IWDInputField.class,"Field_"+i);
      field.bindValue(child);
      IWDLabel label     =     (IWDLabel)view.createElement(IWDLabel.class,"Label_"+i);
      label.setText(resourceHandler.getString("FIELD"i"_LABEL"));
      label.setLabelFor("Field_"+i);
      IWDViewElement Ele = view.getElement(resourceHandler.getString("FIELD"i"_TAB"));
      if(Ele instanceof IWDTab)
        IWDTab existtab = (IWDTab)view.getElement(resourceHandler.getString("FIELD"i"_TAB"));
        existtab.setContent(label);
        existtab.setContent(field);
      else
        <b>IWDTab tab1 = (IWDTab)view.createElement(IWDTab.class,resourceHandler.getString("FIELD"i"_TAB"));</b>
        IWDCaption header1 = (IWDCaption) view.createElement(IWDCaption.class,resourceHandler.getString("FIELD"i"_FIELDNAME"));
        header1.setText(resourceHandler.getString("FIELD"i"_TAB"));
        tab1.setHeader(header1);
        IWDTransparentContainer tcont = (IWDTransparentContainer)view.getElement(resourceHandler.getString("FIELD"i"_TAB"));
        IWDGridLayout layout =(IWDGridLayout)tcont.createLayout(IWDGridLayout.class);
        layout.setColCount(3);
        tab1.setContent(label);
        tab1.setContent(field);
        ts.addTab(tab1);
    //    count++;     
    theActionContainer.addChild(ts);
    </pre>

  • Navigate pages of tab control with radio buttons

    hi guy,
    i need to navigate 7 pages of a tab control container usings custom buttons. that is, when i click on a button, i takes me to the specific page on the tab control container.
    i think this can be done using radio buttons and tab control container, but i dnt really know how. please any help will be appreciated.
    thanks....

    Hi jiggaharry,
    I think I may have a link that addresses you issue. Do have a look at this link:
    Navigate Tab Control with Custom Buttons:
    http://forums.ni.com/ni/board/message?board.id=300​&message.id=6123
    We have a vast array of data on ni.com for examples and tutorials which could be very helpful in your code development. Do feel free to browse through and use the examples are they are all free of charge
    Hope the link is useful to you.
    Regards,
    Manick | AE | NI ASEAN

Maybe you are looking for

  • Can You Get Apps back

    if you buy a App and you want to get your money back. Can you do that? If so how do u go about doing that?

  • Trouble with re-sizing images/textboxes InDesign CS6

    Has anyone had any problems re-sizing images or text boxes in InDesign CS6? I have been doing it for months by selecting the corners and dragging them in or out but suddenly it's stopped working. The arrow no longer changes to a double arrow when I h

  • Error: The resource did not process correctly. How do I get rid of it?

    I continue to receive an error everytime I log in to my college student email. The error says The resource did not process correctly. I desperately need help with this problem the error shows this as well java.lang.NullPointerException

  • Many Ship to party assigned to 1 sold to party

    Hi guru's Can any 1 tell me what is the maximum number of ship to parties assigned to 1 sold to party. Also let us know if there is  limitation then what is the solution to extened the same.

  • 1970 - what gives?!

    OK, with all the various problems of not being able to edit some photos properly, I deleted my whole libary and imported again from my 'real orginal saved folders'. To note, I've done this in the past many times (each OS reinstall) and never had a pr