Hi all,

If I confused you all with my earlier mail about this issue, Sorry. What I
want to know is

If I passback the dataprovider of a datagrid to java class thru RemoteObject
as joao_m_fernandes mentioned below
        
        1) will java class get the dataprovider as an array of valueobjects
OR
        as an array of objects so that I have to typecast to value objects?


When I use the following method signature in java class I got length
displayed correctly but when I try to access individual objects and
system.out.println displayed null on server console.

  public static String saveSchedAdj(ItemAdjApplVO[] saveAdjVOArray) throws
SQLException.

Please advice or point me to an url...

If any one of us has already worked this out and if you don't mind can you
post the code please. Thanks in advance..

Thanks!
Hari

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of joao_m_fernandes
Sent: Thursday, April 28, 2005 11:57 AM
To: [email protected]
Subject: [flexcoders] Re: saving data from datagrid

Hari, 

You can send it back like this:

In AS:
ro.updateMethod(myDataGrid.dataProvider);

with MXML

<mx:RemoteObject id="ro" ...>
   <mx:method name="updateMethod">
      <mx:arguments>
          <myArray>{myDataGrid.dataProvider}</myArray>
      </mx:arguments>
   </mx:method>
</mx:RemoteObject>

Jo�o Fernandes

--- In [email protected], "Doodi, Hari - BLS CTR"
<[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> I have a updatable datagrid on my screen. I did get data from the
> RemoteObject call from java backend (an array of value objects).
Data got
> displayed on screen well and user can make updates. Now my question
is how
> can I send this data from datagrid back to my javaclass thru
RemoteObject
> call to save on to database. Please advice or point me to some code
> examples. Thanks in advance..
> 
> Thanks!
> Hari







 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to