POST
|
Can you programmatically set the position/width/height of a floating dockpane, or can this only be controlled in the DAML file? I have a number of dockpanes that have their position set to float, to sort of act like a modal window. I know that "closing" and "opening" these panes are simply toggling their visibility, so if a user drags a floating pane somewhere then closes it, it will appear at that same location the next time the user clicks a button to display the pane. Is there a way I can reset the position so it reappears at the center of the screen? Thanks! Chris
... View more
05-07-2018
10:02 AM
|
0
|
6
|
891
|
POST
|
I'm writing an addin that requires a series of cascading adds/deletes to related tables whenever the user deletes a feature from a particular layer. If I have code that creates and deletes other rows within the RowDeletedEvent handler (see screenshot below), will those adds and deletes become part of the original edit operation? Thanks! Chris
... View more
03-04-2018
08:57 AM
|
0
|
2
|
104
|
POST
|
This may be a fluke, but I seem to have stumbled upon a solution. Open VS, turn on Managed Compatibility Mode and start ArcMap once. Hit the stop button to close ArcMap, then turn off Managed Compatibility Mode, then press play. ArcMap magically started the second time, and I was able to use edit-and-continue. I tried this in both VS 2013 and VS 2015, and it worked, though in VS 2013 I had to press play 3 times in a row before ArcMap started. Like I said, I'm not sure if this is a solution per se, but it works at least for me.
... View more
04-07-2017
08:14 AM
|
1
|
0
|
59
|
POST
|
Good morning. We have a data collection routine where field users use the iPad Collector app to record attributes and take photos of drainage basins. Each feature has multiple photo attachments, each with a separate comment in a separate field (Photo1Comment, Photo2Comment, Photo3Comment, etc.). I've written an app that queries the REST endpoint to download the feature information and photos and creates PDFs with the output by adding a caption to each photo. Our hope was that the order in which photos were taken would be consistent with ascending attachment ids. This seemed to be consistent in initial testing (an admittedly shaky workflow considering there is a large problem if the user deletes and replaces a photo or if a user uploads multiple photos at once). However, the order in which the photos are taken don't seem to match up in ascending order with the attachment ids for the feature (Photo4.jpg has attachment id 6002 while Photo1.jpg has attachment id 5201, etc.). Does anyone know of a foolproof way to either add comments to any feature attachments via Collector (I can imagine how to do it programmatically by adding a new field to the AttachRel table, but we're stuck with user the out-of-the-box Collector app), or to match comments fields to an attribute? Thanks, Chris this doesn't appear to always be true
... View more
04-03-2015
09:08 AM
|
0
|
0
|
2949
|
POST
|
This is pretty straightforward - I'm trying to add the Tree mixin to a Dojo dGrid widget, however when I attempt to reference it, I get a 404 Not Found error. GET http://js.arcgis.com/3.13/dgrid/Tree.js [HTTP/1.1 404 Not Found 149ms] The other dGrid components download correctly (OnDemandGrid, Selection, etc.) - is this simply a matter of a file missing? Thanks! Chris
... View more
03-25-2015
09:50 AM
|
0
|
2
|
2756
|
POST
|
I don't think this is possible via NA, but it's worth a shot. I need to route special education students to school, requiring a pickup at their home, delivery at school, and the reverse in the afternoon. The client wants constraints such as "only K-5 students can ride together" and "only grades 6-8 can ride together", etc. I was hoping to figure out some way to use the Capacities field to handle this, but the logic won't work unless I can change each capacities value in real time while the process is running to signal something like "an 8th grader is already on this route, so this 4th grader cannot be on this route". Unless I pre-allocate specific buses/routes to certain grade ranges, is there another way to group routes based on student constraints? There are other factors I need to limit students on the same route (school schedules) that will drastically increase the number of potential categories, and it seems to defeat the purpose if I need to pre-allocate a bus to a specific category which may have a small population. I have over 300 students and 200 schools, so manually re-assigning after the fact seems like a huge amount of work. I'm doing much of this via ArcObjects, but I still don't see any way to account for the situation. Thanks! Chris
... View more
08-13-2014
10:01 AM
|
0
|
0
|
2112
|
POST
|
It's been discussed that attempting to print a map where the extent contains text graphics with custom attributes will fail, usually with an error like "Field '<Field Name>' not part of schema for this feature collection". This isn't a remotely elegant solution whatsoever , but I wanted to pass on what I did to hack around this limitation in case anyone else was facing it. The gist of it is to clear out the custom attributes from the text symbols before the print starts, and to replace them after the print is completed, using the geometry of the graphics as a unique key (of course assuming all graphics will have at least a slightly different point geometry). Dictionary<GraphicsLayer, Dictionary<ESRI.ArcGIS.Client.Geometry.MapPoint, Dictionary<string, object>>> textSymbolAttributes = null; In the method that starts the print task: LayerCollection lc = MapObject.Layers; for (int x = 0; x < lc.Count; x++) { if (lc is GraphicsLayer) { GraphicsLayer gl = (GraphicsLayer)lc ; if (gl.Graphics.Count > 0) { //for whatever reason text symbols will not print if they have custom attributes //there's no completely foolproof way to strip out the attributes now and replace them later //but it's safe to assume that the geometry will always be slightly different foreach (Graphic g in gl.Graphics) { if (g.Symbol is TextSymbol) { if (textSymbolAttributes == null) textSymbolAttributes = new Dictionary<GraphicsLayer, Dictionary<MapPoint, Dictionary<string, object>>>(); if (!textSymbolAttributes.ContainsKey(gl)) textSymbolAttributes.Add(gl, new Dictionary<MapPoint, Dictionary<string, object>>()); Dictionary<string, object> copyDict = new Dictionary<string,object>(); foreach(var dictEntry in g.Attributes) copyDict.Add(dictEntry.Key, dictEntry.Value); textSymbolAttributes[gl].Add(g.Geometry as MapPoint, copyDict); g.Attributes.Clear(); } } } } } After the print job has completed, replace the custom attributes. Because we don't have any real unique ID to use as a key, I'm going under the assumption that no two graphics will have the exact same point location. In the PrintCompleted method: LayerCollection lc = MapObject.Layers; for (int x = 0; x < lc.Count; x++) { if (lc is GraphicsLayer) { GraphicsLayer gl = (GraphicsLayer)lc ; //check to see if the current graphics layer is contained in the dictionary if (textSymbolAttributes != null && textSymbolAttributes.ContainsKey(gl)) { foreach (Graphic g in gl.Graphics) { //only look at text symboles if (g.Symbol is TextSymbol) { MapPoint mp = (MapPoint)g.Geometry; foreach (var kvp in textSymbolAttributes[gl]) { //assuming no two text symbols within the same graphics layer wont have identical geometry, we can replace our attributes now that the print is over if (mp.X == kvp.Key.X & mp.Y == kvp.Key.Y) { foreach (var kvp2 in kvp.Value) { g.Attributes.Add(kvp2.Key, kvp2.Value); } } } } } } } }
... View more
05-24-2013
03:10 PM
|
0
|
1
|
2145
|
POST
|
I had the exact same problem. Monitoring web traffic showed that it was attempting to connect to serverapi.arcgisonline.com/veadaptor, and receiving an authentication error from that as well. Pasting the JSON created by the PrintTask into the rest endpoint fails, i.e. "operationalLayers":[ { "opacity":1, "visibility":true, "type":"BingMapsRoad", }, However, if you modify this and include your Bing key "operationalLayers":[ { "opacity":1, "visibility":true, "type":"BingMapsRoad", "key":"<insert key here>" }, it works fine and the map is exported correctly. I talked to ESRI support and they said that Bing authentication procedures is changing rather quickly. Unfortunately, right now the JSON created by the PrintTask doesn't include the key. They logged it as a bug [ #NIM091676 Bing layer JSON needs to include key and made it sound like this is a pretty time-sensitive fix and that it should be included in the next release.
... View more
05-15-2013
10:49 AM
|
0
|
0
|
1
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|