TabNavigator's tab dynamic visibility handling problem.

Hello All,
I am facing problem in TabNavigator component.
My application has one tabnavigator with 4 tabs. (T1,T2,T3,T4)
Tabs visibility is depend on data which are load in those tabs.
If data is getting Null from database for T2, T2 tab will not displayed. Only other 3 are displayed.
I have tried this....
myTabNavigator.getTabAt(myTabNavigator.getChildIndex(myT2tab)).visible = false;
myTabNavigator.getTabAt(myTabNavigator.getChildIndex(myT2tab)).includeInLayout = false;
but problem is if once tab is hide by above code, will not visible again by setting visibile & includeInLayout property to true.
Anyone else noticed this, have any suggestions?
Thank you.

Hi Tejas S Patel,
I dont see any such kind of problem...I have run a test...it works perfectly fine.
Below is the sample test I have done..
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:TabNavigator width="103" id="tabone">
  <mx:Canvas label="First Canvas" width="100%" height="100%">
   <mx:Label text="First Canvas"/>
  </mx:Canvas>
  <mx:Canvas label="Second Canvas" width="100%" height="100%">
   <mx:Label text="Second Canvas"/>
  </mx:Canvas>
  <mx:Canvas label="Third Canvas" width="100%" height="100%">
   <mx:Label text="Third Canvas"/>
  </mx:Canvas>
</mx:TabNavigator>
<mx:HBox top="100">
  <mx:Button id="btn1" label="HIDE SECOND TAB" click="tabone.getTabAt(1).visible=false;tabone.getTabAt(1).includeInLayout=false;"/>
  <mx:Button id="btn2" label="SHOW SECOND TAB" click="tabone.getTabAt(1).visible=true;tabone.getTabAt(1).includeInLayout=true;"/>
</mx:HBox>
</mx:Application>
Thanks,
Bhasker Chari

Similar Messages

  • TabNavigator: Adding Tab Dynamic

    Hi,
    I would like to create an application that is using a
    TabNavigator to show different information (tabs) when user press
    different buttons. I create a button and call a function to add a
    tab into tabnavigator to show a custom control (base on Panel). I
    try it and the program can add the tab and show the correct
    information. But I don't know how to add the label on the created
    tab. Also, can it be any simple method to check it the information
    is shown already in tabnavigator?
    The function is listed below:
    private function addUserRequest():void {
    var ur:DisplayObject = tabControl.addChild(new userRequest);
    var tabNdx:int; // Tab Index
    tabNdx = tabControl.getChildIndex(ur);
    tabControl.selectedIndex = tabControl.getChildIndex(ur);
    return;
    //end of function
    Thanks a lot!
    Wilson

    If
    UserRequest is a custom component which extends
    Panel, the label of the panel will be used as the label of
    the tab when it's added to the
    TabNavigator.
    In order to do this you'll need to define
    ur as a compatible type which has a label property, i.e. as
    a
    Panel or as a
    UserRequest (or whatever it's called):
    var ur:Panel = new UserRequest(); // UserRequest is subclass
    of Panel so compatible.
    ur.label = "A Label"; // I can set this because I am a panel
    tabControl.addChild(ur);
    I'm not sure I understand your last question. Do you want to
    know if the tab with that label already exists?

  • Dynamic visibility for icon

    Hi friends,
    In my current dasboard i am using dynamic visibility functionality. So for that i am using 2 icons for pricing & costing,2 pie charts for pricing & costing.
    for this i map like for each icon in destination property i gave i blank cell in excel. For corresponding pie chart in behavior tab ->Dynamic visibility for status tab i used that blank cell. Its working fine but when user click on icon1 then it showing the corresponding pie chart. when ever we click i con2 it show pie chart over the old one.
    So my question is how to disable automatically  the the first pie chart..
    Thanks
    Yogisha.G

    Hi Yogisha,
    Insted of taking 2 icons i suggest you to take a radio button with lables Pricing and Costing.
    Use of radio button makes the functionality clear and flexible as only one will be selected at any point of time .
    Take source as pricing and Costing eg:Sheet1!$A$1:$A$2
    Destination as blank cell eg:Sheet1!$C$1
    take your pie chart for Pricing and Give status as Sheet1!$C$1
    Key as Pricing(Sheet1!$A$1)
    take your pie chart for costing and Give status as Sheet1!$C$1
    Key as Pricing(Sheet1!$A$2)
    Change the orientation of radio button as horizontal.
    Note :Make shure that Key cell matches exact format in which labels are given .
    Hope this helps you .
    @Sri

  • Tab Component Dynamic Visibility to Combo Boxes

    I am using a Tab component.  I have 3 tabs on my dashboard.  I have 2 Combo boxes that I am using to filter rows of data on 3 Excel sheets.  Both Combo boxes are not used on all the tabs.  How can I pass example: User clicks on Tab 1 and use dynamic visibility for Combo Box 1 and Combo Box 2 are visible.  If the user clicks on Tab 2 I want only Combo Box 1 to be visible.

    Hi Joe,
    This can be achieved in Dynamic visibility.
    On click on Tab,just map to some target(say value "1") and then For Combo box,set target cell mapped for tab to 1,which means when the target cell gets "1",show the Combo box.
    If you are not clear then you can refer the following URL,which will give you more informations about this.
    http://everythingxcelsius.com/2008/08/tip-7-xcelsius-dynamic-visibility-video-tutorial.html
    Rgds,
    Murali

  • Urgent Dynamic Visibility Problem

    I'm creating a dashboard and everything was going really well. At some point, the things I designated with dynamic visibility just stopped showing up. If I create a component and don't put anything for Display Status, it shows up fine, but appears on all my "pages." If I try and qualify the component so it only appears on one page, it won't show up at all in the SWF.
    The weird thing is that if I make a copy of an existing component, it will show up, but only if the dynamic visibility settings aren't changed. If I copy a component that's on page 2 and want it to appear on page 3, it won't do it.
    The dashboard has gotten kind of large, and I don't know if that has anything to do with this. All I know is that I've become completely frustrated because I'm two pages into a four page dashboard and can't continue. Nothing new can be created to go on those last two pages.
    Can someone help me with this?
    Thanks!

    Although there is not a "limit" to how complex your dashboard can be, at a certain point performance will be compromised. This same principle is also true for your Excel spreadsheet. I assume that since you are creating a complex multi-page dashboard that the underlying data is also dense and complex. You can either: simplify the data, reducing either its size or the number of formulas/calculations being performed; or simplify the dashboard. Rather than creating one dashboard with several complex layers, you may find creating a parent dashboard that calls multiple external "child" SWF files yields a better performing dashboard. *Caution: parent/child or nested dashboards are more complicated to distribute to viewers, which should be considered depending on your application.

  • I accidently unmarked the book marks tool bar, the tool bar and the menu bar how do i get them back ?becaus now only the tabs are visible and i cant access my features or book marks

    i was getting to know my firefox so i accidentally unmarked the menu bar the book marks tool bar and the tool bar. so now only my tabs are visible and i cant get to any of my add-ons or extensions.
    and even surfing the net has become difficult cause there is almost nothing i can do with a new empty tab.
    how can i get these bars back. i tried taking the cursor up to the thin line above the tabs and the window border but the menu to mark the above mentioned features does not appear any more.
    i tried restarting firefox several times but it didn't work. i even uninstalled and completely downloaded a new version of firefox and installed it but the problem still persists.
    i am operations system is windows XP.

    Firefox 3.6+ versions have a feature to allow the user to hide the Menu bar.
    Hit the '''Alt''' key to temporarily show the Menu bar, then open View > Toolbars and select Menu bar, so it has a check-mark. <br />
    The F10 can also be used on most PC's to temporarily reveal the Menu bar.
    https://support.mozilla.com/en-US/kb/Menu+bar+is+missing

  • Flex 3 TabNavigator getting tab name when tab clicked

    Hi All, I am using Flex 3.
    I have <mx:TabNavigator  id="dbtabs" width="100%" height="100%" click="changeTabs()"  />
    I am also adding tabs dynamically. 
    In the grand scheme of things, I want to let a user add tabs as needed and chose what content is on the tab.  This is saved data, so when they come back I need to reload their saved settings.
    What I am trying to do is find out how to get the index of the tab when it is clicked. Right now I have to click the tab then click in the vbox to get the selectedIndex.  Is there a way to get the selectedIndex as soon as the tab is clicked?
    Thanks.

    private function handleTabClick(evt:IndexChangedEvent):void
           var i:int = evt.newIndex;
    <mx:TabNavigator change="handleTabClick(event)">
            <mx:Canvas width="200" height="200" label="Tab 1"/>
            <mx:Canvas width="200" height="200" label="Tab 2"/>
    </mx:TabNavigator>
    Dany

  • Dynamic Visibility Issue

    I have two seperate Label based menu - one of them branched into another.
    The first menu consists of Metrics,Demograpcis,Key audiences & Whatif Analysis and the other menu branching from demographics to Age, Marital Status,Religion, etc.I have several different type of graphs which would show these demograpics. My apparent problem is how to tackle the dynamic visibility of the different componenets at different levels making sure for eg that the label at the second level show at the appropriate time.

    <p>It seems like you need two label based menus - I am guessing, horizontal menus, one positioned below the other (the top menu being Metrics, Demographics, Key audiences, and WhatIf). </p><p>Based on what is clicked on the top level menu, adjust the items in the secondary menu to match the selected item in the top level. For instance, when Demographics is clicked, the secondary menu could be populated with Age, Marital status, Religion, and so forth. These labels could be determined by using a lookup from a list. The idea in mind is that both the top menu and the secondary menu are visible and unchanging. <em>What changes is their labels and behavior as you click different items in the menus.</em> As you do this it dredges up the appropriate charts (e.g., When you click Demographics on the top menu, and then Age on the secondary menu, you might have a few charts or tables relating to age, displayed.).</p><p>While you don&#39;t need to worry about dynamic visibility for the label based menus, you do need to manage visibility for the charts. You may want to refer to my article <a href="http://www.xcelsiusjournal.com/index.php?option=com_content&task=view&id=51&Itemid=2" target="_blank" title="Xcelsius Journal article: Dashboard Multi-Layer Control- A Best Practice">Dashboard Multi-Layer Control</a>  for some techniques on managing dynamic visibility. <br /></p><p>Loren Abdulezer/Evolving Technologies Corporation<br /><strong><a href="http://www.XcelsiusBestPractices.com">www.XcelsiusBestPractices.com</a></strong><br /><strong><a href="http://www.XcelsiusJournal.com">www.XcelsiusJournal.com</a></strong> </p>

  • Dynamic visibility for tabset

    Hi
    is there an option or parameter for dynamic visibility for each tab inside tabset component ?
    that way i can control what each a specific user can see

    so far there isnt any option doing this!

  • Pinned tabs not visible.

    After I pin a tab In ff29 it disappears to the left of the tab row. I see an empty gray box there where the pinned tabs were visible in ff28.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Does it help to open a new window?

  • How to insure selected tabs are visible in JTabbedPane

    Hello all,
    How can you insure that the selected tab in a JTabbedPane is visible.
    Here is the code:
    import javax.swing.*;
    import java.awt.*;
    public class TabbedPaneTest extends JTabbedPane implements Runnable
    public TabbedPaneTest()
    super(JTabbedPane.TOP, JTabbedPane.SCROLL_TAB_LAYOUT);
    } // end TabbedPaneTest constructor
    public void run ()
    for (int i = 1; i <= 10; i ++)
    try
    this.addTab(Integer.toString(i), createDefaultPanel (i));
    this.getModel().setSelectedIndex(i - 1);
    Thread.sleep(3000);
    } // end try block
    catch (Exception e)
    e.printStackTrace();
    } // end catch block
    } // end for loop
    } // end run method
    private JPanel createDefaultPanel (int index)
    JPanel defaultPanel = new JPanel ();
    defaultPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLoweredBevelBorder(), Integer.toString(index)));
    return defaultPanel;
    } // end createDefaultPanel method
    public static void main (String args [])
    JFrame frame = new JFrame ();
    TabbedPaneTest tpt = new TabbedPaneTest ();
    frame.getContentPane().add(tpt);
    frame.setSize(200, 200);
    Thread newThread = new Thread (tpt);
    newThread.start();
    frame.setVisible(true);
    } // end main method
    } // end TabbedPaneTest class
    I've crated a JTabbedPane with the tabLayoutPolicy set to JTabbedPane.SCROLL_TAB_LAYOUT.
    If I add enough tabs the scroll buttons appear but the newly adde tab is hidden behind them,
    even though I have set the selection index to the added tab. The content of the panel associated
    with the tab is visible but the tab itself is hidden.
    So the selected tab is hidden behind the scroll buttons.
    Any one know how to insure that if a tab is selected it is visible to the user.
    Thanks

    This is an interesting question so I tried it out. After some poking around to see how Swing does this for mouse clicking (try setting things up so that a tab is only partially visible and then click on the visable part - notice how the whole tab is scrolled into view) I found this:    /**
         * This inner class is marked "public" due to a compiler bug.
         * This class should be treated as a "protected" inner class.
         * Instantiate it only within subclasses of BasicTabbedPaneUI.
        public class TabSelectionHandler implements ChangeListener {
            public void stateChanged(ChangeEvent e) {
                JTabbedPane tabPane = (JTabbedPane)e.getSource();
                tabPane.revalidate();
                tabPane.repaint();
                if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) {
                    int index = tabPane.getSelectedIndex();
                    if (index < rects.length && index != -1) {
                        tabScroller.tabPanel.scrollRectToVisible(rects[index]);
        }Which is called when the selected tab changes. The member theScroller is a private inner class that handles the scrolling tabs. The call to scrollRectToVisible is executed for each of your new tabs. Sometimes when I stopped in the debugger and then continued things worked and your new tab scrolled into view.
    So I tried putting your code into a Runnable class and invoked it later:          final int newIndex = i;
              SwingUtilities.invokeLater (new Runnable ()  {
                   public void run ()  {
                        addTab(Integer.toString(newIndex), createDefaultPanel (newIndex));
                        getModel().setSelectedIndex(newIndex - 1);
              });But that did not work. That is as far as I got so far and I have to stop now. Perhaps this can inspire someone else to a solution.
    IL
    PS. I first tried Rammensee's solution and it did not work.
    Rammensee, you said you hoped you had it right - perhaps you are close.

  • Dynamic Visibility Function in TCA

    Hi,
    I have a requirement where I need to create couple of buttons using Extensions (Extensible Attributes) in Customers Online (similar to User Defined Attributes in Oracle Adavanced Product Catalog) . The problem I have is I need to make these buttons dynamically visible. Now we can make these buttons dynamically visible only by using User Defined Java Functions (as we can't use User Defined PL/Sql functions here!).
    I have found a sample code of this user defined java function from the knowledge base which is very simple and is given below. My problem is how can i make call to database pl/sql packages from within this java function (i.e. how to get the page context in my standalone java class?).
    I would really appreciate any help/suggestions on this.
    Java Code for user defined java function:
    public class XX_PARTY_SITE_Function
    public static oracle.apps.ego.common.EgoBoolean getVisible (StringBuffer theInput)
    try {
    if ("N".equals(theInput.toString())) {
    return (new oracle.apps.ego.common.EgoBoolean( new Boolean("True"))) ;
    } else {
    return (new oracle.apps.ego.common.EgoBoolean( new Boolean("False"))) ;
    catch ( NullPointerException e ) {
    return (new oracle.apps.ego.common.EgoBoolean( new Boolean("True"))) ;
    Thanks,
    Kamal

    hi
    use this example in your code
    import java.sql.CallableStatement;
    import java.sql.SQLException;
    import java.sql.Types;
    OADBTransaction txn = getDBTransaction();
    CallableStatement cs =
    txn.createCallableStatement("begin dbms_application_info.set_module(:1, :2);
    end;");
    try
    cs.setString(1, module);
    cs.setString(2, action);
    cs.execute();
    cs.close();
    catch (SQLException sqle)
    try { cs.close } catch (Exception(e) {}
    throw OAException.wrapperException(sqle);
    This example illustrates an OUT parameter:
    import java.sql.CallableStatement;
    import java.sql.SQLException;
    import java.sql.Types;
    import oracle.jdbc.driver.OracleCallableStatement;
    DBTransaction txn = getDBTransaction();
    String sql = "BEGIN :1 := FND_MESSAGE.GET; END;";
    CallableStatement cs = txn.createCallableStatement(sql, 1);
    String messageBuffer = "";
    try
    665
    ((OracleCallableStatement)cs.registerOutParameter(1, Types.VARCHAR, 0, 2000);
    cs.execute();
    messageBuffer = cs.getString(1);
    cs.close();
    catch (SQLException sqle)
    try { cs.close } catch (Exception(e) {}
    throw OAException.wrapperException(sqle);
    thanx
    Pratap

  • Dynamic Visibility Function in customers Online (TCA)

    Hi,
    I have a requirement where I need to create couple of buttons using Extensions (Extensible Attributes) in Customers Online (similar to User Defined Attributes in Oracle Adavanced Product Catalog) . The problem I have is I need to make these buttons dynamically visible. Now we can make these buttons dynamically visible only by using User Defined Java Functions (as we can't use User Defined PL/Sql functions here!).
    I have found a sample code of this user defined java function from the knowledge base which is very simple and is given below. My problem is how can i make call to database pl/sql packages from within this java function (i.e. how to get the page context in my standalone java class?).
    I would really appreciate any help/suggestions on this.
    Java Code for user defined java function:
    public class XX_PARTY_SITE_Function
    public static oracle.apps.ego.common.EgoBoolean getVisible (StringBuffer theInput)
    try {
    if ("N".equals(theInput.toString())) {
    return (new oracle.apps.ego.common.EgoBoolean( new Boolean("True"))) ;
    } else {
    return (new oracle.apps.ego.common.EgoBoolean( new Boolean("False"))) ;
    catch ( NullPointerException e ) {
    return (new oracle.apps.ego.common.EgoBoolean( new Boolean("True"))) ;
    Thanks,
    Kamal

    Hi,
    To make it more simpler, I've created a user-defined java function in Customers online and now I want to register a stand alone java class/method which will be used by the newly created user defined java function.
    The problem is that I wouldn't have any control over Page context or any such thing. In that case how will I be able to make database connection from my java class..?
    Thanks,
    Kamal

  • More bugs - Dynamic Visibility

    Post Author: Brian Gratigny
    CA Forum: Xcelsius and Live Office
    I have had non-stop problems with Xcelsius 2008.  The latest one is with dynamic visibility.  I can't change the existing cells dynamic visibility is referencing.  When I go in to change it, it won't update.  If I try to delete it our, it clears the cell reference but when I go back in, it comes right back.  This is unacceptable!  I have been working on this for hours.  Don't release a product if it is not ready. 

    True...
    Example:
    http://www.forumtopics.com/busobj/viewtopic.php?t=166072&highlight=dynamic+visibility

  • SQL Developer 4.0.0.13.80 only Access tab is visible in Connections

    I have installed this release carefully using the instructions provided, migrated my 4.0.0.12.84 setting, and it seems to work correctly.  However, when I go to add a Connection, only the Access tab is visible.  My existing connections which extensively use tnsnames.ora all work as expected but I cannot add or modify an existing Oracle DB connection (or anything other than Access).  I removed and repeated the install with the same results.  I have then completely removed the existing install, removed the settings folder in my roaming folder, uninstalled/reinstalled JDK 1.7.0_51, reinstalled 4.0.0.13.80 and NOT migrated settings to get to a virgin install; unfortunately, the same situation exists (even after mapping the tnsnames.ora file in the Database>Advanced setting location.  This is the eleventh release I have installed/used without this error, so I am looking for guidance in removing this roadblock from the community...any suggestions?

    I can reproduce my problem even after I switched SQL-Developer to English language by setting  "AddVMOption -Duser.language=en" in sqldeveloper.conf
    I'm using the 64-bit Version of SQL-Developer with JAVA 1.7.0_40. My OS is Windows 7, standard date format in SQL-Developer is "DD.MM.YYYY hh24:mi". I opened a simple table in an Oracle 11.2.0.3 database and tried to change a date value with the date picker from '01.01.2012 00:00' to '10.01.1975 00:00' but the result, that I got is '10.01.1974 00:00'!

Maybe you are looking for

  • Creative mp3 dmp2 recognised but no drive. Not availab

    Hey, Installed mp3 player software after connecting device. Found usb device correctly. Went to My Computer yet it isnt there. Using a LanParty NForce3 250. I have had troubles with the usb on this MB from day . Any ideas ... (tried un-installing mp3

  • Connectivity issues to PC and itunes after 3.1 update

    PC and Itunes doesnt recognise the iphone at all since i updated with 3.1. We have tried: * uninstalling itunes and reinstalled * stopped and restarted apple and ipod services (on PC) * Device manager didnt recognise it as a iphone * forced start up

  • Transferring backup from Time Capsule to external HD?

    Have had many headaches with trying to use Time Capsule wirelessly for backups and also as a router for internet connectivity. Finally decided to invest in an external HD with 3T of capacity. It is a 'plug and play' unit, already GUID partitioned and

  • Background job spool is not generated

    Hi Guys, I am facing the problem with when i execute the program in background,spool is not generated. if execute it in foreground output is displaying. Please help me on this issue. Thanks, Bala

  • How do I stop my iPad2 from shutting off and on repeatedly while charging?

    I need help trying to get my iPad2 working again. It doesn't want to stop turning off and on. I would like to know how I can fix this problem. Any suggestions will be greatly appreciated.