|
POST
|
Hey Ryan, In my app I use the variable "graphicf". In your routine, you use the variable "graphic". Ken was onto something. Change graphicf to graphic (in all places in the onRowClickHandler) and see if that works. Thanks, Luci
... View more
06-12-2014
03:37 AM
|
0
|
0
|
1046
|
|
POST
|
Are you using Legacy or AMD? Did you define point, polygon, and polyline. AMD Style: require(["...whatever else you are defining, "esri/geometry/Point", "esri/geometry/Polyline", "esri/geometry/Polygon",....end of your define"], function(....etc..., Point, Polyline, Polygon, ....etc..){ Legacy Style: dojo.require("esri.geometry.Point"); dojo.require("esri.geometry.Polyline"); dojo.require("esri.geometry.Polygon"); Thanks, Luci
... View more
06-11-2014
03:15 AM
|
0
|
0
|
1232
|
|
POST
|
Hey, This is the onRowClickHandler that I use: function onRowClickHandler(evt) { var clickedObjectf = grid.getItem(evt.rowIndex).OBJECTID; var selectedObjectf; var distance = 50; dojo.forEach(map.graphics.graphics, function(graphicf) { if ((graphicf.attributes) && graphicf.attributes.OBJECTID === clickedObjectf) { selectedObjectf = graphicf; return; } }); if (selectedObjectf.geometry.declaredClass == 'esri.geometry.Point'){ var PointExtent = new esri.geometry.Extent({ "xmin" : selectedObjectf.geometry.x - distance, "ymin" : selectedObjectf.geometry.y - distance, "xmax" : selectedObjectf.geometry.x + distance, "ymax" : selectedObjectf.geometry.y + distance, "spatialReference" : { "wkid" : 102100 } }); map.setExtent(PointExtent); } else if (selectedObjectf.geometry.declaredClass == 'esri.geometry.Polygon'){ var selectedParcel = selectedObjectf.geometry.getExtent(); map.setExtent(selectedParcel); } } It sets a different extent based upon whether the selected object in the row is a point or a polygon. You can add another "else if" for polyline similar to: else if (selectedObjectf.geometry.declaredClass == 'esri.geometry.Polyline'){ var selectedStreet = selectedObjectf.geometry.getExtent(); map.setExtent(selectedStreetl); } Thanks, Luci
... View more
06-10-2014
04:25 AM
|
0
|
0
|
1232
|
|
POST
|
I deleted the text field we were using for symbology and created a new field that uses a domain and the problems on the IOS device seem to have been rectified. I don't know why but using that text field weirded out Collector on IOS. Thanks, Luci
... View more
05-27-2014
04:54 AM
|
0
|
0
|
1506
|
|
POST
|
Luci, I did not read which collector you are seeing domain issues on. We are having problems on the IOS version of Collector. When adding or editing an existing feature, the 5 fields that use domains show up as text boxes and not pick lists. Adding or editing existing features when we use ArcGIS Online performs as expected - The 5 fields that use domains all show the drop down domain pick lists. Either way, it sounds like you changed symbology based on another field at some point through map viewer. Your changes overwrite the feature layer types and you loose all of your domains assigned to feature template fields. The domains still exist for the fields, but your feature templates have their own domain rules. No, we did not change symbology to use another field. The map looked great on ArcGIS Online and in the Collector for IOS app. All the domains were showing up in pick lists. Then, when we used the map in Collector for IOS, the VERY FIRST feature we edited messed up everything, but only in Collector for IOS. After Collector for IOS messed up, we looked at the map on ArcGIS Online and it still looks and performs as it should - the domain pick lists are all still there. So it has to be a bug with Collector for IOS. If we have to have a feature template for every possible scenario of a feature - 5 fields with 5 domains per feature - each domain has between 2 and 20 codes - that is an impossible amount of feature templates to create or scroll thru to add the correct feature. I don't know how to fix it at this point. We only have an IPad for data verification/addition so we cannot troubleshoot it on an android device. We may have to look at using another software. If you are courageous enough, you can use REST to update the feature service definition so that each "type" inherits the domain for each field. Pain in the rear though. Sure, I am froggy, how would I go about updating the REST feature service definition? Thanks, Luci
... View more
05-20-2014
06:09 AM
|
0
|
0
|
825
|
|
POST
|
In the locator.js file, I added code because my parcel map is in a different projection and it cleared up the buffer error. //Fetch parameters to buffer function BufferParameters() { isSpanClicked = false; HideMapTip(); dojo.disconnect(mouseMoveHandle); var params = new esri.tasks.BufferParameters(); if (map.getLayer(queryGraphicLayer).graphics) { var polygon = new esri.geometry.Polygon(map.spatialReference); for (var i = 0; i < map.getLayer(queryGraphicLayer).graphics.length; i++) { polygon.addRing(map.getLayer(queryGraphicLayer).graphics.geometry.rings[0]); } params.geometries = [polygon]; } else { alert(messages.getElementsByTagName("createBuffer")[0].childNodes[0].nodeValue); } params.distances = [dist.value]; params.unit = esri.tasks.GeometryService.UNIT_FOOT; params.bufferSpatialReference = new esri.SpatialReference({ wkid: 2238 }); params.outSpatialReference = map.spatialReference; esri.config.defaults.io.alwaysUseProxy = true; geometryService.buffer(params, ShowBuffer, function (err) { HideLoadingMessage(); alert("Query " + err); }); //querying geometry service for buffered geometry esri.config.defaults.io.alwaysUseProxy = false; selectedPoint = null; displayInfo = null; map.infoWindow.hide(); if (findTasksGraphicClicked) { findTasksGraphicClicked = false; graphicLayerClicked = false; } ShowLoadingMessage('Buffering'); } The code in red is what I added. Hope this helps, Luci
... View more
05-19-2014
01:32 PM
|
0
|
2
|
1755
|
|
POST
|
So does anyone know why the domains get lost when a feature class is published from ArcGIS desktop 10.1 SP1 to ArcGIS online? You can see that the domains are there in the json format of the rest but they obviously are lost at the endpoint where collector gets them from 😕 Thanks, Luci
... View more
05-08-2014
09:54 AM
|
0
|
0
|
825
|
|
POST
|
Did you publish from your local network up to ArcGIS online? If so, did you "Create Attachments" on the feature class prior to publishing? Thanks, Luci
... View more
05-08-2014
04:58 AM
|
0
|
0
|
1077
|
|
POST
|
Hey Russ, Where did you see that information? When I look at the rest services for both of the feature services I can see the domains for the fields. I would like to see the same information you provided in your previous post for the service StreetLightsDomainProb that I published this morning. We have not touched it yet and I would like to see what it looks like prior to adding it to a map on ArcGIS online or editing it with Collector. The links below are for the 2 rest services for the features services: http://services2.arcgis.com/DsE4m2IKL5jJE7JP/arcgis/rest/services/StreetLightsDomainProb/FeatureServer/0?f=pjson http://services2.arcgis.com/DsE4m2IKL5jJE7JP/arcgis/rest/services/StreetLights/FeatureServer/0?f=pjson Thanks, Luci
... View more
05-08-2014
04:29 AM
|
0
|
0
|
825
|
|
POST
|
Visible scale ranges that are set for layers in the mxd prior to publishing are honored on the server. You can also set a minimum or maximum scale range when you load the layer in the javascript application. https://developers.arcgis.com/javascript/jsapi/layer.html Hope this helps, Luci
... View more
05-08-2014
04:04 AM
|
0
|
0
|
467
|
|
POST
|
Hey Russ, No, everything is still not working out. I apologize for not being clear on what the problem is. Everything looked great in Collector. We edited a streetlight point and everything changed with the fields that had domains. - and not for the better - the fields went from domains to text boxes and the text box field we are using for symbology went to a domain like pick list. Because the fields in "Collector" went from domains to text boxes, I then looked at the map and tried to edit a point using ArcGIS online and everything there was fine. The fields with domains still had the domain selection. Anyone else having similar problems? Thanks, Luci
... View more
05-07-2014
03:53 AM
|
0
|
0
|
825
|
|
POST
|
Hi Russ, Using ArcMap 10.1 SP1, I published a Service and used my ArcGIS online connection. I then logged onto ArcGIS online and configured all of the settings for the feature service and added it to a new map and configured the map. Everything looked great in Collector. We edited a streetlight point and everything changed with the fields that had domains. I then looked at the map and tried to edit a point using ArcGIS online and everything there was fine. The fields with domains still had the domain selection. Thanks, Luci
... View more
05-06-2014
05:20 AM
|
0
|
0
|
825
|
|
POST
|
Russ, I believe you are still a member of our group and should be able to see it. Thanks, Luci
... View more
05-01-2014
04:18 AM
|
0
|
0
|
1151
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-04-2023 06:49 AM | |
| 1 | 09-29-2014 01:05 PM | |
| 1 | 11-30-2015 10:09 AM | |
| 1 | 02-09-2015 01:56 PM | |
| 1 | 12-30-2014 05:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-04-2023
10:56 PM
|