How do I take a datagrid row and put in textInput

On a search form we have a datagrid that will be populated from a database.  My task is to take the row a user clicks on to populate forms with the data.  Essentially this is taking one row and putting each field into its own textInput control.
Each of the controls are linked to an XML tag:
<mx:XML id="dmSearch">
    <data>
        <SearchResults>
            <result>
            </result>
        </SearchResults>
        <SearchCriteria>
        </SearchCriteria>
        <RecProcess>
            <ADDRESS />
            <AGE />
        </RecProcess>
So the "ADDRESS" is bound:
                    <mx:FormItem id="dtAddress"
                        label="Address"
                        y="35" x="5"
                        width="275"
                        horizontalAlign="right">
                        <mx:TextInput id="RECPROVIDERADDRESS"
                            text="{dmSearch.RecProcess.RECPROVIDERADDRESS}"
                            change="dmSearch.RecProcess.RECPROVIDERADDRESS=RECPROVIDERADDRESS.text; lcConnector.setDirty();"
                            width="140"
                            maxChars="50"/>
                    </mx:FormItem>
I want to pull the data from this grid:
                    <mx:Form id="searchResults"
                        horizontalCenter="0">
                        <mx:FormItem id="lblSearchResults"
                            label="Search Results" indicatorGap="0">
                            <mx:DataGrid id="dgSearchResults"
                                click="dataGridClicked()">
                                <mx:columns>
                                    <mx:DataGridColumn id="colSODC"
                                        dataField="{dmSearch.SearchResults.SODC}"
                                        headerText="SODC"
                                        headerWordWrap="false" />
                                    <mx:DataGridColumn id="colLastName"
                                        dataField="{dmSearch.SearchResults.LASTNAME}"
                                        headerText="Last Name"
                                        headerWordWrap="false" />
                                    <mx:DataGridColumn id="colFirstName"
                                        dataField="{dmSearch.SearchResults.FIRSTNAME}"
                                        headerText="First Name"
                                        headerWordWrap="false" />
                                    <mx:DataGridColumn id="colMHDDID"
                                        dataField="{dmSearch.SearchResults.MHDDID}"
                                        headerText="MHDDID"
                                        wordWrap="false" />
                                    <mx:DataGridColumn id="colRIN"
                                        dataField="{dmSearch.SearchResults.RIN}"
                                        headerText="RIN"
                                        wordWrap="false" />
                                    <mx:DataGridColumn id="colSSN"
                                        dataField="{dmSearch.SearchResults.SSN}"
                                        headerText="SSN"
                                        wordWrap="false" />
                                </mx:columns>
                            </mx:DataGrid>
                        </mx:FormItem>
                    </mx:Form>
The datagrid doc at http://livedocs.adobe.com/flex/3/html/help.html?content=dpcontrols_6.html doesn't seem to cover this at all.

Hi, Greg.
Each of the textInput items are bound to an XML item:
                    <mx:FormItem id="gWorkPhone"
                        label="Work Phone"
                        x="5"
                        width="250"
                        horizontalAlign="right">
                        <mx:TextInput id="WORKPHONE"
                            text="{dmResults.WORKPHONE}"
                            change="dmResults.WORKPHONE=WORKPHONE.text; lcConnector.setDirty();"
                            width="115"
                            maxChars="50"/>
                    </mx:FormItem>
(I changed the name in trying to work this out.  I created two XML items (dmSearch and dmResults) which I assume is OK.)
The item will either contain (through some magic I don't understand yet) the data from the user selected datagrid or blanks for input of new records.  The grid items are filtered based on the search function (resulting in an error):
            var psrSODC:String = dgSearchResults.selectedItem.colSODC as String;
           if (psrSODC != null && psrSODC.length > 0)
                XMLRecord = dmResults(SODC == psrSODC);
There are several of these statements as the user might enter 1 to n criteria.  Is this the way to filter the input grid to one record?  And how does "XMLRecord" know the layout of the file?

Similar Messages

  • How do i take a DVD Video and put it on my IPod?

    OLD   Windows ME  
    Do i have to create a file to put the movie in or something else?

    Please search the discussions and google for more information. There are many options and I think you would get the best answers by searching. It is hard to cover all options in one post.
    Happy Holidays
    btabz

  • How can I take my ipod music and put on my ipad do not have the computer that the ipod was downloaded on.

    I have an ipod full of music but do not have the computer is was loaded on.   Can I get that ipod loaded on my new ipad 2.

    Welcome to the Apple Community.
    Unfortunately not without a computer, unless you are signed up for music match. You can redownload purchased content but not the rest of your library.

  • Good morning, i would like to know how to take pictures from iphoto and put them in a folder on desktop

    Good morning: would like to know how to take pictures from my iphoto and put them in a folder on my desktop

    To take photos from iPhoto and put them onto a folder on Desktop, first create a folder on Desktop. Right-click on Desktop and create a new folder.
    Then, open iPhoto, and you have two ways to export photos:
    1. Select the photos you want to copy to Desktop with Command key (or go to Edit menu > Select All, if you want to copy all photos), and then, drag them to the folder on Desktop.
    2. Select the photos you want to copy to Desktop with Command key, go to File menu > Export, and follow the steps.
    You can choose the one you prefer

  • I have synced a family members iphone to my accont on itunes! how do i take it off mine and sync it to his account?

    i have synced a family members iphone to my accont on itunes! how do i take it off mine and sync it to his account?

    Try this site - they are free
    http://www.zedge.net/

  • HT3702 I would like to remove the credit card info from my account and only use iTunes prepaid cards. How do I take care of this and make sure that payment will be taken from iTunes cards? Thanks

    I would like to remove credit card info from account and only use iTunes prepaid cards. How do I take care of this and make sure payments are takin from the iTunes cards? Also, I need to change my last name and address on account.

    Hi Alexis ...
    I need to change my last name and address on account.
    Help here >  How to change the name you use for your Apple ID
    I would like to remove credit card info from account and only use iTunes prepaid cards.
    Help here >  Create an iTunes App Store account without a credit card

  • How can I take my pdf book and revert it to indesign so I can make a few changes on it?

    How can I take my pdf book and revert it to indesign so I can make a few changes on it?

    Kasyan Servetsky wrote:
    As far as I know, the best approach is to place pdf-file into a new InDesign document with “Multi Page Importer” script. Then create a new layer above the layer with PDFs and make small edits there creating new objects – text frames, etc – and hiding the original parts in the PDF below.
    That isn't an option - the obscured content will often still export and it'll completely mess up accessibility and compliance.
    The only true option would be to export a Word file from the PDF (using Acrobat Pro), import the text into a brand new INDD document using the usual style-mapping workflows, then export the images from the PDF separately and place them all back into the layout. Quicker than typing it all in again, but only just. Consider it a learning curve.

  • I have an iphone 4, how do I take stored voice messages and record them to a stick?

    I have an iphone 4, how do I take stored voice messages and record them to a stick?  A family member passed away and I want to keep their voice.

    Hey there!
    Sadly, there is no way to do this.
    I'm sad to hear you've lost a familymember.
    Try this: Move in a quiet-room. Play his/her voice over speaker of your iphone and record it with free recording-softwarefor windows or mac.
    Hope this will help you keeping the memory.

  • My iphone fall in the sea and now it's not working how i can take off my photo and numbers ? and do u thing it will be work or what plz help me !!!!!!!!!!!!!!!

    my iphone fall in the sea and now it's not working how i can take off my photo and numbers ? and do u thing it will be work or what plz help me !!!!!!!!!!!!!!!

    Sea water and electronics don't mix.  The salinity fries the internal circuitry of the phone. Your phone is toast.
    Certainly the user of any device which can be lost, stolen, or dropped in the sea would be smart enough to have had the data backed up, rght?  Your photos and numbers should be safely backed up on your computer or in the cloud.
    If you didn't do this, there's no way to recover those data now.  Backups are meant to be done BEFORE disaster strikes, not after.

  • I have a 64 GB iPod that is full.  My mother has a 128GB iPod that is largely empty.  I want to take my Music library and put it on her iPod, and take her library and put it on my iPod.  How do I do this?

    I have a 64 GB iPod that is full.  My mother has a 128GB iPod that is largely empty.  I want to take my Music library and put it on her iPod, and take her library and put it on my iPod.  How do I do this?

    Are you currently Syncing the iPod's with their own iTunes Library? Since the iPod Classic has to get it's content by this method, I assume that you are doing so for the 120GB iPod and I take it that it is a Classic.
    If you are, then simply connect the iPod to the other Library.
    If the content of the iPod Touch (which I assume is what the 64GB iPod is) is not all in an iTunes library - i.e. you purchased music and Apps on the Touch and have not yet Synced those to an iTunes Library, then you need to do that first. Bear in mind though, that the Apps cannot run on an iPod Classic.

  • Does anyone how to take music from ipod and put it on to my computer?

    does anyone how to take music from ipod and put it on to my computer? i desperatly need to do that so please help me!!!! i will download software if i need to

    If you are using iTunes version 7 or later, then you can transfer purchased iTunes store music from the iPod to an authorized computer by using the "file/transfer purchases from iPod" menu. Note that the maximum of 5 authorized computers applies here.
    For all other non purchased music (your own CDs etc) try this method which works on some Windows PCs.
    Enable your iPod for disk use.
    See: iPod Disk Use.
    Open iTunes and select edit/preferences/advanced/general. Put a check mark in the box marked "copy files to iTunes music folder when adding to library" and also "keep iTunes music folder organized", then click 'ok'.
    Connect the iPod whilst holding down the shift/ctrl keys to prevent any auto sync, and if you see the dialogue window asking if you want to sync to this itunes library, click 'no'.
    Then go to file/add folder, open 'my computer', select your iPod and click 'ok'.
    The music files should transfer to your iTunes.
    If this doesn't work (and it may not because officially it's not supposed to), check out the instructions/suggestions here.
    Music from iPod to computer (using option 2). This a manual method using "hidden folders" and although it works, it can be messy.
    Much easier ways are to use one of the many 3rd party programs that copy music from the iPod to the computer.
    One of the most recommended is Yamipod. This is a free program that transfers music and playlists etc from iPod back to the computer. However, it does not transfer playcounts/ratings etc.
    Another free program is Pod Player.

  • Im trying to take a head shot and put it on a color background, but you can tell it has been done ho

    im trying to take a head shot and put it on a color background, but you can tell it has been done how do I blend it into background!

    Russell Brown's video shows this being done...
    http://tv.adobe.com/watch/the-russell-brown-show/masking-basics-in-photoshop-cs5/
    Also, sometimes, if you shoot an image with a radically different background than what you end up putting the subject in front of digitally, reflections in hair highlights and shading can make it seem unnatural.  In those cases you really have no choice but to alter the subject subtly to make it "blend" better into the scene - e.g., with the Burn and Dodge tools.
    People might make more specific suggestions if you'll put up an image (or even part of one) showing what you're working with.
    -Noel

  • I just bought a ipad from a friend and want to take his stuff off and put mine on

    i just bought a ipad from afriend and i want to take his stuff off and put mine on how do i do this

    Settings > General > Reset > Erase All Content and Settings. Then set it up as your own.

  • Toshiba portege model A605-P200 won't POST bios unless I take out the battery and put it in again

    toshiba portege model A605-P200  won't POST bios unless I take out the battery and put it in again
    though, at times, it will, generally all i get  is a flashing cursor   NO  toshiba splash screen.  this seems to have started as an unsucessful  windows update
    i am getting  driver  freezing at crc.disk.exe   when i safe boot  when  i get  the machine to boot  past the bios
    thanks

    Unfortunately, it sounds like it might require servicing.
    - Peter

  • HT1766 how do i save my old photos and put it on the new device?

    how do i save my old photos and put it on the new device?

    Here is how to get everything:
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
    To get photos taken by or saved to the iPod to the computer see:
    iOS: Importing personal photos and videos from iOS devices to your computer
    If they were synced from a computer you need a third-party program like TouchCopy or PhoneView to get them into the computer.
    To move from computer to new iPod
    iOS and iPod: Syncing photos using iTunes

Maybe you are looking for

  • Duplicate messages in sender mail adapter

    Hi, We are using the sender mail adapter to retrieve messages from an IMAP mail server. Messages are being picked up correctly, but when we have large messages (with e.g. PDF attachments) things go wrong. The time it takes to retrieve the mail messag

  • Creating classic reports

    Hi, I found that when creating classic report through the create application wizard (add new report page and choose report type as classic), the report is slightly different from the ones created through the normal create page wizard. The difference

  • Flash player 9 no sound

    have installed this and tried every fix - registry entry mapper - uninstalled and tried version 7-8 no info on adobe site i have given up ever hearing sound froma swf file again F U adobe!

  • Https Access for Help

    Hey we are using Robo help 9 We have the web application configured to use https over Load Balancer. If we use http help comes upo fine but when we move to https only blank pages appear. We are using the WebHelp Pro option. Any help is greatly apperi

  • How long should it take to update an ipad?

    Can someone help me please? My ipad has been stuck with the same apple sign and the "loading" bar underneath for 2 hours now and i cannot do anything about it. Please help!