POST
|
If the WAB app is in an iframe then the host page should be able to communicate to the WAB app through javascript. I have a widget I was working on to communicate between applications. I modified it to work in an application in an iframe. The main page can send information and the widget within the WAB application receives the data and performs what ever actions are needed. In the parent html javascript I have a function function clickedButton() { var WAB_HANDLE = window.frames[0]; var msg = {source: 'ParentPage', action: 'Zoom', coords: { x: -70.184, y: 44.055 } }; WAB_HANDLE.postMessage(msg, "*"); } in the widget I wired up a message handler this.own(on(window, 'message', lang.hitch(this, this.receiveMessage))); and the receiveMessage function has the code to parse the message and perform what ever action is required. So what I have coded so far is passing an x,y to zoom or to pass a message where the user needs to click on the map to return an x,y. I can post the widget code if you think this would work for you.
... View more
12-12-2018
12:35 PM
|
2
|
1
|
393
|
POST
|
You would need to set that value in the requestSucceeded function. function requestSucceeded(response, io) { dom.byId("status").innerHTML = ""; dojoJson.toJsonIndentStr = " "; dom.byId("content").value = dojoJson.toJson(response, true); if(evt.adds[0].attributes.hasOwnProperty('COMMENTS')){ evt.adds[0].attributes.COMMENTS = response; } }
... View more
12-05-2016
12:01 PM
|
0
|
0
|
538
|
POST
|
the variable "response" is the value if the return is just text. Do you send back a json string or just a value? So is the web service returning text "value1" or something like this json string {'value':'value1'}? If it is a json string then you need to parse it and reference the name otherwise use the value of response. If you run this in IE or Chrome and put a break point in the requestSucceeded function you can see the format of the value that was returned
... View more
12-05-2016
11:20 AM
|
0
|
0
|
538
|
POST
|
Not sure if this is the appropriate place to post this but here goes... Using WAB 2.0 and 2.1 when I add a layer that is was published on my local ArcGIS server in a folder other than the root folder, the service name displayed in the LayerList is the folder name not the map service name. I was able to track ti issue to jimu.js/LayerInfos/LayerInfos.js In the code it assumes the service name to be the next part of the url after "rest/services". To get the code to work for me I changed the following code (line 598 in V2.1) existing code... serviceName = layer.url.substring(index2).split('/')[0]; New code... serviceName = layer.url.replace(/\d+$/, '').replace(/\/$/, "").split('/').slice(-2)[0]; The new code strips any trailing layer numbers and slashes then takes the next to last value in the new url as the map service name. This assumes that the map service name would always be in that position. At least it has been for anything I have published but I'm not sure of all of the possible url formats. But this does fix my issue and is a quick fix for anyone that might have the same issue.
... View more
07-20-2016
09:59 AM
|
2
|
4
|
2719
|
POST
|
LayerInfos has the information. so layer.layerInfos[0].name returns Cities layer.layerInfos[1].name returns Rivers layer.layerInfos[2].name returns States layer is the ArcGISDynamicMapServiceLayer for that service in your example.
... View more
05-28-2016
02:06 PM
|
1
|
0
|
296
|
POST
|
I have the same issue with my local developers install install (version 1.2). I finally opened the developers window in Chrome and noticed the app was switching from desktop mode to mobile mode (in the debug console window) and the button would sometimes change from Saved to Save allowing me to save my work. A little more testing I found that resizing the browser window to a much smaller size the button would swap from "Saved" to "Save" allowing me to save my work. Kind of a lame work around but definitely better than having to rebuild the application over and over. So this does seem to be a bug of some sore in the app itself.
... View more
10-30-2015
10:26 AM
|
7
|
17
|
2145
|
POST
|
We are using Collector for iOS (version 10.2.3) and have a feature service setup to track edits. When we use an online map to collect data the user name is stored in the "Creator" field in the feature class. When we use an offline map to collect data after synching the data we find the "Creator" and "Editor" fields empty but the "Creator Date" and "Editor Date" fields seem to be correctly populated. Is this behavior for offline maps expected or is this bug?
... View more
09-17-2014
08:56 AM
|
0
|
3
|
3388
|
POST
|
I am using the Reverse Geocoding Rest API to get addresses for points. http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer When I do a reverse geocoding for an address in Augusta Maine the city name returned is incorrect. The city returned is a neighboring town of Chelsea. Is there a better reverse geocoding service? If I geocode an address 83 Edison Dr, Augusta, Maine, 04330 I get the point "x": -69.818462933916464, "y": 44.313100364591264 but when I reverse geocode using that point I get the following. { "address": { "Address": "83 Edison Dr", "Neighborhood": null, "City": "Chelsea", "Subregion": null, "Region": "Maine", "Postal": "04330", "PostalExt": null, "CountryCode": "USA", "Loc_name": "USA.StreetAddress" }, "location": { "x": -69.818462933993914, "y": 44.313100364543232, "spatialReference": { "wkid": 4326, "latestWkid": 4326 } } }
... View more
08-06-2014
05:22 AM
|
0
|
1
|
1217
|
POST
|
I have a published map on ArcGIS Online with labeling turned on for 1 feature class. I can see the labels in the map in ArcGIS Online but the labels do not display when viewing the map in Collector. Is this a limitation of labeling?
... View more
07-30-2014
07:35 AM
|
3
|
40
|
30242
|
POST
|
No the option isn't there. I was talking to one of our ESRI contacts and we found that I needed to fully close out of the Collector app and restart Collector and the issue went away. I now get prompted for the base map. I'm new to iPads so signing out of the Collector app really doesn't close it as I thought. I had to remove it from the list of running apps.
... View more
07-03-2014
10:38 AM
|
0
|
0
|
347
|
POST
|
I can no longer select a local tile package for my off line map. Everything was working yesterday but now when I start the map that is not already connected to a local cache it will not prompt me to select a cache that has been side loaded on the device. I see there were changes rolled out to ArcGIS Online last night. Has any one tried this functionality today? I have a call into ESRI Support but I haven't heard anything back.
... View more
07-03-2014
09:17 AM
|
0
|
3
|
699
|
POST
|
I ended up creating a directory on the c drive (c:\FGDB_Binaries) just for the binary files. Esri.FileGDBAPI.dll, FileGDBAPI.dll, FileGDBAPID.dll The trick to get it to work for me was to put that directory name in the system PATH. Just putting the files in the bin directory wasn't working. In IIS I turned on "Failed Request Tracing" and view the error which pointed me to the fact it could not find the dlls in the various paths. Adding the directory to the PATH solved my issue.
... View more
04-04-2014
11:42 AM
|
0
|
0
|
1149
|
POST
|
I have deployed a web service using the API and my project references the Esri.FileGDBAPI.dll and I also put the 3 dlls you listed in a directory on the server and added that location to the System Path environment variable and that worked for me.
... View more
04-04-2014
06:40 AM
|
0
|
0
|
1149
|
POST
|
Thanks for your response. I was hoping the search would return either 1 feature if it is inside it or 0 features if the point is not in the polygon. When I do a table search (I am using the C# wrapper) setting the envelop min/max the same values as a point or even expanding the point to a small area I still get multiple results from the search. I did find code for a winding number algorithm to detect whether the point is in or outside of a polygon. I reworked the c# code to deal with a MultipartShapeBuffer with parts and points. I now make the table search and then loop the results, usually 2 or 3 rows, to find which of the returned rows is the polygon I'm looking for.
... View more
03-10-2014
10:54 AM
|
0
|
6
|
843
|
POST
|
Can the File Geodatabase API used to do a point in a polygon spatial query? If so does anyone have sample code?
... View more
02-26-2014
08:56 AM
|
0
|
8
|
5240
|
Title | Kudos | Posted |
---|---|---|
1 | 05-28-2016 02:06 PM | |
2 | 12-12-2018 12:35 PM | |
7 | 10-30-2015 10:26 AM | |
2 | 07-20-2016 09:59 AM | |
3 | 07-30-2014 07:35 AM |
Online Status |
Offline
|
Date Last Visited |
02-01-2023
06:43 PM
|