delete records using applyedits

3045
3
Jump to solution
02-27-2015 06:14 AM
EvelynHernandez
Occasional Contributor III

Hi guys, i hope u can help me. Im trying to get the code in flex for deleting a row in s grid that i have using the applyedits but i cannot. How can i do that? Thx 🙂

0 Kudos
1 Solution

Accepted Solutions
NigelDsouza
Occasional Contributor

Hi Evelyn,

You wish to delete the features from the feature class or spark control datagrid?

If its the from the feature class then simple pass an array of graphics(each graphic must contain a valid objectid) as the third parameter

in the applyEdits method.

myFeatureLayer.applyEdits(null,null,deleteGraphicsArray,new AsyncResponder(onResult,onFault));

Regards,

Nigel.

View solution in original post

0 Kudos
3 Replies
NigelDsouza
Occasional Contributor

Hi Evelyn,

You wish to delete the features from the feature class or spark control datagrid?

If its the from the feature class then simple pass an array of graphics(each graphic must contain a valid objectid) as the third parameter

in the applyEdits method.

myFeatureLayer.applyEdits(null,null,deleteGraphicsArray,new AsyncResponder(onResult,onFault));

Regards,

Nigel.

0 Kudos
EvelynHernandez
Occasional Contributor III

Yes thanks Nigel as always.

I already resolve my problem using ur suggestion long ago

NigelDsouza
Occasional Contributor

Thumbs up

Regards,

Nigel

0 Kudos