Tab set index

Hello,
Is it possible to get the selected item for a tab set ?
Best Regards
Franck Lugand

Hi Franck,
I realise this has been marked as complete but there is a simple(ish) workaround you can use as follows:
Chose a cell to contain the index of the selected tab - you can make this text or a number whatever you require e.g. $A$1
Next reserve three side by side columns with enough rows for each tab item and set up with the formula = $A$1 in the first column, the text that you want to be returned based on the selected tab in the second column and the formula =IF($A$1=$B3,1,0)  in the third column e.g.:
     A          B               C
3     =$A$1          Tab 1 Selected          =IF($A$1=$B3,1,0)
4     =$A$1          Tab 2 Selected          =IF($A$1=$B4,1,0)
5     =$A$1          Tab 3 Selected          =IF($A$1=$B5,1,0)
Next in each tab insert a toggle button.  Resize the toggle button to the full size of the tab canvas - make sure that it is on top of all other components i.e. appears furthest down in the tree on the left.  Set the transparency to 100%, disable displaying the labels and set toggle on Mouse Over.  Bind the source data a follows:
Button on Tab 1 = $A$3:$B$3
Button on Tab 2 = $A$4:$B$4
Button on Tab 2 = $A$5:$B$5
Bind the target cell for all buttons to cell $A$1
Set the dynamic visibility as follows
Button on Tab 1 = Status: $C$3, Key: 1
Button on Tab 2 = Status: $C$4, Key: 1
Button on Tab 3 = Status: $C$5, Key: 1
That's it.  Now simply look at cell $A$1 to see what tab is selected.  This works by simply showing an invisible toggle button which disappears as soon as it is scrolled over whilst updating the cell $A$1 at the same time.
It should be noted that this method does have the limitation where if the user selects a tab but then the mouse never goes over the tab area you will not know which tab was selected.
Also - Phil  I've answered the question re push buttons in [your other thread|Tab Set Container Hyperlink?;.
Regards,
Paul

Similar Messages

  • Threadinar10 - Page Separator, Page Fragment Box , Tab Set & Tab Components

    Hi All,
    This is the tenth in the Threadinar series. See the Components Threadinar Index at http://forum.sun.com/jive/thread.jspa?threadID=103424 for the complete list to date.
    This Threadinar will discuss 4 components in the "Components Palette: Layout Section" section of the Creator Component Catalog.
    The components we will focus on today are
    "Page Separator", "Page Fragment Box" , "Tab Set" & "Tab" Components.
    Let us begin our discussion with the "Page Separator" Component.
    Page Separator Component
    You can drag the Page Separator component from the Palette's Layout category to the Visual Designer to create a horizontal line that resizes to any page width selected by the user. This component is the visual equivalent of an HTML <hr> tag.
    In the page bean, a Page Separator component is a PageSeparator object.
    * Note: If you want to use an HTML <hr> tag, drop a Meta component on the page and set its tag property to hr.
    [b]Page Fragment Box Component
    This component enables you to include a page fragment in a page. A page fragment is a separate, reusable part of a page that can be included in any number of pages. For example, you might want to put a common a visual element like a header graphic in a page fragment and then include it in all the pages in an application.
    When you drag the Page Fragment Box component from the Layout category of the Palette and drop it on a page, the Select Page Fragment dialog box prompts you for the name of the page fragment to be included. You can enter the name of an existing page fragment or create a new page fragment. If you create a new page fragment, the IDE gives the new fragment a .jspf file suffix and creates a node for it in the Projects window, as well as adding the page fragment to the Outline window.
    * Note: A Page Fragment Box component simply includes a page fragment in a page. Deleting a Page Fragment Box component from a page does not delete the page fragment itself, even if you originally used the Select Page Fragment dialog box to create the page fragment.
    After dropping a Page Fragment Box component on the page, if you click inside the component, you see the properties for the included fragment. If you click the border of the component, you see the properties for the enclosing <div> block. You can also use the Outline window to select the enclosing block, the page fragment, or the components in the page fragment. In the Outline window, the Page Fragment Box component is represented by a node named directive.include:fragment-file.jspf, where fragment-file is the name of the page fragment file.
    If you double-click the page fragment, it opens as a page in the Visual Editor, enabling you to edit it like a regular page. The page fragment has an associated JavaBeans object, a page fragment bean, which you can edit by clicking the Java button at the top of the page fragment when it is open in the Visual Editor. As with a regular page, if you drop a component like a button in a fragment, double clicking adds an event handler in the page fragment bean, enabling you to reuse the code on any page to which you add the page fragment. A common scenario for reusing component code would be a Search Box fragment that has a search Label, a Text Field where the user enters the search string, some Inline Help, and search logic code in the page fragment bean.
    * The tab order of the components in the page is unlikely to work properly unless you enclose the entire page fragment box in the Faces Verbatim component.
    For more details see tutorial : "Using Page Fragments"
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/pagefragments.html
    [b]Tab Set Component
    The Tab Set component in the Palette's Layout category is a container for a set of Tab components. Typical uses of a tab set are:
    * To provide alternate sets of components on the same page and enable the user to navigate to them by clicking on tabs. The user sees only the components under the currently selected tab. For more information on adding components to tabs, see Tab Component.
    * To navigate among a set of pages. If you use a tab set this way, you would usually have the tab set near the top of each page with the component's width set at 100%. You would use the Page Navigation editor to define each tab to display a page in the application, with the current page's tab set as the selected tab. In addition, you would need to delete the default Layout Panel component under each tab so the tab would display the page contents.
    You can set Tab Set properties in the component's Properties window.
    A Tab Set component contains Tab Components, and Tab components can contain other Tab components. You can see these components displayed as hierarchical nodes in the Outline window after you add a Tab Set to your page.
    You can add a new tab to a tab set in two ways, by right-clicking the Tab Set component and choosing Add Tab or by dropping a new tab component on the Tab Set or on a Tab component.
    You can drop a new tab component on a tab set in the Visual Designer to the right or left of existing tabs to create a new tab at that level. The tabs in a tab set can also be containers for other tabs. If you drop a Tab component on an existing tab, the new tab becomes a child of the tab on which you dropped it. The maximum number of levels for tabs is three.
    The tab set component determines which tab is rendered as selected, storing the value in the selected property. By default, the selected property is set to the first tab created for the component. If you click a tab while designing your web page, that tab becomes the selected tab. You can tell during design time that a tab is selected because its color changes.
    [b]Tab Component
    A Tab is part of a Tab Set component. You can add a new tab to a tab set in two ways, by right-clicking the Tab Set component and choosing Add Tab or by dragging a new Tab component from the Layout category of the Palette and dropping it on the Tab Set or on another Tab component. You can also drag from the Palette and drop the tab on the tab set's nodes in the Outline window.
    * If you drop the Tab component to the left or right of an existing tab, it is added to the same row of tabs.
    * If you drop the Tab component on an existing tab, the dropped tab becomes a child tab of the tab on which you drop it unless the existing tab is a third level tab. You can have at most three levels of tabs in a tab set.
    o Note: You cannot add a child tab to a tab that has components in its Layout Panel. When you drop a tab on an existing tab component that has an empty Layout Panel, the empty Layout Panel is deleted to make room for the dropped tab.
    By default, a Tab component has a Layout Panel below it where you can drop components that will be displayed when the user selects the tab. The Layout Panel by default has its panelLayout property set to Grid Layout, meaning that components dropped on the panel are aligned at the location where they are dropped. You can change the layout behavior by setting the panelLayout property to Flow Layout, which aligns dropped components left to right in rows. For more information on Layout Panel properties, see Layout Panel Component Properties Window.
    To select a tab in a tab set, either click the Tab component on the page or select the Tab component's node in the Outline window. To select the whole tab set, either click the border of the Tab Set component on the page or select the tab set's node in the Outline window. Alternatively, you can select a Tab component and either press Escape or right-click and choose Select Parent to select its parent component.
    * Note: If you select a tab on a page in the Visual Designer, a side effect is that it becomes the selected tab. If this effect is not what you want, select the tab in the Outline window so you can set its properties.
    You can drag tabs in the Outline window to change their location and level in the tab set.
    Some typical uses of tabs:
    * You can drop components on the Layout Panel component below a tab to enable a set of components to be displayed below each tab. When the user selects a tab, they see only the components that are associated with the tab, without having to change pages.
    * You can use a tab set to navigate among a set of pages. Each tab component links to a page in your web application. You would use the Page Navigation editor to define each tab to display a page in the application, with the current page's tab set as the selected tab. If you want to use the tab set for page navigation, be sure to delete each tab component's Layout Panel.
    You can also right-click the Tab component and choose one of the following options:
    * Edit action Event Handler. Code the action event handler, the method that is called when the user clicks the tab. This method determines which page or resource to open based on specified conditions. The action method typically processes mouse clicks and returns a string indicating the name of a page navigation case (the page in your application to display next). The default name for the method is tab-id_action, where tab-id is the value of the tab's id property.
    * Bind to Data. Dynamically set the text that appears on the tab. You can bind the component's text property to an object or a data provider, as described in the topic Bind to Data Dialog Box.
    * Property Bindings. Opens a dialog box that enables you to bind properties of the component in addition to the text property to other objects or bean properties that update this component's properties automatically.
    [b] Please join in and share your comments, experiences, additional information, questions, feedback, etc. on these components. <br><br>
    Thank you for your participation

    The following blog has a mini tutorial on using a tab set in a page fragment for page navigation:
    http://blogs.sun.com/divas/entry/tabbing_thru_the_tulips
    A reader commented that the mini tutorial needed to be improved upon to show how to keep the tab state and navigation state in synch.
    How would you do it? If you have a good example, maybe post it to this thread.
    Also, there is no tab tutorial but it is on the priority list. What would you like a tab tutorial to show how to do?

  • How can I create a new standard tab set?

    I have a tab set right now with one tab in it. How can I create a new tab set in an existing page with different tabs in it? Thanks.....

    Hi,
    Refer:
    http://proskudin.blogspot.com/2007/06/two-level-tabs.html
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • Export to Word loses tab setting

    Post Author: HmCody
    CA Forum: .NET
    I am very new to Crystal Reports with VS.net and have run into a problem that I hope isn't a bug.
    I am creating a report that needs to be able to be exported to Word (it gets sent to the printer for inclusion in a program).  Several of the text objects are formatted with right tabs set at the right edge of the object.  Everything lines up perfectly when the report is viewed in the Report viewer and when I export to a pdf, but when I export to Word the right tabs are converted to left tabs and the text aligned to them is out of view.
    Anyone have a clue as to why this is happening and if there is a way to fix it?
    Thanks for your help.
    Helenmary

    Sorry - no pointers. Other than patience - this is a known issue, probably to be addressed in Service Pack 3 of Crystal reports. See Kb [1643979 - Crystal Reports for Visual Studio 2010 does not look for ForceLargerFonts registry key|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333633343333333933373339%7D.do]
    I have seen one or two reports of people using the below KBase with success (you'll have to modify the reg key to reflect CRVS2010). But most have no success. Testing this I did not have any success either, nor did I see the CRVS2010 engine looking for any of the keys noted in the KB....
    [1644563 - How to create the ForceLargerFonts registry key when using Crystal Reports 2008 (12.x)|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333633343334333533363333%7D.do]
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]
    Edited by: Ludek Uher on Jan 19, 2012 6:37 AM

  • Ignore Tab-Setting in a JTextPane

    Hello,
    i have a JTextPane and I need a Tab Size 0. I want to ignore the Tab-Setting, cuz I got an XML-Editor, with automaticaly indent.
    Does anyone Have an Idea ?

    This thread might help:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=331679

  • MySQL to Oracle Migration Issue - Unknown character set index for field.

    Hi,
    Looking for help..!!!
    Migrating mySQL - version 4 database to Oracle 10g using oracle migration work bench. It went well until the last step. But, during the data migration, OMWB has given the following error:
    +++++++++++
    Unable to migrate data from source table gets.sales_order_01 to destination table gets_ora.sales_order_oracle10: gets_ora.sales_order_oracle10; Unknown character set index for filed "12596" received from ser.
    +++++++++++
    Log file shows:
    java.sql.SQLException: Unknown character set index for field '12596' received from server.
         at com.mysql.jdbc.Connection.getCharsetNameForIndex(Connection.java:1692)
         at com.mysql.jdbc.Field.<init>(Field.java:161)
         at com.mysql.jdbc.MysqlIO.unpackField(MysqlIO.java:510)
         at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:285)
         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1326)
         at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1225)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:2278)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:2225)
         at com.mysql.jdbc.Statement.executeQuery(Statement.java:1163)
         at oracle.mtg.migrationServer.LoadTableData._migrateTableData(LoadTableData.java:563)
         at oracle.mtg.migrationServer.LoadTableData.run(LoadTableData.java:326)
         at oracle.mtg.migration.WorkerThread.run(Worker.java:268)
    I appreciate your help in this regards.
    Regards,
    K

    Hi K,
    Whats the default character set of you MySQL and Oracle Databases.
    What version of JDBC driver are you using?
    Is there any unicode characters used in your data?
    Have you tried offline data move?
    Thanks
    Dermot.
    Message was edited by:
    dooneill

  • Error Connecting to MySql (character set index '49')

    I downloaded the Oracle Sql Developer extensions and went to Tools / Preferences / Third Part and set the location for the Jar file.
    When I try and test the connection to the MySql database I get this error:
    An error was encountered performing the requested operation:
    Unknown initial charater set index '49' received from the server.
    Initial client character set can be forced via the 'characterEncoding' property.
    Vendor code 0
    My dba's used Sql developer to connect to the same MySql database fine. If I use MySql Workbench, I can connect. (I prefer Sql Developer, so I was hoping to get this connection to work.)
    I even tried going to MySql to get their Connection/J JDBC jar file; but the same results.
    Any suggestions?
    Thanks,
    Mike

    Are your colleagues using the same sqldev/JDBC versions? Which?
    Did you follow the guide on setting it up, and the driver from http://dev.mysql.com/downloads/connector/j/ ?
    K.

  • Help, I accidentally deleted the parent tab set.

    I accidentally deleted the parent tab set from my application, and cannot find anyway to create a new one. Has anyone had this problem?
    Oracle - 9.04R2
    ApEx - 2.2.0
    Browser - Firefox
    Thanks,
    Michelle

    Hi Scott,
    unfortunately I made a stupid thing, being too smart and updating the FLOWS_020200.wwv_SOMETHING_tabs record, modifying parent tab of the problematic tab to main. Doing that caused the complete application to disappear from the Application builder. I guess some checksums in APEX internal objects were modified and that is the result.
    Fortunately I had a recent export of an application, so I didn't loose too much. That also means that I can not help myself with "as of" export.
    Could you please just tell if recreating parent tabs is possible by "clicking through apex screens" or should there be some hacking used.
    Zober

  • Problem: Two Tab Sets for one page

    Hello everyone. I have two tab sets and each tab set has one common tab, for example an "About" tab that redirects the user to page 25 when clicked. The tab set works perfectly for the first tab set but when I'm in the second tab set and I click "About" the other tabs change to the first tab set.
    Does anyone know how to solve this problem without having to create multiple "About" pages?

    Hi Nithya,
    My requirement is to have two main windows in the same page. For each line item it is triggering a new page. In the first page both the windows are displayed as expected but in the second page only the first main window (MAIN00) is getting triggered and the second main window (MAIN01) is not triggered.
    Output got :
    page1:
    MAIN00
    a
    MAIN01
    a
    page2:
    MAIN00
    b
    MAIN01
    (blank)
    Expected output:
    page1:
    MAIN00
    a
    MAIN01
    a
    page2:
    MAIN00
    b
    MAIN01
    b

  • Tab Set Label Colors - How do I change the selected tab label color?

    No matter what color I tell it to use for the Labels - Selected color I get white.  Is this a known bug in the system or am I not doing something correct.  I have a tab set component and a label based menu selector component on my display.  I've set up the labels and backgrounds for both components exactly the same but I can only get white for the selected tab set label.
    Edited by: Maureen LaComb on Feb 19, 2009 5:38 PM

    Hi, Maureen
    You can set the color of Tab Set by using the Following Steps.
    --> Select the Tab Set
    --> From the the Properties Window
    --> Select Appearance
    --> There are Two Tabs "Text" and "Color"
    --> From the Color Tab you can Select the Background Color
    --> Tab BackGrounds Or Labels from here you can select the color.
    But this setting will Apply to all the Tabs in a Tab Set, I think you can't set the Specific Setting for a single Tab in a Tab Set.
    Please Reply if any Issue,
    Kind Regards,
    Faisal

  • Display the panel container when user select the specific tab in a tab set

    Hi SAP Experts,
    I've faced some problems and i would like to seek some help from the experts.
    Basically, my requirement is to display the component "panel container" which contains some data whenever a user select e.g. Tab "A" of my component Tab set. Similarly, it hides again when the user select Tab "B" and another panel container appear for it.
    I am not sure if this is achievable in Xcelsius. Experts, please advise me.
    Your help will be greatly appreciated!
    Thanks a lot!
    Feel free to clear any doubts with me
    Best regards,
    htoh

    actually, you can not do that, since you dont have a reference of the current selected tab

  • Tab Set

    Is my understanding correct that to use the Tab Set feature one page must be created for each tab required? And each page must have a tab set on it in the same position as the others?
    How would this work if I only wanted a portion of the page given over to the tab set? Would I have to repeat the content outside the tab set on each page used by the tab set?
    I have an implementation of a tabbed set using Tomahawk and, I beleive, when a tab is selected a full page refresh is not required. Within the jsp code I can define the html controls that appear on each tab and do not have to create new jsps. Is this functionality available with Creator?
    Andrew

    Having followed the example I have noticed that the content of the first tab (Page1.jsp) is never re-displayed after visiting another tab and attemtpting to return ot the first tab again.

  • Tab set font color

    I just downloaded the fix pack and have noticed that I am still unable to change the tab set tab font color.  Am I doing anything wrong?'
    Thanks,
    DD

    I believe what Purnima was speaking of was the Tab Background color properties.
    However, I believe there is an issue with the Label Over Color and Label Selected Color mapping properties of the Tab Set.
    Thanks.

  • How to determine Secure Channel key set index or version within applet

    Hi,
    Is there any way to determine from within the applet the used key set index or key set version?
    The ProviderSecurityDomain object does not contain such a property to my understanding.
    b.r.
    Fabe

    No there is not. There are API's to ask the security domain to do crypto operations using the current secure channel session keys and GP says that the security domain needs to be aware of what keys to use for this.
    The key information is not exposed to the applet as it is not generally required and for security reasons.
    Cheers,
    Shane

  • Insert new tab at front of Tab Set Container

    In Xcelsius 2008, I have an existing Tab Set Container with four tabs.
    Based on user feedback, I need to add an additional tab at the front/first position of the previously created tabs.  I can click on the first existing tab and insert, but the "new" tab is in the "second" position and I cannot seem to move it.
    Is there a capability I'm missing that allows me to order the tabs in the Tab Set or re-order to my custom preferences? 
    Or am I going to have to start from scratch? 

    Hi Brent,
    To get the new tab added on the first position, add the tab as you are doing.
    Then go to the object browser,expand the TAB SET.
    Select the tab which you want to set on first or any position and then use the "UP/DOWN-Arrow mark" present at the bottom of the Object browser window.
    This will enable you to move the tab to any location you want.
    Thanks,
    Amit Mathur.
    Edited by: Amit Mathur on Dec 30, 2008 9:05 PM

Maybe you are looking for