View Single Post
  #1 (permalink)  
Old 07-09-2008, 01:20 AM
AbhinavDhasmana
 
Posts: n/a
Diggs:
Default Passing arraycollection to thedata-management-config.xml

Hi

i am trying to pass an arraycollection to the data-management-config.xml so
that my database can be updated with the new changed data. My code is
attached...please let me know what is the correct way to pass an
arraycolleciton. putting a [] brackets around the arraycollection makes it an
object

************************************************** *********
Flex Code
************************************************** **********
<mxataService id="datagridService" destination="datagriddestination"
fault="handleFault(event)" autoCommit="true"/>

datagridService.fill(test,currentProjectName ,datagridData);


************************************************** *************
data-management-config.xml
************************************************** **************
<fill-method>
<name>updateCodeCoverage</name>
<params>java.lang.String,java.util.List</params>
</fill-method>

************************************************** *******************
Error
************************************************** ******************
Unable to locate a fill method for destination 'datagriddestination' which
matches the following parameters ( Stringname, and then the individual
components of the arraycolelction rather than just the arraycollection).....
for example if arraycollection contain A,1 B,2 C,3 (its an arraycollation of
objects)...the error shows like

projectnametest,A,1 B,2 C,3



Reply With Quote
Sponsored Links