Editor Widget - control editing dynamicly

Discussion created by bxfeat05 on Mar 1, 2012
Latest reply on Mar 6, 2012 by bxfeat05
I am trying to figure out some way to to turn off the editing capability of the EditorWidget based on a filtering device.

We have a website that filter's out the editable layers using on OnDemand feature layer. This ensures that only one user's entries are seen by the user at one time. We only want superusers and the feature's owner to be able to edit existing features, while all other users will be able to see the observation attributes.

Something similar to this example: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ed_multipleAttrInspector.html except I want to change the attributinspector when I user clicks a button (changes user).

Any help...or suggestions are greatly appreciated.