Getting all data from a datagrid

Is there a way to get all the data from a datagrid?
I have a datagrid where I can drop data from a second
datagrid.
I would like to send all objects from the datagrid to a web
service function
<mx:DataGrid id="myDataGrid" dropEnabled="true">
<mx:columns>
<mx:DataGridColumn dataField="fieldOne"/>
<mx:DataGridColumn dataField="fieldTwo"/>
</mx:columns>
</mx:DataGrid>
<mx:Button id="myButton" lable="Send"
click="ws.sendGridData(myDataGrid.dataProvider" />
When I click on the button only the first row is sent to the
service.
Is there a way to send all rows?
Thanks.
d.

You can accomplish it this way:
Set you dataProvider array as a public variable. Then all you
have to do is set the dataProvider of the second DataGrid equal to
your public array variable.
For example:
public var dp:Array= ([{label:"First", data:"25"},
{label:"Second", data:"50"}]);
public function initApp():void
testGridOne.dataProvider = dp;
testGridTwo.dataProvider = [];
<mx:Button label="Button"
click="testGridTwo.dataProvider=dp"/>
Hope that helps

Similar Messages

  • How to get all data from nokia to i5s

    how to get all data from nokia E71 to i5s???

    if you can put those data in your computer then add it in iTunes. your iPhone 5s should get it thru syncing.

  • How to get all data from time maschine to windows pc?

    pls can somebody helps me, i lost my macbook and all data have on time maschine.................... need to get them out on windows pc, and second problem, downloaded itunes to windows but how i can get pictures and music from my ipod and iphone to itunes, thx for every help

    if you can put those data in your computer then add it in iTunes. your iPhone 5s should get it thru syncing.

  • How to get ALL data from ipod to new computer with itunes??

    I have a ipod touch 2nd gen. I have cd's and purchased songs on my ipod. I did use itunes on my friends computer for a number of years but now I've got windows 7 computer and i have downloaded itunes but it won't let me transfer current data on my ipod to itunes without me loosing it all. I can only access itunes at friends now. Is there any way to get all my songs, playlists, apps (with data still on it) and photos without deleting it? I am looking for the cheapest way possible. I have tried downloading copy software but it all costs money. Thanks

    See:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
    Sync Your iOS Device with a New Computer Without Losing Data - How-To Geek
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • Help:  Not getting all data from text data type

    Hi there
    I have a stored procedure that returns a couple of fields and one of the fields is of datatype TEXT. In my ResultSet, I do not get all the data back that is stored in the TEXT datatype. I have say about 600 charactors in this field, but only 30 charactors are returned. Is there a reason why this is happening and how can I fix it?
    Please help?
    Thanks

    I set that field to have a normal string of about 50 charactors. Namely: "this is a note that is about 49 charactosrs long." (exclude the quotes). And I still got 30 charactors back only.
    I set a shorter text value of 21 charactors and that returned all 21 charactors.
    The text that is usually in this field is:
    "URL=SubsidiaryNarrative.html�BABY_CARE_PRODUCTS=false�AIDS_FOR_PHYSICALLY_DISABLED=false�SPORT_SUPPLEMENTS=true�NATURAL_REMEDIES=false�COSMETICS_FRAGRANCE=false�WOMANS_HEALTH=false�ADDITIONAL_CARDS=No�EXERCISE_ROUTINE=Yes�NUMBER_OF_CHILDREN=0"
    And I got out "URL=SubsidiaryNarrative.html�B"

  • How to get all data from inputstream?

    I have written a program to download pages from web sites,
    but sometimes I can't get all the content of the page,
    How can I do?

    //Try the following code:
    //It works in all cases (as long as the client is not //hid beneath a or proxy).
    import java.net.*;
    import java.io.*;
    public class webClient {
         public static void main(String args[]) {
              try{
                   if(args.length < 1) {
                        System.out.println("webClient URL");
                        System.exit(0);
                   URL u = new URL(args[0]);
                   BufferedInputStream inputStream = new BufferedInputStream((u.openConnection()).getInputStream());
                   int n;
                   byte[] buff = new byte[2048];
                   ByteArrayOutputStream out = new ByteArrayOutputStream();
                   while((n = inputStream.read(buff)) >= 0)
                        out.write(buff, 0, n);
                   System.out.println(out.toString());
              } catch(Exception e) {
                   e.printStackTrace();
    }

  • SWNC_COLLECTOR_GET_AGGREGATES does not get all data from ST03

    Hi guys,
    we are using SWNC_COLLECTOR_GET_AGGREGATES to retrieve details from ST03, however not all details are retrieved.
    Please advice.
    Thanks!

    Hi,
    Please go through link below
    [Thread|SWNC_COLLECTOR_GET_AGGREGATES;
    KR Jaideep,

  • My computer crashed and I have to get my data from my old drive to another computer, to ensure I get all my data what do I need to get.  I have and ipad and an iphone.  I need to get apps, contacts, pictures, etc.  Is there a way to do this?

    My computer crashed and I have to get my data from my old drive to another computer, to ensure I get all my data what do I need to get.  I have and ipad and an iphone.  I need to get apps, contacts, pictures, etc.  Is there a way to do this? It was a vista pc and the new is win 7. I can grab the backup files, and music, but what about my apps? I do not want to sync on the new pc since the apps aren't there.  Were are the app files located in itunes? Can I just copy them to the new computer?

    You can transfer itunes purchases:  File>Devices>Transfer Purchases
    The iphone is not a storage/backup device.  The sync is one way - computer to iphone.  The exception is itunes purchases.
    It has always been very basic to always maintain a backup copy of your computer.  Use your backup copy to put everything back.

  • Getting all data for ESS Pers, Address, Bank & Family screen from SAP 4.7

    Hi,
    I need suggestions on a weird situation that we have in one of the ESS/MSS project.
    Following are the systems that client has: -
          1. Enterprise Portal 7.0
          2. SAP ECC 6.0  -
    > (all JCOs in ESS/MSS DCs point to this system.. so in short this system is mapped to Portal)
          3. SAP 4.7            -
    > (they are maintaining all data for Pers, Address, Bank & Family here)
          4. Infotype data for some infotypes (such as 0105) are synched between these two SAP systems.
    Now, there are some standard + Z fields added in infotypes in SAP4.7 system.
    To display Z- fields on Portal, here is what is already done: -
           - Z - RFC is written in SAP ECC6.0 that calls SAP 4.7 to get the data.
           - Standard ESS WD DCs (pers, addr, fam & bank)  are edited to call above RFC to display Z - fields.
    Now, Client wants : -
          - to display all data from SAP4.7 system on portal (standard as well as Z fields).
          - use ECC6.0 system as a middle box between EP & SAP4.7.. There will be RFCs written in SAP ECC6.0 system that will call FMs in SAP 4.7 and return the data
    Now, I don't understand how do I change standard WD DCs that has some standard ARFC models (HRXSS_PER*) written in them.
    Any ideas on how to proceed on these objectives?
    Please help.
    Thanks & Regards,
    Amey

    Hi Siddarth,
    Thanks for reply.
    So I have following alternatives ? : -
    Option-1 : Sync data between ECC6.0 and SAP4.7 for these Infotypes at regular intervals.
                        (No changes @ ABAP & WD code)
    Option-2 : Enhance standard RFCs (such as HRXSS_PER_READ_P0006_FR) in ECC6.0 system to get data from SAP4.7.
                        (Changes @ ABAP side only)
    Option-3 : Create custom RFCs in ECC6.0 and import them at WD side and set data in 'SelectedInfotype' node?
                        Then what do we do about standard RFC calls that are already present in these DCs?
                        I am a bit skeptical about this approach.
                        (lot of work in both ABAP & WD side)
    Can you please comment?

  • How to get all data in a section from profile file?

    Suppose I have profile ini have a section like:
    [Mysection]
    k1 =v1
    k2=v2
    the key-value pair could be dynamically in this section. then I want to get all data in Mysection.  How can I get it in a loop for all in powerscript?

    This is what you need:
    integer     li_fhandle, li_rcode = 1, li_sfound = 0, li_idx = 0, li_eqpos, i
    string ls_filename = 'C:\app.ini'
    string ls_line, as_key[], as_val[]
    string ls_section = '[General]'
    // OPEN INI FILE
    li_fhandle = FileOpen(ls_filename, LineMode!)
    IF IsNull(li_fhandle) OR li_fhandle < 1 THEN
      // DO NOTHING
    ELSE
      DO WHILE li_rcode > 0
      li_rcode = FileRead(li_fhandle, ls_line)
      IF li_rcode > 0 THEN
      IF POS(ls_section, ls_line) > 0 THEN
      li_sfound = 1
      CONTINUE
      END IF
      IF li_sfound = 0 THEN CONTINUE
      IF POS(ls_line, '[') > 0 AND POS(ls_line, ']') > 0 THEN EXIT
      li_eqpos = POS(ls_line, '=')
      li_idx++
      as_key[li_idx] = MID(ls_line, 1, li_eqpos - 1)
      as_val[li_idx] = MID(ls_line, li_eqpos + 1)
      END IF
      LOOP
    END IF
    FOR i = 1 TO li_idx
      messagebox('Key - Value',as_key[i] + ' = ' + as_val[i])
    NEXT
    // CLOSE INI FILE
    IF li_fhandle > 0 THEN
       FileClose(li_fhandle)
    END IF
    Adapt it to your needs... you probably should make it a function.

  • How can i get all values from jtable with out selecting?

    i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
    Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
    thanks in advance.
    raja

    You could set the table's data model to be the same:
    output2.setModel( output1.getModel() );

  • How to get the data from a cluster table to BW

    Dear All,
    I want to extract the data from R/3 to BW by using 2 tables and one Cluster B2.
    Actually my report contains some fields from PA2001, PA2002 and one cluster table B2 (Table ZES). Can I create View by using these 3 tables? If it is not possible how can I get the data from the cluster? Can I create generic datasource by using cluster tables directly?
    In SE11 Transaction the Cluster (table ZES) is showing invalid table.
    I referred some Forums, but no use.
    Can any body tell me procedure to get the data from a cluster (table ZES) ?
    Waiting for you results.
    Thanks and regards
    Rajesh

    HI Siggi,
    Thank you for your reply..
    I am also planning to do FM to get the data. But it is saying that the Cluster table ZES does not exist (ZES is the the standard table, in SE11 also).
    How can I use the Fields from the that table.?
    What can I do now, can you please explain me about this point.
    Waiting for your reply.
    Thanks and Regards
    Rajesh
    Message was edited by:
            rajesh

  • Why do we get the data from a view to a report.

    hi
    why do we get the data from a view to a report. is it possible to get the data from a view in all the cases?

    hi Jyotssna,
      Suppose you are planning to get the data from multiple tables then you got to specify seveal condtions and make use of joins which results in poor performance in fetching the data . In order to improve the performance we make use of views where the conditions of different tables are defined and the data is fetched accordingly.
    Regards,
    Santosh

  • Why the 2LIS_08TRTK extractor can not get  all data

    Hello, BW Gurus.
    Why the 2LIS_08TRTK and 2LIS_08TRTLP extractors can not get all data. I had used the RSA3 and get 10 registers, when a check at the VTTK table I had 20 registers, I didnt use filters at RSA3, could you help to know what happen o correct it.

    Is it because
    <i>
    Shipment documents and their dependent objects (shipment stages as well as shipment items [deliveries in the shipment]) are only extracted into BW when the Shipment completion status has been set.
    This is necessary because the numeric values that result from the delivery documents are only established at the time. If the data were already stored earlier in BW, the shipment data would not be updated if the delivery notes were changed in BW.
    </i>
    - from oss note 573470.

  • How to use a regural expression to get all digit from a string.

    Hi All,
    Do you know how to use regural expression to get all digits from the following string via ABAP program?
    "'Log Attributes                 0 (  0 )     (   10 % Available  )"
    Thanks,
    Andrew

    Hi,
    Try the code mentioned below:
      DATA: STR_LEN  LIKE SY-FDPOS,
            RSTR_LEN LIKE SY-FDPOS,
            OFF      LIKE SY-FDPOS.
      DATA: IDX      LIKE SY-FDPOS,        "mn B20K054003
            CL       LIKE SY-FDPOS.        "mn B20K054003
      DATA: RSTRING(40).
      DATA: STRING(40).   " value 'A,N,I,L'.
      FIELD-SYMBOLS: <NLS_CHAR>.           "mn B20K054003
    MOVE I_REGUH-ZNME1 TO STRING.
      MOVE SPACE TO RSTRING.
      STR_LEN = STRLEN( STRING ).
      DESCRIBE FIELD RSTRING LENGTH RSTR_LEN.
      IF RSTR_LEN < STR_LEN. RAISE TOO_SMALL. ENDIF.
      WHILE IDX < STR_LEN.                 "mn B20K054003
        ASSIGN STRING+IDX(*) TO <NLS_CHAR>.   "mn B20K054003
        IF SY-LANGU EQ '2'.                "mn B20K054003
          CALL FUNCTION 'NLS_THAI_CHARLEN' "mn B20K054003
               EXPORTING                   "mn B20K054003
                    THAI_STRING  = <NLS_CHAR>       "mn B20K054003
               CHANGING                    "mn B20K054003
                    THAI_CHARLEN = CL.     "mn B20K054003
        ELSE.                              "mn B20K054003
          CL = CHARLEN( <NLS_CHAR> ).      "mn B20K054003
        ENDIF.                             "mn B20K054003
        IF IDX NE 0.                       "mn B20K054003
          SHIFT RSTRING RIGHT BY CL PLACES."mn B20K054003
        ENDIF.                             "mn B20K054003
        RSTRING+0(CL) = STRING+IDX(CL).    "mn B20K054003
        IDX = IDX + CL.                    "mn B20K054003
      ENDWHILE.                            "mn B20K054003
    Regds,
    Anil
    Edited by: Matt on Jul 1, 2009 9:36 AM -added code tags

Maybe you are looking for

  • ITunes Library Out-of-Order

    Version: iTunes 7.5 At first, when I imported music files, they would always group together in order of tracks on the CD-just as I liked and wanted them to be. Now, my library completely changed and is all in alphabetical order and tracks from differ

  • For the Inspection lot status is CRTD instead of REL status

    Dear Experts, Today I have observed strange behavoir of the system. For the Finished material 04 insp type, Every day we used to generate inspection lots automatically with MB31for 101 mov type. generated inspection lot status will be REL bydefault.

  • HT4059 can I share i books with another i phone user?

    Can I share iBooks that I have purchased with another iPhone user? If so, how do I do that?

  • Untitled file names

    Question: How do I still have "Untitled" files when I named them when I captured them? Background: I went by Larry Jordan's (www.larryjordan.biz/articles/lj_archive.html) article and set up my "boot disk" for FCE projects and my second internal hd as

  • Common strategy to read a config file???

    Hi.. I'm a new java programer, in reality i program SERVLETs, JSP ,etc,ec (WEB). I need a program to do a realy specific work, this program work fine, but now i need read a config file , my question is if exists strategy's about this problem in JAVA;