Thanks for reply. I am new to these.
Signature of my java class which returns array of value object is as follows
Public static ItemdetailVO[] getItemDetails(String month);
{
.............
}
when I make a call from mxml file as you mentioned below
ro.updateMethod(myDataGrid.dataProvider);
Can be the signature of my java class method be like this...?
Public static String saveItemDetails(ItemDetailVO itemdetailArray)
{
System.out.println("from DAO save method array length
"+saveAdjVOArray.length);
for(int i=0;i<saveAdjVOArray.length;i++)
{
System.out.println("Factor from save method :
"+(ItemAdjApplVO)saveAdjVOArray[i]);
}
}
If I have a save method signature like above and I got length = 5 from first
system print out statement and null from second statement.
How to access individual data elements in each VO in my java class. Please
help. I am reaching my deadlines.... 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/