Select to view content in your preferred language

delete records using applyedits

3373
3
Jump to solution
02-27-2015 06:14 AM
EvelynHernandez
Frequent Contributor

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
Frequent 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
Frequent 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
Frequent Contributor

Yes thanks Nigel as always.

I already resolve my problem using ur suggestion long ago

NigelDsouza
Frequent Contributor

Thumbs up

Regards,

Nigel

0 Kudos