|
POST
|
Well I located the 'folderId' for the moveItem command, but its not a friendly way...Maybe there is an easier way, please let me know.. My Steps... Navigate to the folder on ArcGIS.com (or your Portal) Click the 'Add Item' link The dialog will appear... Open FireBug (or some other HTTP traffic inspection tool) Select the 'Browse' Find a .CSV file on your computer - or create some temp.csv file) Click Open within your dialog (or double click) Now watch in Firebug for the /addItem command From there you will find the folder ID before the /addItem in the URL - it will be a GUID I hope there is a better way to get this id, please let me know. Drew
... View more
10-09-2014
10:50 AM
|
2
|
0
|
4083
|
|
POST
|
Hello, I am attempting to 'move' an item in ArcGIS online from folder A to folder B through the REST API, but according to the documentation it states I need a folder id to move to. Usually I can get an item ID from the web site, but no where do I see a folder id. Does anyone know how I can acquire the folder ID I need? I am just going to hard code it into my application so I am not looking for code, just some what I can find this unique ID. Any help would be appreciated. Andrew
... View more
10-08-2014
01:09 PM
|
0
|
6
|
8464
|
|
POST
|
I was able to figure this out.. It was not as simple as I expected but it can be done. Basically I had to create a Multipart Form Post in .NET There is a nice C# Class someone wrote to assist with this here: Multipart Form Post in C# - Brian Grinstead Andrew
... View more
10-07-2014
08:02 AM
|
1
|
0
|
1489
|
|
POST
|
Hello, I am attempting to use the REST API for ArcGIS Online. I have been successful in adding some general items through code, but I would like to now upload a map package using the API. I am using the 'AddItem' function and am applying the 'file' parameter in my POST request (I also make it multipart) What I am wondering what do I pass as a value for the 'file' parameter when trying to upload a file such as a map package? Do I pass a local path: c:\temp\test.mpk Do I pass a Base64 string ? Do I pass some sort of byte array? I have tried many different methods, but none are working. Any ideas would be helpful. Thanks, Drew
... View more
10-06-2014
12:29 PM
|
0
|
2
|
5073
|
|
POST
|
Thanks for the suggestion Ellery, but unfortunately no matter what I do the function always seems to call the connected portal defined in ArcGIS Administrator (as seen in Fiddler). I think I will be exploring the REST API or ArcObjects to accomplish this. Andrew
... View more
10-06-2014
05:51 AM
|
0
|
0
|
1029
|
|
POST
|
Hello, I would like to use arcpy to share a map package (.mpk) in both ArcGIS Online and our local Portal. I have been testing the SignInToPortal_server (username, password, portal_url) function but the 'portal_url' parameter seems meaningless (see bold text in the below documentation). Docs for portal_url paramater The Sign In To Portal tool reads the URL set in Desktop Administrator. Any user entered value is ignored. The default value is URL for the ArcGIS portal currently chosen by the user in Desktop Administrator. Basically I would like to do the below but I can not get around the settings pre-stored in Desktop Administrator.... arcpy.SignInToPortal_server("username","password", "http://www.arcgis.com/") # TO DO ->: Upload Map Package to ArcGIS.com arcpy.SignOutFromPortal_server() arcpy.SignInToPortal_server("username","password", "http://www.myLocalPortalURL.com/") # TO DO->: Upload Map Package to Local Portal arcpy.SignOutFromPortal_server() Any ideas on how to change my portal URL programmatically? Andrew
... View more
10-02-2014
08:57 AM
|
0
|
2
|
4984
|
|
IDEA
|
-->
When publishing an ArcGIS Server Map Service there is an error that pops up if a feature selected within the Map Document. This error prevents the service from being published... I would love to see the service editor just ignore any selected feature(s) and let the service publish. Its more of a small annoyance than anything. Error to filter out: 00021: Feature selections are not supported
... View more
07-17-2014
01:06 PM
|
4
|
0
|
1739
|
|
POST
|
I was just looking over the Esri JS API documentation and the Esri REST API documentation at query operations. I noticed that the query REST endpoint is called by the FeatureLayer.queryFeatures function. The query REST endpoint has an option for returnDistinctValues to get a list of unique values in a field. Why isn't this an option for the Query object in the JS API. It's always a lot of trouble to have to sift through the results of a query to get the unique values and it's even worse when there are more values than are returned by a single query. Maybe I am missing something, but in 3.8 its still not in there... I was able to work around it by adding the REST parameter in myself.. Sample
var queryTask = new QueryTask(dataURL + "?returnDistinctValues=true");
Drew
... View more
03-06-2014
03:48 PM
|
2
|
1
|
1352
|
|
POST
|
Glad to hear it worked out. If you don't mind, please mark the thread as answered. That way it will help others know there is a solution to the question. Drew
... View more
12-13-2013
10:28 AM
|
0
|
0
|
963
|
|
POST
|
Daniel, Check out the WebMercatorUtil class. It should help you. There is a sample linked on the page also.. https://developers.arcgis.com/en/flex/api-reference/index.html?com/esri/ags/utils/WebMercatorUtil.html&com/esri/ags/utils/class-list.html If that does not work you are going to have to 'project' the geometry using a Geometry Service... Drew
... View more
12-13-2013
08:52 AM
|
0
|
0
|
963
|
|
POST
|
OK finally got some time to return to this and wanted to update all on this issue. i tried the following things and it seem to fixed the issue. I did not have time to zero in on what fixed the issue. 1. Remove the ArcGIS folders(i had tried to remove them and install before so don't think this did it) 2. Turn of User Access Control on the server during the install 3. Remove all ArcGIS software from the machine and tried to install server on an empty machine. Once i tried to install after this everything seemed to install fine and the service is running fine. hope this helps someone facing the similar issue. Vijay Thanks for the post Vijay 😉 I am running into this same issue and will try your suggestions. Hope all is well with you! Andrew
... View more
12-09-2013
07:14 AM
|
0
|
0
|
6244
|
|
POST
|
I had this same issue in FireFox. I was able to resolve it using a a setTimout on the infowindow.show(...) I was loading an info window on load.
setTimeout(function () {
map.infoWindow.show(mapPoint);
}, 1000);
Tested On: ESRI JSAPI Versions 3.6 and 3.7 Fire Fox Version: 25.0.1 Drew
... View more
12-04-2013
09:40 AM
|
1
|
0
|
2054
|
|
POST
|
I'm trying to figure out if it's possible to load map layers in my ArcGIS Flex API flex application via something like a plaintext config file at runtime. Basically, I'm debugging my application in one environment using the public ESRI-provided map layers, and then when I deploy the application, it'll be using an internally-hosted ArcGIS server instance on site. I'd like to be able to let the administrator configure the URIs for the relevant map layers without having to recompile the .swf. Is that doable? Thanks! -Dan This is exactly what the ArcGIS Viewer For Flex does. It has separate config files that allow you to add layers and widgets through XML. If you download the source, you can see how it is all done. Source: https://github.com/Esri/arcgis-viewer-flex/tags Basically you need to do a HTTP call to the XML file, serialize the file into an object and add the map layers programatically (not through MXML, but through actionscript. that should start you off. Drew
... View more
11-27-2013
06:39 AM
|
0
|
0
|
1175
|
|
POST
|
Does anyone have any thoughts on how to keep a Windows Form on top when in presentation mode? I am creating an add-in and would like to be in presentation mode for a specific tool. I have tried to bring the Form .BringToFront() etc.. but nothing is working. Drew
... View more
11-14-2013
09:28 AM
|
0
|
0
|
843
|
|
POST
|
Drew, I handle this issue in my Identify widget by asking the map service for details of the layer and matching the alias to the actual field name (alot of work I know, but somethimes you just have to do what you have to do). Thanks for the suggestion Robert. I have done similar workarounds. I am primarily wondering why ESRI decided to do this. Is there an advantage that I am missing or was this an over site and should it be looked at or should there be an additional object that contains the fields we need in the IdentifyResult object. It has just always been a frustrating part of the code to deal with. But ya, sometimes you got to do what you got to do.. Drew
... View more
10-30-2013
05:32 AM
|
0
|
0
|
1054
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-04-2013 09:40 AM | |
| 1 | 12-11-2012 10:19 AM | |
| 1 | 05-25-2015 10:46 AM | |
| 1 | 05-10-2016 06:31 AM | |
| 1 | 01-17-2017 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-31-2021
09:54 AM
|