Flex Mobile: Switching Between Edit and Non Edit Modes

456
3
07-26-2013 07:38 AM
MattSheehan
Occasional Contributor III
We have an issue when switching between edit and non edit modes in Flex Mobile. We would like the same seamless functionality we see using the ArcGIS Viewer for Flex:

http://help.arcgis.com/en/webapps/flexviewer/live/index.html?config=apps/config-edit.xml

We are seeing problems with the attribute inspector when we switch into edit mode, as shown in the video below:

http://webmapsolutions.com/demos/attinspectorIssue/attinspectorIssue.html

Wondered if you might be able to shed any light on what might be causing these issues.

Thanks

--Matt
Tags (2)
0 Kudos
3 Replies
SarthakDatt
Occasional Contributor III
Hi Matt,

Looks like when you switch to the edit mode, it still shows the pop-up window. You can set this property https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/Map.html#infoWindowRenderersEnabled to false for the edit mode and toggle it when switching between the modes.

Hope that helps.
0 Kudos
MattSheehan
Occasional Contributor III
Thanks for the feedback Sarthak. Looks good just one thing left - see the video below -  with the switch back to non edit mode:

http://www.webmapsolutions.com/demos/AttributeInspIssue2/AttributeInspIssue2.html

using this code:

   //Deactivate the editor
   else
   {
    
    Model.instance.map.infoWindowRenderersEnabled = true;
    
    //Model.instance.map.infoWindow.hide();
    ModelEdit.instance.editor.templatePicker.clearSelection();
    
    ModelEdit.instance.editor.featureLayers = null;
    ModelEdit.instance.editor.map = null;
    ModelEdit.instance.editor.drawTool.deactivate();
    ModelEdit.instance.editor.editTool.deactivate();
}


Thanks again

--Matt
0 Kudos
MattSheehan
Occasional Contributor III
Found the problem. Thanks again for the help.
0 Kudos