Storing Data from One DataGrid & Passing it to Another.

This is probably a simple problem for some of you Flex veterans, but I'm having a rough time with it...
I have a datagrid that looks like this:
               <mx:DataGrid x="319" y="63" width="100%" height="100%" id="patient_stream" fontSize="11">
                    <mx:columns>
                        <mx:DataGridColumn id="category_head" width="50" headerText="PC #" dataField="pc"/>
                        <mx:DataGridColumn width="100" headerText="Category" dataField="category"/>
                        <mx:DataGridColumn width="75" headerText="# of Cases">
                                <mx:itemRenderer>
                                    <mx:Component>
                                        <mx:TextInput/>
                                    </mx:Component>
                                </mx:itemRenderer>
                            </mx:DataGridColumn>
                        <mx:DataGridColumn width="800" headerText="PC Description" dataField="description"/>
                    </mx:columns>
                </mx:DataGrid>
As you can see I have a TextInput component that is within an ItemRenderer.  I need to be able to collect any row of data that has numbers added to the TextInput field.  I then have a button that says "Add"  and this data is added to another datagrid that acts as a "summary" of the data being collected.
Here is what that other "Summary" grid looks like:
<mx:DataGrid x="10" y="538" width="100%" height="100%" id="stream_summary" textAlign="left">
                <mx:columns>
                    <mx:DataGridColumn width="50" headerText="PC #"/>
                    <mx:DataGridColumn width="150" headerText="Category" />
                        <mx:DataGridColumn width="75" headerText="# of Cases">
                            <mx:itemRenderer>
                                <mx:Component>
                                    <mx:TextInput/>
                                </mx:Component>
                            </mx:itemRenderer>
                        </mx:DataGridColumn>
                    <mx:DataGridColumn width="800" headerText="Description" dataField="description"/>
                </mx:columns>
            </mx:DataGrid>
Can anyone provide any clues on how I could go about accomplishing this?
Thanks.

Usually you set editable=true on the first DG and don't use TextInput as your renderer.  That should cause that DG's dataprovider to be updated automatically.  Then if you want you can copy the data to the other DG's dataProvider
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

Similar Messages

  • Passing data from one UIX XML page to another UIX XML page

    What are the various ways of passing data from one UIX XML page to another UIX XML page?
    (a) If no bc4j is used.
    (b) If bc4j is used.
    (c) If my event handler calls:-
    public static EventResult handleMyEventEvent( BajaContext context, Page page, PageEvent event) throws Throwable
    then how can I pass data to the next UIX XML page?
    Thanks,
    Paul.

    What are the various ways of passing data from one UIX XML page to another UIX XML page?
    (a) If no bc4j is used.For forwarded URLs; HttpServletRequest attributes [request], HttpSession attributes [session], ServletContext attributes [application].
    For redirected URLs; HttpServletRequest parameters url, HttpSession attributes [session], ServletContext attributes [application].
    (b) If bc4j is used.For forwarded URLs; BC4J Session properties.
    For redirected URLs; BC4J Session properties IF release mode is NOT stateless.
    (c) If my event handler calls:-
    public static EventResult handleMyEventEvent( BajaContext context, Page page, PageEvent event) throws Throwable
    then how can I pass data to the next UIX XML page?Return a UIEventResult (extends EventResult) from your event handler that has a data provider attached.
    This data provider will be accessible in the next page with the name "ctrl:eventResult", where "ctrl" is the short prefix for the namespace "http://xmlns.oracle.com/uix/controller".
    Regards,
    John Fallows
    Oracle Corporation.

  • Can i transfer data from one icloud itunes account to another

    my son has used my i cloud to back up his school work and would like to transfer it to his i cloud account so he can use it on his other devices , computer etc
    is this possible?
    I have very little on the i cloud account but do use it for photos etc

    You cannot transfer data from one account to another.

  • Move WIKI data from one Mountain Lion Server to another

    Hi.
    I followed the instruction here:
    http://support.apple.com/kb/HT5585
    Under Copying all wikis from one OS X server to another OS X server, I am not even able to execute:
    sudo pg_dump --format=c --compress=9 --blobs --username=collab --file=/tmp/collab.pgdump collab
    It gives this error:
    pg_dump: [archiver (db)] connection to database "collab" failed: FATAL:  role "collab" does not exist
    Any idea?
    I just tested it on the productive server as well as a brand new install. Same outcome.
    which then I moved the: /Library/Server/Wiki/FileData over but even stop/start, restart, wiki server is running but not able to load content, it's like it's been wiped clean.
    matthew

    try it and RATE correct answers
    Hello Matthew
    You're looking in the wrong spot
    First things first - make yourself default sudo with sudo -s then you can forget prefixing it all the time.
    If you just use pg_dump then it'll take the command from the /var-Directory - that's the wrong version
    You have to specify the path for the Socket where the PSQL-Database for the wiki really is located by using the -h-option - it's not the default
    that's why you get the error that role collab does not exist since you're connecting to a database in place where the role collab truy isn't part of it.
    So - if you'd like to export the wiki-DB us the following and adapt the filename to what you like it to be.
    bash-3.2# /Applications/Server.app/Contents/ServerRoot/usr/bin/pg_dump -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 -f /Volumes/USBSTICK/wikidatabase.pgdump -U collab collab
    The first block specifies the "not default" pg_dump you'd like to use
    The second block (-h "/Library/.....) tells pg_dump where to find the DB
    The third block tells pg_dump to use port 5432
    The fourth block (-f /Volumes/......) tells pg_dump to place its output into this file
    The fifth block (-U collab) tells pg_dump to do this is role collab
    The sixth block tells pg_dump from with DB to dump from
    In your case extend my provided command with your options --format=c --compress=9 --blobs like this:
    bash-3.2# /Applications/Server.app/Contents/ServerRoot/usr/bin/pg_dump -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 -F c --compress=9 -b -f /Volumes/USBSTICK/wikidatabase.pgdump -U collab collab
    BTW- you can connect to the database, of course:
    bash-3.2# psql -h "/Library/Server/PostgreSQL For Server Services/Socket/" -p 5432 collab collab
    try it and RATE correct answers
    Here is my thread https://discussions.apple.com/thread/5751873

  • How to read LONG RAW data from one  table and insert into another table

    Hello EVERYBODY
    I have a table called sound with the following attributes. in the music attribute i have stored some messages in the different language like hindi, english etc. i want to concatinate all hindi messages and store in the another table with only one attribute of type LONG RAW.and this attribute is attached with the sound item.
    when i click the play button of sound item the all the messages recorded in hindi will play one by one automatically. for that i'm doing the following.
    i have written the following when button pressed trigger which will concatinate all the messages of any selected language from the sound table, and store in another table called temp.
    and then sound will be played from the temp table.
    declare
         tmp sound.music%type;
         temp1 sound.music%type;
         item_id ITEM;
    cursor c1
    is select music
    from sound
    where lang=:LIST10;
    begin
         open c1;
         loop
              fetch c1 into tmp; //THIS LINE GENERATES THE ERROR
              temp1:=temp1||tmp;
              exit when c1%notfound;
         end loop;
    CLOSE C1;
    insert into temp values(temp1);
    item_id:=Find_Item('Music');
    go_item('music');
    play_sound(item_id);
    end;
    but when i'm clicking the button it generates the following error.
    WHEN-BUTTON-PRESSED TRIGGER RAISED UNHANDLED EXCEPTION ORA-06502.
    ORA-06502: PL/SQL: numeric or value error
    SQL> desc sound;
    Name Null? Type
    SL_NO NUMBER(2)
    MUSIC LONG RAW
    LANG CHAR(10)
    IF MY PROCESS TO SOLVE THE ABOVE PROBLEM IS OK THEN PLESE TELL ME THE SOLUTION FOR THE ERROR. OTHER WISE PLEASE SUGGEST ME,IF ANY OTHER WAY IS THERE TO SOLVE THE ABOVE PROBLEM.
    THANKS IN ADVANCE.
    D. Prasad

    You can achieve this in many different ways, one is
    1. Create another VO based on the EO which is based on the dest table.
    2. At save, copy the contents of the source VO into the dest VO (see copy routine in dev guide).
    3. commiting the transaction will push the data into the dest table on which the dest VO is based.
    I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
    if by table you mean a DB table, then no, you can have a VO based on multiple EOs which will do DMLs accordingly.Thanks
    Tapash

  • How to get the data from one table and insert into another table

    Hi,
    We have requirement to build OA page with the data needs to be populated from one table and on save data into another table.
    For the above requirement what the best way to implement in OAF.
    I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
    Thanks

    You can achieve this in many different ways, one is
    1. Create another VO based on the EO which is based on the dest table.
    2. At save, copy the contents of the source VO into the dest VO (see copy routine in dev guide).
    3. commiting the transaction will push the data into the dest table on which the dest VO is based.
    I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
    if by table you mean a DB table, then no, you can have a VO based on multiple EOs which will do DMLs accordingly.Thanks
    Tapash

  • How do I transfer data from one external hard drive to another larger one?

    I hope I am posting in the logical area for this topic. I have an external hard drive connected to my eMac. My iTunes library and some backup files reside on this hard drive. I am contemplating purchasing another, larger external hard drive so that I can archive more data--more music and some photos. How do I transfer my data from the first drive to the second one, and is this a risky move? (I have a lot of music!)

    Hello, 
    Take a look at SuperDuper (link). This 'clones' any drive across to another; it should suit your needs just fine.
    Firewire drives with an Oxford chipset are recommended for PowerPC Macs (like the eMac and iBook) as you can boot the Mac from one to recover the system if the internal drive suffers any issues.
    mrtotes

  • Can't transfer data from one external hard drive to another?

    I have just purchased my first Mac book Pro a few weeks ago and i seem to be having alot of trouble transfering data between my to hard drives.
    One is a 500gb and the other is a 1tb both with movies and photos on them, i want to tranfer the last data from the 500gb to the 1tb and format the 500gb.
    I have tried to drag and drop and copy and paste but nothing seems to work? The movies are in avi format too so not sure if that makes a differance or not but that is another issue i would like to sort. How to change the complete hard drive to mp4 or do i do them one by one?
    Any help would be great as i dont want to regret this purchase so early in the piece.
    Thanks to all in advance.

    Yes.

  • Help for transfering data from one user' all tables to another

    Hello guys,
    I have trim the extra sizes of columns in almost all tables of my database. Before doing this, I saved the data of tables by creating another user "User1" with the same objects and importing dmp file in it. After this I cleared my original objects and reduced the extra sizes of columns alomost in all tables.
    Now I want to transfer data from backup user "User1" into my original user's "User" tables.
    Can any one guid me with the way of doing so, so that I could do it just through 3 or 4 lines of code instead of individualy table wise transfering the data...??
    regards
    Kashif

    SQL> select 'insert into '||table_name||' as select * from user1.'||table_name ||' ;' from user_tables where table_name in ('EMP', 'DEPT') ;
    'INSERTINTO'||TABLE_NAME||'ASSELECT*FROMUSER1.'||TABLE_NAME||';'
    insert into DEPT as select * from user1.DEPT ;
    insert into EMP as select * from user1.EMP ;
    2 rows selected.
    SQL>You could spool the output of the query above to a .SQL script file and then just run it within the same script using @@script_name.SQL.

  • Migrating SAP Crystal Data from One BO BI 4 to another and on a different domain

    Thank you for reading this and thank you in advance.
    This is pretty new to me, I have installed Crystal Server several times before but never had to do much with it and the person that looked after it left a year ago.
    So I have been tasked to migrate all the data from our current SAP Crystal BO 4 server to another.
    It gets slightly complicated, the company I used to work for was recently acquired and now they want me to move the BO server across to their data-centre on their domain but keeping all the data intact, more the reports not the historical data. I understand that I might have to change a few things but don't want to recreate all the reports and dependencies. At the same time the IT team will now have to look after the reporting.
    The new company doesn't currently have any reporting system in their environment and thus want to use ours going forward.
    I have read several documents and forums but just can't seem to find a method that will do the trick.
    The new BO 4 server is up and running at the same function level/SP as the current production server.
    So I have tried Promotion Management, I added pretty much everything needed, then managed the dependencies and exported without any errors, on the new server I get an error(in the background) straight up when importing, although it sits and spins around for ages but nothing come from it.
    I looked at using Crystal Reports to save the reports and then import them but after speaking to the person that managed it back in the day she advised me its not just as simple as that, there is a few things that needs to be done to make the report work again.
    I read about coping the input data folder and importing the DB directly but figured that would not have a good outcome in the end.
    Is there anyone that had done something similar, or know how to get it across with the least amount of trouble. Even if it's a bit of work as long as I can get it across, that will be great.
    The last resort will be to learn how the entire system works and at least get the reports across but then fix up all the dependencies, schedules etc.
    Just not sure where to start to be honest.
    Thank you again.
    Marius

    Promotion Management is meant to promote small amount of objects. if you need to do complete migration, you can use command line tool of Promotion management.
    Check this link how to promote.
    How to do Live to Live Migration by LCM_CLI.bat

  • How to select data from one nested table and into another nested table

    create or replace
    TYPE ctxt_code_rec as object
    ctxt_header varchar2(10),
    header_description varchar2(300),
    status varchar2(30),
    adjacent_code varchar2(300),
    adjacent_desc Varchar2(400),
    adjacent_flag varchar2(4000),
    adjacent_text_href varchar2(4000)
    create or replace
    type ctxt_code_table as table of CTXT_CODE_REC
    d_table ctxt_code_table ;
    v_tab ctxt_code_table ;
    Iam trying to select data from d_table to v_tab
    using and bulk collect into
    select m.*
    bulk collect into p_code_result
    from table(l_loop_diag_code_table1)m
    order by 1;
    Receiving error:
    ora 94007 : not enoughvalues
    Could you please let me know how to solve it?
    Thanks,
    in advance

    >
    create or replace
    TYPE ctxt_code_rec as object
    ctxt_header varchar2(10),
    header_description varchar2(300),
    status varchar2(30),
    adjacent_code varchar2(300),
    adjacent_desc Varchar2(400),
    adjacent_flag varchar2(4000),
    adjacent_text_href varchar2(4000)
    create or replace
    type ctxt_code_table as table of CTXT_CODE_REC
    d_table ctxt_code_table ;
    v_tab ctxt_code_table ;
    Iam trying to select data from d_table to v_tab
    using and bulk collect into
    select m.*
    bulk collect into p_code_result
    from table(l_loop_diag_code_table1)m
    order by 1;
    Receiving error:
    ora 94007 : not enoughvalues
    Could you please let me know how to solve it?
    >
    Not unless you provide the code you are actually using.
    There is no definition of 'p_code_result' in your post and you say you 'trying to select data from d_table' but there is no code that loads 'd_table' in what you posted.
    And the SELECT query you posted actuall selects from an object named 'l_loop_idag_code_table1' which isn't mentioned in your code.
    Post the actual code you are using and all of the structures being used.
    Also explain why you even need to use nested tables and PL/SQL for whatever it is you are really doing.

  • Transfer data from one type of table to another

    Can some kind soul put me out of my misery and explain how I can get the data from Table1 to Table2
    I'm really struggling!
    Table1
    MerchID
    MatchesSKU
    1
    BR34
    1
    BD16
    2
    DE11
    3
    HB12
    3
    DX15
    3
    DR19
    Table2
    MerchID
    MatchesSKU1
    MatchesSKU2
    MatchesSKU3
    1
    BR34
    BD16
    2
    DE11
    3
    HB12
    DX15
    DR19

    I've got a page which shows a piece of merchandise in detail. Below that is a section called "you may also like..." and it shows 3 matching items to the main merchandise.
    I currently hold the matching data in a table like Table1 but I've been getting some performance issues and have narrowed it down to the query that gets the 3 matches.
    I was thinking if I place the 3 matching merchID's into the corresponding row of the main merchandise being shown, it saves hitting the database for the 3 matching items?
    Here's the SQL used to find the matching items
              SELECT *
              FROM merchandise
              INNER JOIN matches_with
              ON merchandise.supplier_code = matches_with.matches_with_supplier_code
              WHERE matches_with.merchandise_ID = '#URL.ProductID#'
    I limit the CFQUERY to MAXROWS=3

  • How to move data from one DB (non-partitioned) to another DB (partitioned)

    I have a huge database (2 TB) that is storing data in non-partitioned tables. I want to create another database to store the exact same data but in partitioned tables. How can I do this in the most efficient manner? Good old export and import should work but this would take ages.

    Let me give you guys a full picture and see if you could help me.
    The existing Unix server is running an Oracle 8i Database (datawarehouse) and I'm planning to create a new 10g database on a new Unix server. After which I will do parallel loading on both databases until I am ready to switch over to the new database. Most of the tables in the existing database is not partitioned and I need it to be partitioned on the new database. My database is around 2.4 TB and it is residing on a SAN (4.4 TB). I am planning only to have the 10g binary files on the new unix server, thus the new database would be on the SAN. Disk space availability is my most immediate concern as I would also have to set aside 600 GB on the SAN for another server.
    Any suggestions on how can I do this best?

  • How can I view/copy data from one Time Capsule backup to another computer

    My MBP and MB both back up to Time Capsule. From the MBP I can see it's data on TC via my network but not the backed up data from the MacBook. How can I view and import MB data to my MBP from Time Capsule via AirPort? Thanks!

    Is the backup software Time Machine??
    You can open the TM backup as long as you haven't used profiles to backup. Or encypted it in latest Mountain Lion.
    See Q17 here. http://pondini.org/TM/FAQ.html
    You should read through all the stuff about using TM.. and restore in particular.. 14-18.

  • Moving data from one external hard drive to another ERROR-36

    i got a new hp simplesave external hard drive, and i'm moving all my files from an older external hard drive (can't find brand name). Some of the files are bringing up error 36 which is something along the lines of can't read/write file. which is causing the file transfer to stop on that one file. there are a lot of damaged files so the file transferring is going very slowly. is there a way i can find out which files are bad ahead of time so i can get rid of them AND THEN transfer the files?

    Well, since the MacBook with Tiger still has issues with the drive, I think it is some kind of hardware problem related to the external drive. I have numerous USB and FireWire drives connected (probably too many), and I've had no issues with Snow Leopard. Snow Leopard makes my older Intel iMac run better than when it was new.
    Make sure you try connecting the drive to a separate power outlet, if it is connected to a power strip. It is also possible the drive's power supply is failing; that can cause the the improper disconnect message to come up, because the drive inside is not getting sufficient power. That is why you need to try the hard drive in a different case, or using the USB adapter, to eliminate possibilities.
    Also, I still don't know if this drive is USB or FireWire, but be sure to try it with no other devices connected, in case there is some interference between devices.
    One more thing you can try to rule out a problem with your currently installed system. Start up using the Snow Leopard installation disc; insert disc and restart with the C key held down. When you get to Installer's first screen, go up to the menu bar and, under Utilities, select to run Disk Utility.
    At this point, you can just leave the iMac alone for a while to see if the drive gets ejected. If it does not, try making a Disk Image of the external drive and saving the image file to the iMac's internal drive. If that works, there may be some issue with your current installation (and you have a backup of the data). If it fails, then I think you have confirmed that the problem is with the external drive, not the iMac or Snow Leopard.

Maybe you are looking for