5 Replies Latest reply on Jan 30, 2012 2:17 AM by pfernand

    Edit on ArcGis Android

    pfernand
      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
        • Re: Edit on ArcGis Android
          dking-esristaff
          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/knowledgebase/techarticles/detail/39496

          Cheers,
          Denise
          • Re: Edit on ArcGis Android
            pfernand
            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/xxxxxxxx/FeatureServer
            but still not working

            Tanks
            Pedro

            pd. apologies by my english of google translator ;)
            • Re: Edit on ArcGis Android
              JGravois-esristaff
              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/arcgisonline/help/index.html#//010q0000004m000000

              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": []
              }
              • Re: Edit on ArcGis Android
                pfernand
                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
                • Re: Edit on ArcGis Android
                  pfernand
                  I answer myself.

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



                  Thanks for everything!