+ Reply to Thread
Results 1 to 6 of 6

Thread: Edit on ArcGis Android

  1. #1
    pedro fernandez
    Join Date
    May 2011
    Posts
    6
    Points
    0
    Answers Provided
    0

    Question Edit on ArcGis Android

    Hi!

    At present I see my service on my mobile smartphone terminal, but I can not edit or entities query.

    However, the same service in a web application if you can do editing.

    Any extra parameter in the JSON code to make this possible?
    users? permissions?
    I'm confused

    Please help.

    My platform is ArcGIS Server 10 + sql server 2008

    Thanks!

    Regards.
    Pedro

  2. #2
    Denise King

    Join Date
    Oct 2009
    Posts
    433
    Points
    41
    Answers Provided
    8

    Default Re: Edit on ArcGis Android

    Pedro,

    What type of services are you using? To be able to edit a feature or collect a new one you need to use feature services in your webmap.
    1 - tap on the feature and a black callout with a white arrow appears
    2 - when that arrow appears, tap on it and it will open up the attribute view and there will be an edit button which will allow you to edit the features attributes and edit its location

    Here is knowledge base article with step-by-step instructions and screenshots of the workflow to get you started.
    HowTo: Edit the attributes or geometry of existing features using ArcGIS for Android,
    http://support.esri.com/en/knowledge...s/detail/39496

    Cheers,
    Denise
    Denise King
    Apps/Mobile Development Technical Lead
    User Advocacy Group, Esri Support Services

  3. #3
    pedro fernandez
    Join Date
    May 2011
    Posts
    6
    Points
    0
    Answers Provided
    0

    Default Re: Edit on ArcGis Android

    Thanks @Denise62 for your reply.
    The problem is that not showing the edit button.
    If I put the service in arcgis.com, if shown.
    Maybe the JSON code?


    {
    "operationalLayers": [{
    "url": "http://xxxxxxxx/ArcGIS/rest/services/xxxxxxxx/MapServer",
    "visibility": true,
    "opacity": 1,
    "mode": 1,
    "title": "xxxxxxx"
    }],
    "baseMap": {
    "baseMapLayers": [{
    "opacity": 1,
    "visibility": true,
    "url": "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"
    }],
    "title": "Topografico"
    },
    "widgets": null,
    "version": "1.1"
    }



    I optionally substituted by:
    http://xxxxxxxx/ArcGIS/rest/services.../FeatureServer
    but still not working

    Tanks
    Pedro

    pd. apologies by my english of google translator
    Last edited by pfernand; 01-26-2012 at 06:30 AM.

  4. #4
    john gravois

    Join Date
    Dec 2009
    Posts
    788
    Points
    450
    Answers Provided
    77

    Default Re: Edit on ArcGis Android

    Hi Pedro,

    In order to edit in a native Android app it is currently necessary to include a popupInfo attribute in your JSON when you publish the content to your Mobile Content Server. Otherwise it is a known problem (NIM075943) that Android will tell you that no editable layers are present. Working with the content in Arcgis.com and then "stealing" the JSON content is the easiest way to workaround the issue for the time being, but I have included sample JSON notation here as well.

    Configuring pop-up windows in arcgis.com
    http://help.arcgis.com/en/arcgisonli...0000004m000000

    JSON formatting:
    "popupInfo": {
    "title": "sde.SDE.Airports: {NAME}",
    "fieldInfos": [
    {
    "fieldName": "OBJECTID",
    "label": "ObjectID",
    "isEditable": false,
    "tooltip": "",
    "visible": false,
    "format": null,
    "stringFieldOption": "textbox"
    },
    {
    "fieldName": "NAME",
    "label": "AirportName",
    "isEditable": true,
    "tooltip": "",
    "visible": false,
    "format": null,
    "stringFieldOption": "textbox"
    }
    ],
    "description": null,
    "showAttachments": false,
    "mediaInfos": []
    }

  5. #5
    pedro fernandez
    Join Date
    May 2011
    Posts
    6
    Points
    0
    Answers Provided
    0

    Default Re: Edit on ArcGis Android

    Quote Originally Posted by jgravois View Post
    Hi Pedro,

    Working with the content in Arcgis.com and then "stealing" the JSON content }

    Thank you friend!

    Please explain to me how you could "steal" the content of arcgis.com?

    Regards

  6. #6
    pedro fernandez
    Join Date
    May 2011
    Posts
    6
    Points
    0
    Answers Provided
    0

    Default Re: Edit on ArcGis Android

    I answer myself.

    The content is found at:
    http://arcgis.com/sharing/content/items/ <item> / data? f = pjson



    Thanks for everything!

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts