3 Replies Latest reply on Mar 29, 2010 11:51 AM by GeorgeWS

    Tabs and ADG data

    GeorgeWS Level 1

      I have 3 tabs each tab has a ADG, when a tab is pressed I load the data from a RO. When my app starts I load the first tab with data, works great. when I press on the next tab the ADG shows but does not show the data, if I tab away then back on the data loads. I know the data loads the first time it just does not show.

       

      I even tried to refresh in the tabChange event. but no go

       

       

      Any Thoughts?

       

      George

        • 1. Re: Tabs and ADG data
          GeorgeWS Level 1

          Arg, I have been at this for days (as usual) I have tried all kinds of things. There are so many bugs in the flex components its crazy. I just want to tab to another part of my app and the data to display. Pressing a tab and seeing nothing is no good. And telling someone "oh yeah just press the previous tab and then press the tab you want again to show the data", not acceptable. Has anyone else delt with this? I have tried mesisng with the:

          creationPolicy, refresh(), validateNow(), callLater() nothing works. I know the data is there because I diplay the record length below the ADG on each tab and it shows the proper count. This is what gets called when a tab is pressed:

           

          private function onTabChanged(event:IndexChangedEvent):void

          {

          switch(event.newIndex)

          {

          case 0:

           

          myStates = "YY";

          brandfilter.includeInLayout = true;

          brandfilter.visible = true;

          brandfilter2.includeInLayout = false;

          brandfilter2.visible = false;

          brandfilter3.includeInLayout = false;

          brandfilter3.visible = false;

          rc.includeInLayout = true;

          rc.visible = true;

          rc2.includeInLayout = false;

          rc2.visible = false;

          rc3.includeInLayout = false;

          rc3.visible = false;

          NS.includeInLayout = true;

          NS.visible = true;

          NS2.includeInLayout = false;

          NS2.visible = false;

          NS3.includeInLayout = false;

          NS3.visible = false;

          myArea = NS.selectedItem.data;

          qDep.Dep(SupplierID, BrandID);

          Brands.Brands.send();

          gc.refresh();

           

          break;

          case 1:

          myStates = "BL";

          brandfilter.includeInLayout = false;

          brandfilter.visible = false;

          brandfilter2.includeInLayout = true;

          brandfilter2.visible = true;

          brandfilter3.includeInLayout = false;

          brandfilter3.visible = false;

          rc.includeInLayout = false;

          rc.visible = false;

          rc2.includeInLayout = true;

          rc2.visible = true;

          rc3.includeInLayout = false;

          rc3.visible = false;

          NS.includeInLayout = false;

          NS.visible = false;

          NS2.includeInLayout = true;

          NS2.visible = true;

          NS3.includeInLayout = false;

          NS3.visible = false;

          myArea = NS2.selectedItem.data;

          qDep2.Dep2(SupplierID, BrandID);

          Brands2.Brands2.send();

          gc2.refresh();

           

          break;

          case 2:

          myStates = "YA";

          brandfilter.includeInLayout = false;

          brandfilter.visible = false;

          brandfilter2.includeInLayout = false;

          brandfilter2.visible = false;

          brandfilter3.includeInLayout = true;

          brandfilter3.visible = true;

          rc.includeInLayout = false;

          rc.visible = false;

          rc2.includeInLayout = false;

          rc2.visible = false;

          rc3.includeInLayout = true;

          rc3.visible = true;

          NS.includeInLayout = false;

          NS.visible = false;

          NS2.includeInLayout = false;

          NS2.visible = false;

          NS3.includeInLayout = true;

          NS3.visible = true;

          myArea = NS3.selectedItem.data;

          qDep3.Dep3(SupplierID, BrandID);

          Brands3.Brands3.send();

          gc3.refresh();

           

          break;

          }

          }

          • 2. Re: Tabs and ADG data
            GeorgeWS Level 1

            I still have not found a solution for this.

            • 3. Re: Tabs and ADG data
              GeorgeWS Level 1

              Wow nobody knows anything about this. I have been at this for weeks and am conviced that the TabNavigator has bugs. I also found that you cannot use the camera inside a tabNavigator even thought this is unrelated its been a problem for me.

              Why would the tabs work fine if I press on a different tab then back to the desired tab and then it works fine. Its as if the first time you press a tab it does not show the data; press another tab then back and... perfect. Sorry for the many posts but its becoming a huge issue.