DataGrid editable programmaticaly built XmlListCollection need help

Hi, I am trying to build an editable datagrid with 20 empty lines in it. Users will fill the cells, then gets stored in a database, and then later by making selections in a combobox control, they can bring back these data for viewing and modification. I tried to create the XML dynamically, and then on the XmlListCollection addItem does not. Can someone please indicate where I'm wrong? Thank you!

[Bindable] private var teamGridDataAsXml:XML;
[Bindable] private var teamGridData:XMLListCollection;

private function initEmptyTeamGrid (): void {}

teamGridData = new XMLListCollection();
var s:String = '< lines > ';
for (var i: int = 0; i < 20; i ++) {}
s += ' < row rowIndex =------"" "+ i +" \ "agentId =" firstName = "lastName =" country = "/ >";
}
s += ' < / ranks > ';

teamGridDataAsXml = new XML (s);
teamGridData.addItem (teamGridDataAsXml);

}

< mx:DataGrid id = "agentInfo" editable = "true" dataProvider = "{teamGridData}" width = "100%" height = "100%" number of rows = "20" >
< mx:columns >
"< mx:DataGridColumn headerText =" # "dataField="@rowIndex "editable ="false"/ >
"< mx:DataGridColumn headerText ="Agent ID"dataField="@agentId "editable ="true"/ >
"< mx:DataGridColumn headerText ="First name"dataField="@firstName "editable ="true"/ >
"< mx:DataGridColumn headerText ="Last Name"dataField="@lastName "editable ="true"/ >
"< mx:DataGridColumn headerText ="Country"dataField="@country "editable ="true"/ >
< / mx:columns >
< / mx:DataGrid >

teamGridDataAsXml = new XML (s);
trace (teamGridDataAsXml.ToXmlString ()); to be sure, you have good xml
var xlRows:XMLList = teamGridDataAsXml.row;
trace (xlRows.length ()); What do you expect?
teamGridData = new XMLListCOllection (xlRows);

You can pass the variable xml and go straignt to the XMLListCollection also. In the loop, build the XML node, using the literal XML syntax and then call addItem * inside the loop *.
Tracy

Tags: Flex

Similar Questions

  • Windows is not genuine built 6002. need help with my windows vista.

    Hi, my HP Pavilion notebook crashed and now I have a message that reads... This copy of windows is not genuine built 6002. I've exhausted all means to try to fix it without success.  The sticker on the bottom of the computer is worn and unreadable. I bought programs product key finder, helping us to activate windows. I called Hp support and supported windows and all I get is the run around. Is someone can you please help me solve this problem?

    You don't say if you reinstalled Vista, or what you were doing on the crash.

    http://www.Belarc.com/free_download.html

    If your Vista operating system was still running and enabled, you would use the program above to find your product key.

    If the above does not apply, we can not help you.

    It becomes a matter between you and HP, they you provided with your Vista license.

    See you soon.

    Mick Murphy - Microsoft partner

  • Editing a site Flash need help!

    I have a client who has a Web site that is run entirely by a swf file. Don't know where to begin to start editing. Can someone give me a hand to find where to start?

    I need to be able to access the swf file and then convert the whole thing on something that will work on a smart phone and tablet.

    [Moved from the forum endorsement, general Lounge - Mod]

    If you nose around in the project files, you might find an XML file or text gross with real content in what you could bring in a new HTML site.   All the Flash stuff should be eliminated because it is not web friendly.   Also, Dreamweaver cannot change Flash sites.

    Nancy O.

  • Can manage Windows XP Home Edition of Windows 8? Get the error codes for the security updates (0 x 643). ALL through Microsoft Tech INFECTED with the virus and Trojans tried. I need help BADLY. Thank you.

    I tried every thing blessed with technology microsoft... always hanging in limbo here.  Tired of doing constant comprehensive analyses, etc. in order to remove the constant threats.  Apparently my McAfee can't stay with her either.  Need help with the download/repair these seeds as soon as possible.  Thanks to all those who wish to help me - it would be that popular, for sure!

    The question makes no sense.

    "Can manage Windows XP Home Edition of Windows 8?"

    Two problems: there is no Windows 8 and even if there were, Windows XP Home Edition would not not 'manage '.  ;-)

    I drop McAfee for a few different freeware products.  Or better yet I'd get two products 'cost' (~ 25 and 60 dollars) and install them and use them in the future - but WHEN you are trying to clean up.

    You seem like you maybe sincerely - at a time when a format/install of Windows XP/patching/installation of applications/patch/restore backups of your data is the best course of action.

    However, if you are willing to work - maybe we can at least get things cleaned up to a certain point where you can get a good backup before doing this (otherwise avoid doing all together.)

    In the order shown, do not jump (no matter what you do, what you have done in the past, etc.) ...

    First of all - download, install, operate and put to update and then run a full system scan with the following two (one at a time, reboot in-between):

    After you perform a full scan with one then the other and remove anything they have all two are completely, you can uninstall these products, if you wish.  This initiative will allow to check there is no malware floating around your system which could cause problems.  If you ask - no, Norton probably does not protect you from what these applications can find.

    Download and run the MSRT tool manually:
    http://www.Microsoft.com/security/malwareremove/default.mspx
    (Ignore the details and download the tool to download and save to your desktop, run it.)

    Reset.

    Search online with eSet Online Scanner.

    Reset.

    Download/install the latest program Windows installation (for your operating system):
    (Windows XP 32-bit: WindowsXP-KB942288-v3 - x 86 .exe )
    (Download and save it to your desktop, run it.)

    Reset.

    and...

    Download the latest version of Windows Update (x 86) agent here:
    http://go.Microsoft.com/fwlink/?LinkId=91237
    ... and save it to the root of your C:\ drive. After you register on the root of the C:\ drive, follow these steps:

    Close all Internet Explorer Windows and other applications.

    AutoScan--> RUN and type:
    %SystemDrive%\windowsupdateagent30-x86.exe /WUFORCE
    --> Click OK.

    (If asked, select 'Run'). --> Click on NEXT--> select 'I agree' and click NEXT--> where he completed the installation, click "Finish"...

    Reset.

    Now try usig the Fixit (Yes - try to use it again) to reset your Windows Components Update (you'll do the aggressive version, not the other):
    How to reset the Windows Update components?

    Reset.

    CHKDSK
    How to scan your disks for errors* will take time and a reboot.

    Defragment
    How to defragment your hard drives* will take time

    Reset.

    Now, open Internet Explorer, visit http://windowsupdate.microsoft.com/ and do a CUSTOM search for updates.  Install any critical/high-priority ones and - for now - to ignore all those in option (always do this for material updates optional here.)

    Restart if necessary and continue to visit this web page until you have not yet updated to high priority.

    Now - if your problem is with the facilities of the .NET Framework...  You can end up with something like:
    http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx
    to uninstall a few versions of the .NET Framework, then you can try to install again - but you should not do this until the machine is supposed to be cleaned.

  • Need help... Re-install Vista Home Basic Edition, but Activation has declared that the license has already been used?

    Need help...

    My hard drive crashed,

    then re-install Vista Basic Edition,

    Complete the activation code (come when I bought my notebook)

    but activation said that my license has already been used

    and I have to purchase another license?

    How to solve this problem?

    Hello

    You receive an error message?

    I suggest you follow the step to contact the Microsoft support center and check.

    (a) click Start and in the search for box type: slui.exe 4

    (b) press ENTER on your keyboard

    (c) select your country.

    (d) take the phone activation option and brace yourself for a real person.

    How to activate Windows Vista

    http://support.Microsoft.com/kb/940315

  • Hello, I need help.  in photoshop / editing / color / color / RGB management rules, it is impossible to change this point. Is in the "off" position and I would choose "preserve embedded profiles' I'm on windows 8 and creative cloud for photoshop.

    Hello, I need help. in photoshop / editing / color / color / RGB management rules, it is impossible to change this point. Is in the "off" position and I would choose "preserve embedded profiles' I'm on windows 8 and creative cloud for photoshop.

    Policies automatically goes to "off" If you have your screen as working RGB profile - what is something that you should never do. Always have a standard space like RGB work.

    And Yes, "preserve embedded profiles" is the only sensitive parameter. Others are best for special purposes where you really know what you are doing - at worst they will transform your archive in a unrecoverable mess.

  • I JUST DOWNLOAD THE CC ON MY DESKTOP N HAVE NO IDEA WHERE TO START PHOTO EDITING IT S LITTLE DIFFERENT OF MY ITEM 12 NEED HELP TO FIND THE TUTORIAL THANK YOU A.S.A.P.

    I JUST DOWNLOAD THE CC ON MY DESKTOP N HAVE NO IDEA WHERE TO START PHOTO EDITING IT S LITTLE DIFFERENT OF MY ITEM 12 NEED HELP TO FIND THE TUTORIAL THANK YOU A.S.A.P.

    Start with the tutorials in the Welcome window to start and takes a course from a site like Lynda.com.

  • I need to re-download my cs6 after my book mac crashed and I can't find my package to get the serial number. I need help, I'm just in the middle of editing a photoshoot... ugh!

    I need to re-download my cs6 after my book mac crashed and I can't find my package to get the serial number. Need help please, I'm in the middle of editing a photoshoot... ugh.

    You can download it here: download Creative Suite 6 applications

    If you registered with Adobe, the serial number is the Adobe ID and the password that will be used.

    Otherwise, it will work as a giving fully functional 30-day trial you time to find the package.

    Gene

  • I am a photographer bigener need help on editing photos for competitions will be cloud help me?

    I'm a photographer bigener, need help with editing of photos for competitions, cloud will help me?

    Creative Cloud subscriptions include Lightroom and Photoshop, amongst the most widely used photo-editing programs.  But if you are looking for instructions on HOW to edit photos, there isn't really anything on the cloud to do.

  • Please, I need help. Recently, I bought creative photography Cloud plan Student and Teacher Edition (one year) online from the website of adobe because my Photoshop trial has ended. And at the same time, I have 2 days left to Indesign. What I know

    Please, I need help. Recently, I bought creative photography Cloud plan Student and Teacher Edition (one year) online from the website of adobe because my Photoshop trial has ended. And at the same time, I have 2 days left to Indesign. I know, if I bought the plan creative cloud, I can use activate indesign. When I try to activate or renew indesign, they ask the serial number and code exchange and I don't have one of them. Can anyone help me please by giving steps what I need to do. Thank you

    ID is not part of the plan of the photograph, so it will not activate.

    Mylenium

  • Need help with bookmarks edition ASAP

    I converted to a document Microsoft word to PDF with bookmarks but some between data is also coming in the form of bookmarks .i have tried everything to remove them but there is no way. also, some between the lines become parent bookmark. need help as soon as POSSIBLE.

    like suppose SHELL RIB is the title and is supposed to be a bookmark but it data into shell sides as its purpose, the entrance and etc. are a parent bookmark and its impossible to remove.

    very imp to solve this problem... need help URGENT...:)

    Player can also create PDF files. If you have the drive and you create a PDF from Word you use an internal function of the word, which has nothing to do with Adobe or player. You should post your question on a forum of Word, in this case.

  • Need help with analysis on XML DataGrid

    Hello

    I retrivied in my function from HttpService result data.


    < list >
    < user >
    < ename > JAMES < / ename >
    < > 7900 empno < / empno >
    < / user >
    < user >
    < ename > FORD < / ename >
    < > 7902 empno < / empno >
    < / user >
    < user >
    < ename > MILLER < / ename >
    < > 7934 empno < / empno >
    < / user >
    < / list >

    [Bindable]
    private var xmldata:XML;

    private void resultHandler(event:ResultEvent):void {}
    XMLDATA = Event.Result as XML;
    }


    < mx:DataGrid x = "50" y = "23" width = "469" height = "265" dataProvider = "{xmldata." The user} ">"
    < mx:columns >
    < mx:DataGridColumn headerText = "Type" dataField = "ename" / >
    < mx:DataGridColumn headerText = "Sales" dataField = "empno" / >
    < / mx:columns >
    < / mx:DataGrid >

    But this displays all the data in the DataGrid control.

    Could someone help me please.

    Thank you.

    After obtaining data affect data in the data grid

    DataGrid.DataProvider = xml;

    and also do datagrid.invalidateList () after u get the data if the line above does not help

    See also if the data provider is not null, if nothing is done.

  • Extended attributes are incompatible - need help urgent please!

    Hello Microsoft Forum,

    I want to keep this short, as I now have serious problems.
    I have Windows 8 Pro, with each update installed.
    I was looking through the net by chance, then the messaging with a friend.
    My friend has design a logo, which he sent via Skype in a .png format.
    When I double click on the logo, the problems started. Everything has become very slow.
    The image does not open and only after 5 minutes of waiting Windows Picture Viewer began to appear.
    The strange thing is, open Windows image viewer my file .wav file music stored elsewhere, not on my desk (the photo was about all this on my desk).
    Image viewer of course could not open the music file.
    So I decided to open the Task Manager, but the error described in the title, "Taskmgr.exe - extended attributes are incompatible" error came, does not let me to open the Manager.
    This also occurs with most of my programs. I get the same error with Regedit, MSconfig and other configuration utilities, and also some programs starts, as Mumble (Murmur Server can, however).
    In fact, all system tools and, more generally, all in need of Admin privilege does not work. Some of these programs give the error message, some simply do nothing at all.
    I'm the admin user and UAC is set to the last row (no notification).
    In safe mode, everything is normal. In addition, disabling antivirus (ESET Smart Security 6) does not solve the problem.
    I followed a few articles I found, which describes the fix from my sound theme on None or default Windows Setup.
    I have, however, never changed anything with my theme, the sound was enabled by default.
    Setting the sound theme "None" did nothing, just like the definition of the theme options.
    Opening to the top of anything with sound (once again a left-click on the icon in the taskbar to bring up the small volume) literally takes ages.
    Right click on the sound opening in the bar of tasks and sounds to change the theme, then takes forever.
    With forever, I hear, I see the labels and buttons to come with 5 second delay between each.
    This is a high end machine with an i7 - 3770K and a Corsair SSD ForceGS, 16 GB @ 1600 MHz RAM and a GPU GTX 670, so normally everything happens at the moment.
    The sound is the only part affected the slow opening of Chrome, Explorer, and some programs that do not work, are at the moment.
    I'm now writing this getting messages of "program does not" and "Incident at sending information" certain programs, in fact utility built into Windows.
    I wish I had of emergency aid, as this is my main work computer
    . I'm missing a few hours of serious work because of this bug, which was published in a 'stable' of Windows version.
    Edit 1: I forgot to mention that I already tried cmd as Admin ' sfc/scannow' option in Mode safe mode (with or without network, cmd does nothing when open as Administrator without mode safe, does not yet show upward) and in the Advanced Restart public services
    Edit 2: I have not installed new hardware or software when this happened in the same State as everything worked.
    I really want to reinstall everything, I hope that a solution to this.
    Edit 3: One of the programs, which frequently closed (I received a message '(program) stopped working' him) is the host of Console window.
    Edit 4: I have disabled all the codecs to start in safe mode, nothing has changed (an article describes install codecs Audacity caused the same problem).
    Edit 5: Now after a second attempt in SafeMode as administrator cmd, command "sfc/scannow" reported an error that the problems have been found, but could not be repaired.
    Edit 6: I also tried (Cmd as administrator in safe mode with network) repair DISM, could not complete because of an error.
    Edit 7: Tomorrow, if I can not find a solution, I'm going to take drastic measures, like restoring to a previous safe point, using the options of recovery and if necessary, even refresh/powerwash/reinstall everything. However, I hope that these measures are not necessary, because they require a lot of time.
    I hope that my question is understandable
    . Excuse me for my arrogant desire to answer, I normally invite people in the forums, but this made my computer unusable work, resulting in some (financial) problems.
    Kind regards
    Richard

    Hi Richard,

    Since the problem started happening when you tried to open the image file that has been sent to you on Skype. There might be a chance that the image file would be infected by the virus, due to which your computer is facing this problem.

    I suggest to run the Microsoft of Networking in Safe Mode Security Scanner and check to see if it helps:

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

     

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Warning: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    I hope this helps. If you need help with Windows, let us know and will be happy to help you.

  • Need help, private DPS iPad app distribution

    Hi all.

    I need help. I built an app for iPad unique edition which is a training manual that my client needs to distribute only to customers who have purchased a training course. The application must therefore be distributed privately.

    This work if my customer buys a volume purchase program? I then buy an account business to use the B2B distribution? Or is there another way to get the app to their clients without these?

    Look forward to hearing from any of you.

    Thank you

    Gavin

    Hi Gavin you need an account from company to distribute privately, unless you're happy with content adobe Viewer. No other way of cheering Alistair

  • NEED HELP URGENT! 5.2 Lightroom runs slow on my new PC

    Hi all!

    Thank you for the time you spend reading this! I am very grateful!

    A few months ago, I decided to connect my laptop to a Full HD monitor so that I can hopefully get a better resolution when editing photos. I bought the monitor but BAM! It was all lagy and I realized that my laptop is not good enough to run things smoothly (although it may do so at its native resolution perfectly 720 p) so, as a student, I started to work and to invest the money to buy a computer case and use it with the monitor that I had already bought for no reason!

    So, I built my new PC recently and I put the (relatively) decent material about it but I still have the same problem

    Here are the specs of my PC:

    Windows 7 SP1 64 bit

    RAM: 8 GB DDR3 1600

    Processor: AMD FX-8320 8-core 3.5 Ghz

    MB: ASUSTeK COMPUTER INC. M5A97 R2.0 (Socket 942)

    Graphics card: 1024MB ATI AMD Radeon HD 7700 Series (GB)

    Hard drive: 500 GB Western Digital SATA 3

    Here's the video of my delay in the computer:

    http://www.YouTube.com/watch?v=xtaKV1wH9pY

    (the video is from 4.4 lightroom but 5.2 is the same)

    I know that some of you will say that's not SSD, so it's slow, but I don't think that my hard drive is causing a problem. Laptop from my friend who has specifications lower than mine (a 2.5 HDD), lower map low graphics + CPU (but Intel i7) performs much better and is much smoother (is almost perfect) in the culture and the change of exposure.

    What do you think is the problem? It's shit AMD processor that is the cause, or is - this lightroom which is not compatible with my processor? What parts should I change as appropriate, or do I return everything and work with lower resolution on my laptop

    I really need help with this, because if I can't solve this problem, I have to return the PC and get refund because there will be no use for me.

    Very well! So, what's up on my new processor and motherboard! I will also avoid AMD for the rest of my life (as long as I use Lightroom!)

Maybe you are looking for

  • How can I get rid of get it Firefox for Android window

    When I run Mozilla Firefox, I firstly this window asking me to download Firefox on my Android. I don't have an Android phone or Smart.

  • Skype "AppCrash" when you try to connect?

    So I've had Skype since I got my computer and it worked perfectly, but now all of a sudden whenever it tries to connect, it is said that Skype has stopped working and in details, he says it's a "appcrash" so I uninstalled and downloaded again, but he

  • INSTALL ANY APPLICATION OF MAIL CONTACTS NOW AT EL CAPITAN

    cannot send mail... no contact about what happened? Where are my contacts? can not even add a contact?

  • R7 replacement still has wifi problem

    So my R7 of origin has been replaced by ACER because of the wifi does not.  The replacement worked better at first but has basically turned into my original.  I can't even open google sometimes... it is incredibly frustrating that Dell $500 of my emp

  • Cannot run AVG scan after scan of Windows Defender.

    Original title: avg free and defender When I click on my AVG program, that he will not give me an option of computer detection and he did earlier before I did a quick scan with windows defender. Did somehow disable the AVG when I ran defender scan? H