Display collection ArrayCollection in a list and the ArrayCollection with Drag and Drop collection reorgnize

I have an ArrayCollection collection created like this

qaAC = new ArrayCollection();

for (var i: int = 0; i < 10; ++ i) {}
var o: Object = {question: ' what is "+ i +"? ", answer:" it's "+ i"};
qaAC.addItem (o);
}

The ArrayCollection collection is an array of object that has properties "question" and "answer to" custimized.

I want to put 'issues' in the ArrayCollection collection in a list. 'qaAC.question' does not return an array of questions for me.

I have to extract the ArrayCollection collection to form a new String table, and use the new array as the dataProvider of the list of questions.

Is there a way better and clean?

My goal is to use a list to reorgnize an ArrayCollection collection that contains complex objects (not simple string) with Drag & Drop. Is this possible?

Any suggestions?

I put two lists in my example to show how the ArrayCollection collection could be displayed in two different ways. You don't have to have two lists if you do not need them.

When you change the order of the list made with drag and drop, you change the order of the collection ArrayCollection qaAC, so all the controls that display the qaAC will also be updated to reflect the new order. You can test this in the example I posted earlier. Change the order in the list of question and you will see the order change also in the list of responses. This is because they are both bound to the same collection of ArrayCollection. If you want to behave independently, you need two separate ArrayCollections.

Chris

Tags: Flex

Similar Questions

  • Turbo Tax CD setup.exe file not available in Explorer. CD is listed in the Explorer with an Apple on the drive.

    My Turbo Tax CD does not start automatically with the initial insertion in the CD player.  The CD is listed in the Explorer with an Apple on the drive.  The Explorer does not list the file setup.exe on the CD.  However, he lists a few other folders.  I use Vista to try to load the CD.  The CD does very well on my XP computer.  Is there a problem with Vista with the CD that are for MAC and Windows PC?

    Hi Undertaker Farmer,

     

    Welcome to Microsoft Answers Forums.

    • You get the error message?
    • What is the edition of Windows vista installed on the computer?

    TurboTax is a non-Microsoft program and we are not trained in this regard. However I will try my best to help you. Please, follow these tips and see if it works.

    As a work around you perhaps activate the AutoPlay for the CD and check if the auto play works.

    When you turn automatic playback, you can choose what should happen when you insert different types of digital media into your computer. For example, you can choose what digital media player is used to play CDs. When AutoPlay is disabled, you are prompted to choose what you want to do when you insert media files in your computer.

    1. Open AutoPlay by clicking the Start button, clicking Control Panel, on material and audioand then click AutoPlay.
    2. Do one of the following:
      • To turn AutoPlay on, select the Use AutoPlay for all media and devices check box.
      • To turn AutoPlay off, clear the Use AutoPlay for all media and devices check box.
    3. Click Save.

    You can also try to copy all the contents of the CD to the hard drive and try to install and check.

    You can also try to run the file Setup from the command prompt and check what is happening.

    Click Start and type cmd and press enter in the command prompt window type the following command : \setup.exe and press ENTER.

    See also the link below for the site of TurboTax on the requirements and check if your computer meets the condition.

    TurboTax 2008 system requirements

    http://TurboTax.Intuit.com/support/kb/installing/system-requirements/6389.html

    If fail steps above I would suggest that you contact TurboTax support for more options, see the link below.

    http://community.Intuit.com/QuickBooks

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to group and summarize the values with a vertical drop of 100?

    Dear gurus
    How to group and summarize the values with a vertical drop of 100 as the data indicated below:

    Cas_Cod_ Cas_Amt_ Description
    300 1000A
    301 200 B
    302 350 C
    400 500 A
    401 100 B
    402 25

    Now the data should be grouped like this
    A (300,400) = 1500
    (301,401) B = 300
    C (302,402) = 375

    Make sure that I don't have a column as description in my table to group data on description, its here just to give u an example.

    Hello

    using mod for hundreds:

    with x as
    (
      select 300 code, 1000 amt, 'A' descr from dual union all
      select 301 code, 200 amt, 'B' descr from dual union all
      select 302 code, 350 amt, 'C' descr from dual union all
      select 400 code, 500 amt, 'A' descr from dual union all
      select 401 code, 100 amt, 'B' descr from dual union all
      select 402 code, 25 amt, 'C' descr from dual
      )
       select mod(code,100) code, sum (amt)
        from x
       group by mod(code,100);
    

    Using the mod you get the rest of a division, so mod (300,100) = 0, mod (301,100) = 1, etc.

    Herald tiomela
    http://htendam.WordPress.com

  • The show with drag and drop in Captivate 9

    Hello

    I am creating a drag and drop interactivity 9 Captivate. In step 3, when I had to drag the objects from the source to the drop target, all objects in the screen were locked. I couldn't click as well as she was listed on the timeline . Please suggest.

    Using the wizard or the D & D Panel? Is this normal or a receptive

    of the project? You are on Mac or Win.

    For the wizard: .you should see a center point on each source of drag.

    You must drag a line from this central point to the drop target. You did

    create a type?

  • How can I set up a list of the Figures with the extra text?

    I am writing my thesis Art History, which includes a large group of figures at the end.  My Counsellor asked that I caption images, but also provide a list of Figures before starting the actual pictures.  I got this far - I use the Table of contents feature for automatically numbered captions and then back up the text of the legend to the list of Figures.

    Here's the rub: I need to include information on where I got the pictures I use attribution, but only in the list of figures.  My Adviser has specifically requested that I don't include this information in the captions as he felt that it cluttering up the images.  How can I include small amounts of text (for example "after Jones 1987, Fig. 22") for hundreds of images in the list of Figures without putting this info in the legends themselves?

    Of course, just by typing the information in the list Figures does not - as soon as the list is updated the extra text is deleted.  I've been playing with the hidden layers, but when I create a new layer mask with blocks of text, the numbering of the original layer is disrupted.  Any ideas on how to keep numbers and include additional information in the list of Figures without adding it to the visible caption? I would be very grateful for any help.

    Maybe at the end of your legend, in a [None] color text, 0.1 pt size? Do not put in a separate paragraph, because you have to pick this up as well for your table of contents. To change this little invisible text, you can use the story editor.

    (And I'm far enough, which suggests making it conditional text, that you would normally hide, have it show only when you generated the list of Figures, before some awake dormant brain cells and required attention.)

    "Course it would work - you would get the extra text in your list, and if you hide conditional text once again, your document is reversed 'normal' State." However, what makes the conditional text visible can cause your text reformattingand so your regular content would be nice but the list of Figures - generated with more text in your document! -could be shifted a few pages...)

  • How to rotate the movieclip with drag and drop?

    Hello everyone,

    I work with drag and drop game.

    I'm done with drag and drop. now, I have problem in totating the movieclip.

    I want video clip rotate using the mouse. Do not use the click mouse. !!!

    Can someone give me a solution for this?

    var isDrageen:Boolean;

    var lastX:Number;

    var derriГЁre: Number;

    var dragX:Number;

    var dragY:Number;

    stage.addEventListener (MouseEvent.MOUSE_DOWN, down);

    stage.addEventListener (MouseEvent.MOUSE_UP, up);

    stage.addEventListener (MouseEvent.MOUSE_MOVE, mov);

    function down(e:MouseEvent):void {}

    isDrageen = true;

    lastX = mouseX;

    derriГЁre = mouseY;

    }

    function up(e:MouseEvent):void {}

    isDrageen = false

    }

    function mov(e:MouseEvent):void {}

    {if (isDrageen)}

    dragX = mouseX-lastX;

    dragY = mouseY-derriГЁre;

    MC.rotationY += dragX/1.65;

    MC.rotationX += dragY/1.65;

    lastX = mouseX;

    derriГЁre = mouseY;

    }

    }

  • FlashBuilder - how to move the code with drag and drop

    Guys, I must be stupid. Each IDE I worked in allows me to highlight one or more lines of code, and then, when I mouse over the highlighted lines, updates of the cursor to indicate that I can now drag the code, and it moves when I click and drag.

    FlashBuilder (burrito) does not seem to exhibit this feature, but if I hold down the CTRL I do not copy the code via drag and drop.

    There has been one or two occasions where the drag-and - déposer worked, but I can't understand, or reproduce these conditions.

    Can anyone help?

    Thank you

    T

    It should work in Flash Builder, but you are right, that feedback cursor is not very good because it is not updated to show that any sort of slider. Try selecting the text, then click and hold for about a second before you drag it to a new location. If it still does not work for you it must be another problem. Make sure that in preferences, general-> editors-> text editors "Enable drag and drop of text" is turned on.

  • Success and failure with Drag 'n Drop

    Drag n Drop works quite well, but I cannot understand how "Display success - failure - index" in this interaction

    Drop n Drag - Actions - I checked the legend of failure that works well. Also cancel and reset buttons work well.

    Impossible to get a button of success who says well done continue.

    The best I've done is 'Success here Type text' box appear in the presentation when you click on the page - to any random combination.

    Anyone had success or advice how to combine the button quiz success in drag n drop?

    appreciate advice

    Captivate 8 (new user)

    Check: advice & glide - Captivate blog

  • Progress based on the list of the folder with multiple files in a folder

    I use the function list folder of LabVIEW and want to see progress, because it takes a long time (20 seconds) to load all the files in an array.

    How can I do this?

    See ListFolder exemple.jpg

    Regards Ben Arts

    Ben Arts wrote:

    I showed a small image is everything to do the job.

    There are about 3000 files and the file is a server.

    Well, who would certainly do, as much as you said that it is on a server, so a network drive.

    In this case, I was looking for a progress for the folder in the list to use it in an indicator of progress for the user.

    Unfortunately, there is no mechanism for it. Maybe you can organize the files so that you can get a list of them in 'chunks', based on a search pattern. Or perhaps you can organize them into folders so that you dynamically fill subfolders when a user wants to see what is inside.

    Cancellation: having 3000 + files in a folder is a bad way to orgranize files, especially on a server, as leading to a huge amount of e/s files and network I/O on the server load.

  • List of the HorizontalFieldManager with scrolling focus problem

    Hello

    I'm doing a vertical list of horizontalfieldmanager with an icon and two text fields, but I'm having a problem when scrolling it. I used a nullField to manage focus. When I scroll to the top everything works well, but when I Ahmed to the bottom of the item appears on the edge of the screen.

    I guess that I did not understand how to manage the focusChange metodh and the metodh of the painting.

    All advice will be appreciated.

    Thank you, Andrea.

    //
        // Main screen for the application
        //
        private class MyMainScreen extends MainScreen
        {
            public MyMainScreen()
            {
                super(Manager.USE_ALL_WIDTH);
    
                for (int i = 0; i<20; i++) this.getMainManager().add(new PanelRow("off", "first text line", "second text line"));
            }
    
            private class PanelRow extends HorizontalFieldManager implements FocusChangeListener
            {
                private NullField nullField;
                private BitmapField icon;
                private ColorLabelField label1;
                private ColorLabelField label2;
    
                public PanelRow(String iconString, String label1String, String label2String)
                {
                    super(Manager.USE_ALL_WIDTH);
    
                    // Add null field
                    nullField = new NullField(NullField.FOCUSABLE);
                    nullField.setFocusListener(this);
                    super.add(nullField);
    
                    // Add bitmap
                    Bitmap offIcon = Bitmap.getBitmapResource("offButton.png");
                    icon = new BitmapField(offIcon, BitmapField.NON_FOCUSABLE | BitmapField.FIELD_LEFT);
                    super.add(icon);
    
                    // Add first and second text lines
                    VerticalFieldManager labelsVerticalManager = new VerticalFieldManager();
                    label1 = new ColorLabelField(label1String, LabelField.NON_FOCUSABLE | LabelField.FIELD_LEFT);
                    label2 = new ColorLabelField(label2String, LabelField.NON_FOCUSABLE | LabelField.FIELD_LEFT);
                    labelsVerticalManager.add(label1);
                    labelsVerticalManager.add(label2);
                    super.add(labelsVerticalManager);
                }
    
                public void focusChanged(Field field, int eventType)
                {
                    invalidate();
                }
    
                protected boolean navigationClick(int status, int time)
                {
                    fieldChangeNotify(FieldChangeListener.PROGRAMMATIC);
    
                    return true;
                }
    
                protected void paint(Graphics g)
                {
                    int oldBackground = g.getBackgroundColor();
    
                    if (nullField.isFocus())
                    {
                        g.setBackgroundColor(Color.CADETBLUE);
    
                        label1.setFontColor(Color.WHITE);
                        label2.setFontColor(Color.WHITE);
                    }
                    else
                    {
                        g.setBackgroundColor(Color.WHITE);
    
                        label1.setFontColor(Color.SLATEGRAY);
                        label2.setFontColor(Color.BLACK);
                    }
    
                    g.clear();
    
                    g.setBackgroundColor(oldBackground);
    
                    super.paint(g);
                }
            }
    
            //
            // Define a new colored labelfield class
            //
            public class ColorLabelField extends LabelField
            {
                public ColorLabelField(Object text, long style)
                {
                    super(text, style);
                }
    
                private int mFontColor = -1;
    
                public void setFontColor(int fontColor)
                {
                    mFontColor = fontColor;
                }
    
                protected void paint(Graphics graphics)
                {
                    if (-1 != mFontColor) graphics.setColor(mFontColor);
    
                    super.paint(graphics);
                }
            }
        }
    

    Then try to create your NullField with getFocusRect override: like this:

    nullField = new NullField(NullField.FOCUSABLE) {
      public void getFocusRect(XYRect rect) {
        getManager.getExtent(rect);
        rect.setLocation(0, 0);
      }
    };
    

    Paint won't help you - you must tell the system to the entire span developed in order to scroll properly. If the above fails, analyze your focusChanged eventType and make sure that your Manager is fully visible on the screen on FOCUS_GAINED. To do this, you need to use getManager () .getVerticalScroll () / getManager () .setVerticalScroll () as well as of your Manager and getHeight() getTop().

  • How to list all the vm with more than one network card?

    Hello

    Is it possible to only list all my s vm in my environment with more than one network card?

    I tried using the Get-NetowrkAdapter cmdlet, but could not get the desired results.

    Get - VM | Get-NetworkAdapter | Select-Object Name. ConvertTo-HTML-head $a - body "Virtual Machines < H2 > < / H2 > ' | Out-file D:\vms.htm

    Thank you

    Hello, AGFlora-

    Of course, you can do this with the standard as cmdlets:

    ## using standard cmdletsGet-VM | Select Name, @{n="NumNICs"; e={(Get-NetworkAdapter -VM $_ | Measure-Object).Count}} | ?{$_.NumNICs -gt 1}
    

    Or, if you want to get the results a little (or a lot) more quickly, you can use the cmdlet Get-view as:

    ## fast-like, using Get-ViewGet-View -ViewType VirtualMachine -Property Name,Config.Hardware.Device | Select Name,@{n="NumNICs"; e={($_.Config.Hardware.Device | ?{$_ -is [VMware.Vim.VirtualEthernetCard]} | Measure-Object).Count}} | ?{$_.NumNICs -gt 1}
    

    Those are both by selecting the names of virtual machines and their number of network cards.  Then you can direct this output to Export-Csv, ConvertTo-HTML, what you like.  What to do for you?

  • Fill the drop-down list on the field with records DB

    Hello world

    I have a form that I created that collect address information and I would like to have the STATE field automatically filled from a DB field. Then I would that this choice in the field of State registration of users. Can someone suggest a good way for me to do this. I am DW3 with PHP and a mySQL DB.

    Thank you
    Robert

    ryonker wrote:
    > I have a form that I created that collect address information and I
    > would like to have the STATE field automatically filled from a DB field.
    > Then I would that this choice in the domain of the State for users
    > record.

    Create a recordset that contains the names of the States. Then insert a
    in your form menu item, and then click the Dynamic button in the property
    Inspector. Choose the set of records in the recordset field Options, and
    Then select the fields of the recordset that you want to use for the labels and values.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • How to list all the vm with a snapshot?

    Hi, I need to have an overview of all the my virtual machine using a snapshot.

    Is there a function / script to receive all the days of the information by mail, for example?

    Concerning

    You can see Alan Renouf vCheck daily report using PowerCLI, vSphere SDK for Perl solution looking for, take a look: VMware vSphere Health Check Report v5.1.0

    The two will provide you with information about snapshots in your environment, Alan script, it's more than a daily report you are looking for and it email

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    150 VMware developer

    If you find this information useful, please give points to "correct" or "useful".

  • Fill the form with JS data; drop-down list

    Looking for a way to have a drop of water to the bottom of the people or companies. When you select a company in the city, State, etc. the indo will automatically fill text boxes. What is my best options to go about this?

    I tried to use this http://acrobatusers.com/tutorials/js_list_combo_livecycle1 and change the code to make it work for what Im tryign to do, but without success.

    Any help would be great. Thank you.

    Here is a link to a sample form that behaves this way: https://workspaces.acrobat.com/?d=gZNDS8dQQNqvwocUufXHNQ

    The script control is in the case of the hit of the combo box. Pay attention to how the combo box is put in place, including the value of exports of each element. If you have any questions, post again.

  • What is the PROBLEM with Acrobat (randomly drops text)

    I'm at the end of my rope

    with Acrobat CS3. He distills randomly my specifications with all para

    graphs are missing here and there. Sometimes I can restart and get all of the document to print, but once again today, I have a contract which

    not print completely even after a reboot of the entire system.

    Trying to distill in Word 2003. Short documents on a page are generally good, even if I had problems with a few lines of text missing on invoices that I print on Excel. But this 5-page contract gives me headaches... I'll have to resort to printing and scanning the doc from back in the distillation in the form of a chart in PDF format, or copy and paste all in QuarkXpress, which has a PDF Distiller that is 100% reliable. I wish I could use THAT Distiller with Word! I can't stand it. Why Acrobat distiller cannot distill with reliable documents? A contract is a serious thing... missing paragraphs can mean serious legal trouble!

    I need an alternative, unless there is a fix for this problem.

    Mark, it could be that you need to install the MS Hotfix listed here:

    http://support.Microsoft.com/kb/952909/en-us

Maybe you are looking for

  • Physical &amp; motor setting in the field of accessibility settings

    I have an iPhone 6 running IOS 9.3.2.  I would like to answer my calls automatically via the speaker, but I am unable to access the engine parameters and physical space.  I navigate to settings > general > accessibility > and then try to scroll throu

  • HP 15-ac025tx: Please help to find the right driver for Wi - Fi and Bluetooth

    HP 15-ac025tx MODEL: M9V00PA #ACJ OS: Windows 7 (64-bit) Hello Would you be able to help with the link to the drivers for my laptop model mentioned above. 1 WiFi 2 Bluetooth 3. the screen These are the elements located in the exclamation point (!) in

  • DDR3 memory (s) chip

    I am awaiting delivery of a new office of h8 - 11520t want the chip generation with third i 7. It comes with a chip memory 8 gb DDR3 1600 MHz. I have read that the DDR3 memory is two memory channels and only works using both channels if the chips of

  • [Error number: 0x8002802B]

    [Error number: 0x8002802B]I get this error when you try to search the new Windows Update (after hitting the express button) I still use XP prof and these errors are just beginning to appear around the same time early Windows 7 deployment of!Any ideas

  • HP Pavilion Entertainment dv6 1355dx PC

    I had problems with lag in online games. I want to know if I can update my video card. Currently I have 'Mobile Intel (r) 4 Series Express Chipset Family', ' display memory: 1695 MB ', ' dedicated memory: 64 MB ', ' Shared Memory: 1631 MB. If so, wha