How the component display dynamically different ViewStack without using State?

I have a column type in a datagrid folder when type = is, I want to display A ViewStack, when type = B, I want to display ViewStack B, can any body give me some clue? sample code is the best. Thank you very much. BTW, I don't want to use them for State fight, because the both of ViewStacks are already in the same State of the application.

Hello

You can try something like this...

David.

http://www.Adobe.com/2006/mxml"layout ="absolute"minWidth ="955"="600"minHeight >

Import mx.collections.ArrayCollection;

Import mx.events.ListEvent;

[Bindable] private var arr:ArrayCollection = new ArrayCollection([)

{info: ' form 1 ',: 'A'},

{info: type 'record 2': 'B'},

{info: type 'record 3': 'A'},

{info: type 'record 4': 'B'}

]);

protected function dg_changeHandler(event:ListEvent):void

{

If (arr [dg.selectedIndex] .Guy == "A") tn1.visible = true else tn1.visible = false;

TN2.visible =! tn1.visible;

}

]]>

Tags: Flex

Similar Questions

  • How can I display an email address without opening the email?

    How can I display an email address without opening the email?  I want to know who sent me spam so I can block it without opening the email.

    There is no danger at the opening of the long spam email that you do not click on any links in the email.

  • How can I delete a file on my iOS device that I downloaded from my iCloud? I just want to keep the Preview on my iOS device without using my storage iOS for the entire file.

    How can I delete a file on my iOS device that I downloaded from my iCloud? I just want to keep the Preview on my iOS device without using my storage iOS for the entire file. This means that the file is still in the iCloud and available to be downloaded to any device.

    In practice, I want to be able to scan and download through my documents located in my iCloud and once I didn't need them on my iOS device I would like 'load their return to the cloud' to my storage of the iOS device is not used.

    Thank you in advance to the community!

    Max

    The only way I found to do that once a file has been downloaded is to remove it and add it again through either from Finder on Mac or iCloud.com.

  • Receive message "Please wait while windows configures the status" and then "the component that you are trying to use is on a CD Rom, please insert". I don't have the CD. How can I stop this?

    Windows Setup status

    Whenever I start my computer, I get a series of pop-up boxes that talk about "Please wait while windows configures the State" and then the one that says "the component that you are trying to use is on a CD Rom, please insert".  I have no idea what it is, and I have no disc to put on this line?  If I hit the buttons cancel these boxes enough times to go, but it's annoying and there is notihing badly with the operation of the computer, after I get rid of the boxes.  No idea how to stop this from happening again?  I did all the steps that have been mentioned earlier and no results.  I even did a system recovery.  I don't know what to delete.  Please help thanks

    Hello

    These messages usually mean that you have a problem with the HP printing software

    Contact HP

    http://welcome.HP.com/country/us/en/contact_us.html

    Contact HP options at the link above.

    http://h30434.www3.HP.com/

    HP's Support Forums at the link above.

  • How to increase the size of our C drive of 40 GB to 100 GB and the rest as logical drive D without using any third party tool, it is possible in the environment of windows 7 ent

    My dear, we are usning a custom image for our environment with win 7 ent deployed for all our computer network, in our customization take us C 40 GB and D drive 425GB space now, we are facing problem with the most complete C drive we had to move, and increasing the size of our disk of 40 GB to 100 GB and the rest as logical drive D without using any tool from third party , it is possible in windows 7 environment ent if so how please send procedure

    Original title: move/resize

    You will have to go on Support of Windows 7 forums on the following link to help solve your problem: http://social.technet.microsoft.com/Forums/en/category/w7itpro/

  • How the default display is defined when retrieving data with excel.

    Is someone can please tell me how the default display is planned while recovering data using excel add-in I have 7 dimensions, 3 4 dense sparse, whenever I connect to essbase server and retrieve the data is indicated in the top level. Where to set this point of view, we can change it. Sorry if I asked something stupid.

    Thank you.

    Not a silly question at all, but there is nothing you can do about it. The Excel Add-In to this view by default, and there is no way to specify otherwise. You could keep a sheet of 'model' and copy these selections to each recovery again, but it would be a little awkward.

    You will probably get enough fast to type in your favorite settings by default, unless your plan contains difficult to remember or very long names and aliases. :)

  • Help with service pack 3 to install - "" the component that you are trying to use is on a CD-ROM... "."

    original title: help with service pack 3 installation

    I get the message to update and install service pack 3, but every time I try it can not be installed. "the component that you are trying to use is on a CD-ROM or removable disk that is not in vain. Insert the microsoft excel 2002 disc, and then click ok' I have no disk, what do I do

    Hello

    Try to install the stand-alone version of the Service Pack by this link:

    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=24

  • How to make the table display dynamically in jquery mobile

    Hello

    can you please tell me how to do table display dynamically in jquery mobile. ?

    Please give a few example

    Hi Q3test,

    Check this link below
    http://hippieitgeek.blogspot.se/2013/01/creating-dynamic-tables-with-jQuery.html

    Hope this will help you.

  • How to print the current display (or frame) at runtime using flash Actionscript

    Hello

    In my project, I need to add a button to print. When I press that button, I need to print the current display (or frame).

    Any body knows how...

    Thanks in advance,

    ayathas

    Use the printjob class.  in particular, you can use its methods start(), addPage() and send().

  • How to create new worksheet in excel without using report generation tools

    Hello

    Im trying to create a file with 8 spreadsheet excel. I am currently using scripture to the worksheet of the vi for that file. But how to create multiple worksheets in an excel file without using the report generation toolkit module of the OR?

    Concerning

    Jay

    Hello

    You can use the nodes property with the class selected as Activex Excel and create all the tools to Excel. See the attached example.

    Kind regards
    Constant

    (Bravo to give good answers, mark it as a Solution If your problem is resolved)

  • Error: the component that you are trying to use is on a network resource that is unavailable when you try to uninstall Corel windvd 2010

    How do we uninstall corel win dvd 2010... its saying the component you are trying to use is on a resource network that is not available

    Hello

    1. Why do you want to uninstall corel windvd 2010?
    2. what exactly is the problem you are experiencing on the computer?
    3. what happens when you try to uninstall windvd 2010?

    If you are facing any problem with uninstalling then you can run the fix it and check.
    http://support.Microsoft.com/mats/Program_Install_and_Uninstall/

    You can also try the steps from the link uninstall corel dvd and check.
    http://Corel.force.com/index/articles/en_US/Master_Article/764253-how-to-manually-remove-Corel-WinDVD-2010-standard-or-Pro
    Note: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base. How to back up and restore the registry in Windows:
    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

    Provide us more information for you to help.

  • How to configure NTP between Virtual Machines without using Vsphere Client

    I have a group of 8 virtual servers of 5.5 ESXi without an Internet connection. There are virtual machines on each of these 8 virtual servers.

    I did one of these 5.5 virtual ESXi host a NTP server by editing the file /etc/ntp.conf with below configuration and

    started the ntpd daemon. He began to take the time to its local clock, here's the output of ntpq Pei

    IP server 10.108.190.14

    ip address of the client 10.108.190.15

    Server /etc/ntp.conf

    > > driftfile/var/lib/ntp/drift

    > > server 127.127.1.0 maxpoll 4

    > > fondant 127.127.1.0 stratum 10

    | ntpq Pei

    |   refid distance st t when poll reach delay offset jitter

    | ==============================================================
    | * LOCAL (0). LIUX. 10 l 2 64 377 0.000 0.000 0.001

    Then I edited the file /etc/ntp.conf on customers with below configuration but the customer would not synchronize with the server. He

    wouldn t get response from the server. Here is the output of ntpq Pei

    Customer /etc/ntp.conf

    > > driftfile/var/lib/ntp/drift

    > > server 10.108.190.14 iburst

    | ntpq Pei

    |      refid distance st t when poll reach delay offset jitter

    | ==================================================================
    | 10.108.190.14 INIT. 16 u

    Now, when I configure NPT Client/Server on virtual machines through the Configuration Option under Option Configuration time

    in Vsphere Client everything works fine and the client and the server to synchronize with each other. I checked the file /etc/ntp.conf on both the client

    and the server and it has a couple of restrict 127.0.0.1 and restrict the lines added by default kod nomodify etc.

    So why NPT Server featured when enabled via Vsphere Client works very well, but it does not work when it is configured manually

    in the virtual servers directly.

    I was connected to a vCenter Server Appliance through the VSphere Client and enabled the synchronization of time of the NPT.

    I really need to know how to configure the NTP server without using the Vsphere Client so that I can automate the

    task by writing a python script that would connect to each virtual server and NTP Client/Server configuration.

    Any help in this issue deeply appreciated!

    Thank you!

    You can configure the ntp server without using viclient.

    Take a look @ http://kb.vmware.com/selfservice/documentLinkInt.do?micrositeID=&popup=true&languageId=&externalID=1003063

    Hope this helps

    -Assane

  • How to access the id of the component from a different mxml?

    I tried to put the data in a DataGrid control to a different mxml, but the compiler said that there is a problem, like this:

    the components/FileDataGrid.mxml:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" 
         xmlns:s="library://ns.adobe.com/flex/spark" 
         xmlns:mx="library://ns.adobe.com/flex/mx" >
    
        <mx:DataGrid x="150" y="50" id="dgFile">       <mx:columns>
             <mx:DataGridColumn headerText="COL"/>
           </mx:columns>
        </mx:DataGrid>
     
    </s:Group>
    
    

    the main mxml:

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
              xmlns:s="library://ns.adobe.com/flex/spark" 
              xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
              xmlns:custom="components.*" layout="absolute">
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         
         <fx:Script>
              <![CDATA[
                   
                   private function loadDG():void
                   {
                        var arrFile:Array= new Array("abc","123");
                        
                        dgFile.dataProvider = arrFile;
                        
                        trace( "The data has successfully loaded" );
                   }
    
              ]]>
         </fx:Script>
         
         <s:Button  x="300" y="50" label="Load"  click="loadDG()" />
    
         <custom:FileDataGrid/>
    
    </mx:Application>
    

    The compile error is:

    Several markers to this line:
    -1120: access of undefined property dgFile.
    -arrFile

    Can someone tell me, how?

    Thank you very much!

    Hi, you cannot access it. To access, first give the id for the custom component that you have added.

    That is to say

    
    

    Then you can view this script,

    custFDG.dgFile.dataProvider = arrFile;
    

    Hope this work shud very well.

    Thank you.

    -

    Afonso

  • How the conditional tags can be viewed without installed RH?

    Hello

    I use RH9 to create chm HTML Help files. I have two tags conditional configuration. Everything works fine to build the chm. I would like to somehow show the content of each conditional tag.  This isn't a problem for someone who has RH9 you can go to the reports to see the topics that are associated with each tag and then display the topic that presents the text associated with a tag.

    However, if a manager needs to review that which accompanies each tag but isn't RH9, how I would give them something that shows them the content that goes with each tag?  Which gives them 2 different chm files to compare it won't because there is just too happy to determine the differences.

    Thank you

    John

    Good, a few thoughts...

    For the tags applied to all subjects, you could create a set of frameworks that would allow the two subjects to be displayed simultaneously. Each side-by-side or up and down. Which could allow an easy comparison.

    And I thought that for content, you could code the text color. But it would probably be a little a lot of work. My thought was that you could create and apply styles that cause the color coding to occur. Only set them in a sheet of unique style that would apply only to generate the file CHM 'review '. Then, you must use the original style sheet required during the generation of the final output.

    See you soon... Rick

  • How the data displayed parced

    OK, Im having a bit of trouble getting the data to display in labview. I like to read from a string of succession of data which is delimeted with «,» It works fine and I can get out to the token stringn. After 7 "blocks" of data, it will start to repeat themselves. How can I get that it displays each of these 7 chuncks of data, then on the next loop them refersh.

    That's all I have for now

    If I understand the problem, you have a string that has a number of embedded commas, and you want an array of strings corresponding to the 'things' between each comma.  Your reference to 7 'chunks' might suggest that each VISA read will return a string of the form x 1, x 2, x 3, x 4, x 5, x 6, x 7 (7 points, commas 6), but this solution does not how 'chunks', just that they are separated by commas.

    It uses regular expression matching function, with the comma as the regular Expression.  This VI basically splits the string into two parts, everything before the comma (the upper exit, highlighted as an element of array) and everything (number less than forecasts, put on a shift made through new register).  Each time through the while loop pull on another element, by adding to the matrix.  When nothing is left, the loop stops.

    Examine the three odd cases - string with no comma (get a table of 1 item with the full, correct string), string starting with a comma (get an array whose first element is an empty string, correct), string 1 element, ending (or not) with a comma (get a table to correct 1 item).

    Enjoy.

    BS

Maybe you are looking for