POST
|
I think I have what I'm looking for in this post.. How do I make a hosted feature layer editable with... - GeoNet, The Esri Community
... View more
12-01-2020
10:59 PM
|
0
|
0
|
67
|
POST
|
I am trying to overwrite a hosted feature layer in AGOL that has editing enabled on it. When I update the service, the editing capability of the service is removed. I'd like to retain it. Seemed like this could be fixed by adding JSON params to the arcgis.gis publish method. Are my publishing_parameters correct below? Or am I going about this wrong? arcpy.mp.CreateWebLayerSDDraft(mp, sddraft, sd_fs_name,'MY_HOSTED_SERVICES', 'FEATURE_ACCESS',None, True, True, True)
arcpy.StageService_server(sddraft, sd)
sdItem = gis.content.search("{} AND owner:{} ".format(sd_fs_name, agolUsername), item_type="Service Definition")[0]
sdItem.update(data=sd)
pub_params = {"layerInfo" : {"capabilities": "Editing"}}
fs = sdItem.publish(publish_parameters=pub_params, overwrite=True)
... View more
12-01-2020
02:03 PM
|
0
|
1
|
86
|
POST
|
Is there a way to get rid of the combo box in the Commands menu for a combo box add-in? A good example of what I'm looking for is the Map Scale combo box (shown at bottom). It just has the name of the tool without showing the actual combo box. It also has an icon. Could I add that also? Or no on both?
... View more
10-06-2020
05:32 PM
|
0
|
0
|
33
|
POST
|
Thanks Robert. I'll have to get a workaround in place. I asked ESRI about it, and they said it would theoretically work if my data was projected to web mercator aux sphere before I put it into the geometric network, (because the basemap and geometric data must be in the same projection) but it's not really a realistic solution. I tried creating a basemap in state plane, which is what my data is in, but I still couldn't edit the data over the web. So I've scrapped it, and I'll figure something else out.
... View more
08-13-2019
08:12 AM
|
0
|
0
|
58
|
POST
|
I also just noticed that when (in code), I write something like console.log(featureLayer.isEditable()), it comes back as false. Which is strange, given my capabilities in the rest service.
... View more
08-09-2019
09:07 AM
|
0
|
2
|
58
|
POST
|
Hi Than, Thanks for the reply. I haven't been able to get much info from the error messages. Here is what I get (attached below). When I try and apply edits directly, through the REST API, I get an error that says: Unable to complete operation. Internal error during object insert. Not sure what's going on here. I can apply edits on data in the same feature dataset, but the common denominator when the apply edits operation fails is when the data belongs to a geometric network.
... View more
08-09-2019
08:53 AM
|
0
|
0
|
58
|
POST
|
Hello, I'm am trying to create points using the Javascript 3.x API. Can I not apply edits on a layer that participates in a geometric network? Apply Edits works fine on a non-geometric network layer, but when I try to create a point on a network layer, I get "Unable to Complete Operation".
... View more
08-08-2019
01:16 PM
|
0
|
5
|
270
|
POST
|
Ah, I see what you're saying. I made the changes and got it going. Thank you very much!!
... View more
06-05-2019
06:01 PM
|
0
|
0
|
76
|
POST
|
Robert, Thanks. I can now create a dialog box programatically, and set the content as "this.myTemp" to get the template from Widget.html. I guess I'm confused on how to access the button though, so I can add functionality to it. I could call the following "btn1" from my JS, but as soon as I add the data-dojo-type="dijit/form/button" on there, I can no longer call it. But if I leave it off, it's no longer a "dojo/button" and it loses it's style. Does that make sense? < div data-dojo-attach-point = " myTemp " title = " My Title " > < button class = " btn " data-dojo-attach-point = " btn1 " > </ button > </ div >
... View more
06-05-2019
09:23 AM
|
0
|
2
|
76
|
POST
|
Hello, I'm working in WAB 2.12. I'm not sure why this wouldn't work, and I was hoping someone could point me in the right direction. I want a dialog box upon opening the widget, and I'm placing the button markup for the dialog box in widget.html, but i thought you were supposed to be able to reference the HTML via the data-dojo-attach-point. When my dialog box opens, it's empty. Do you know what I'm missing? Widget.html < div > < div data-dojo-attach-point = " myTemp " data-dojo-type = " dijit/Dialog " title = " My Title " > < button class = " btn " data-dojo-type = " dijit/form/Button " type = " button " > Button1 </ button > < button class = " btn " data-dojo-type = " dijit/form/Button " type = " button " > Button3 </ button > < button class = " btn " data-dojo-type = " dijit/form/Button " type = " button " > Button2 </ button > </ div > </ div > and Widget.js define ( [ 'dojo/_base/declare' , 'dojo/_base/lang' , "dijit/_WidgetsInTemplateMixin" , 'jimu/BaseWidget' , "dijit/form/Button" , "dijit/Dialog" , "dojo/dom" , 'dojo/on' , "esri/lang" , "dojo/domReady!" ] , function ( declare , lang , _WidgetsInTemplateMixin , BaseWidget , Button , Dialog , dom , on , esriLang , ) { return declare ( [ _WidgetsInTemplateMixin , BaseWidget ] , { baseClass : 'jimu-widget-myWidget' , onOpen : function ( ) { this . inherited ( arguments ) ; console . log ( 'onOpen' ) ; this . myDialog = new Dialog ( { title : this . title , content : this . myTemp } ) this . myDialog . show ( ) ; } ,
... View more
06-04-2019
09:48 AM
|
0
|
4
|
263
|
Online Status |
Offline
|
Date Last Visited |
12-05-2020
05:38 PM
|