|
POST
|
Hi - I've got a similar issue - but it seems to be IE specific. I have the proxy all set and Chrome and Firefox work fine./ Yet IE (8 & 9) fail In Fiddler I see a 500 error reported for POST /proxy/proxy.ashx?http://our server/arcgis/rest/services/test/edit/FeatureServer/0//applyEdits HTTP/1.1 With the page being returned as the normal .NET page Server Error in '/proxy' Application. and saying how to make changes to the web.config (which I don't have) to get better errors. I've just used the default proxy pages from the esri site (I'd edited the previous ones) and still get the error. When run on the server - fiddler shows a 500 page with [TABLE="width: 100%"] [No relevant source lines] [/TABLE] Any ideas. ACM
... View more
01-15-2013
05:27 AM
|
0
|
0
|
2230
|
|
POST
|
+ 1 on that - I've done all my coding in the "old" way with (for me) a majo app about to go to beta - So at the moment I have time to change - I just need pointing in the right direction - the info is there, but scattered around. Having all the example moved to the new way of doing things would be great.
... View more
01-11-2013
12:01 AM
|
0
|
0
|
1849
|
|
POST
|
😞 Big time breakage on 3.3 for my site I am doing - loads of parser errors - example -
dojo/parser::parse() error
TypeError
arguments: Array[2]
get message: function () { [native code] }
get stack: function () { [native code] }
set message: function () { [native code] }
set stack: function () { [native code] }
type: "non_object_property_call"
__proto__: Error
I'm sure I'll find out soon what is going on. Edit - Ah - is listed as a breaking change Using lang="en" can break apps that use when using layout dijits and data-dojo-config(or dojoConfig) locale or extraLocale is not set. The recommended fix is to set locale or extraLocale on data-dojo-config or remove the lang="en" attribute. The specific error seen when this is an issue is "dojo/parser::parse() error TypeError" in Chrome and "TypeError: _72f(...) is undefined" in Firefox. More information is available in the Dojo bug tracker:http://trac.dojotoolkit.org/ticket/15630#comment:7 http://trac.dojotoolkit.org/ticket/15768#comment:6
... View more
01-10-2013
06:15 AM
|
0
|
0
|
1725
|
|
POST
|
Looks like it's out. And full redesign of site as well.
... View more
01-09-2013
09:55 PM
|
0
|
0
|
2678
|
|
POST
|
Sorry editing on mobile site seems to have lost line breaks
... View more
01-05-2013
12:56 AM
|
0
|
0
|
5127
|
|
POST
|
HiI raised a similar issue here http://forums.arcgis.com/threads/72109-print-widget-task-default-legend-for-templateIt looked like it was a setting in the original mxdAway from work at present so can't test other solutions here, but I am guessing they may fail for me too. CheersACM
... View more
01-05-2013
12:50 AM
|
0
|
0
|
5127
|
|
POST
|
Hi Derek I've got similar issues - I tweak one of my showresults functions like this var Findsymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([98, 194, 204]), 2), new dojo.Color([98, 194, 204, 0.5]));
var items = dojo.map(results, function (result) {
var graphic = result.feature;
graphic.setSymbol(Findsymbol);
map.graphics.add(graphic);
return dojo.clone(graphic.attributes);
//return result.feature.attributes;
}); This worked fine with fixing the stack overflow on print, however, as I had an onclick that went to the feature, that then broke.
function onRowClickHandlerLS(evt) {
var clickedFeature = gridx.getItem(evt.rowIndex).OBJECTID;
var selectedFeature;
dojo.forEach(map.graphics.graphics, function (graphic) {
if ((graphic.attributes) && graphic.attributes.OBJECTID === clickedFeature) {
selectedFeature = graphic;
return;
}
});
var FeatureExtent = selectedFeature.geometry.getExtent();
map.setExtent(FeatureExtent);
}
"Uncaught TypeError: Cannot read property 'geometry' of undefined "
Any ideas? I'm having a good look at the moment but haven't seen anything obvious. Cheers ACM Edit - it looks like either the graphic.attribute.OBJECTID or cthe row OBJECTID was not getting returned in the same type as it used to. I have modified the onclick routine so -
function onRowClickHandlerLS(evt) {
var clickedFeature = gridx.getItem(evt.rowIndex).OBJECTID;
var selectedFeature;
dojo.forEach(map.graphics.graphics, function (graphic) {
var n1 = graphic.attributes.OBJECTID.toString();
var n2 = clickedFeature.toString();
if ((graphic.attributes) && n1 === n2) {
console.debug("..." + n1 + "..." + n2 + "...")
selectedFeature = graphic;
return;
}
});
var FeatureExtent = selectedFeature.geometry.getExtent();
map.setExtent(FeatureExtent);
}
and all is well (on that one, I've another task that puts results into a grid that works different that I'm having issues with - more later, maybe, if I can't sort it)
... View more
12-05-2012
04:37 AM
|
0
|
0
|
2521
|
|
POST
|
Hi I'm using the printtask to generate PDFs. I has a custom print service/export web map and ArcMap templates that I am tweaking. No, this may be a desktop question, but how can I force new layers in a MXD to get added to a legend with a particular style? The default does not include the layer name. This is what I want. Trying this in ArcMap I can select all added layers and control the legend style, but when a new layer is added is reverts to a default style. This must be controllable somewhere, but I have yet to find it. Cheers ACM
... View more
11-26-2012
02:21 AM
|
0
|
0
|
607
|
|
POST
|
Yep - it was the only easy way I could see, without messing around with Python scripts. Plus I can sell it as a "feature" as users did initially want a pull down list of scales on my ArcIMS app, which I told them was too hard and not relevant. Plus it gives them a better idea of what they get.. Here's my code; Zoom list - somewhere on a button bar <select name="zoomselect" autocomplete="false" id="zoomselect" dojotype="dijit.form.ComboBox" style="width: 100px;" onchange="zoomscale(this.value)"> <option>250000</option> <option>100000</option> <option>50000</option> <option>25000</option> <option>10000</option> <option>5000</option> <option>2500</option> <option>1250</option> </select> The function it calls function zoomscale(scale) { map.setExtent(esri.geometry.getExtentForScale(map, scale)); } Then print how you currently are doing.
... View more
11-25-2012
11:19 PM
|
0
|
0
|
1208
|
|
POST
|
This is what I've been doing this week on my Alpha ArcIMS replacement app. On the map I have a dojo combo with pre-defined scales, but also allows typed in values This sets the screen map to the required scale A print button that opens a dojo dialog to allow title and comments (I'm using author for comments) and a filteringSelect to select template. A print option that leaves the default enforce map scale This generates PDF at the scale selected One thing to be careful of, which I have in my current ArcIMS project, which generates PDFs is that users don't have any of the Acrobat scaling settings switched on. I was also having difficulties setting the DPI, but I think I have sorted that on a esri sample last night - I just need to integrate it with my main code. ACM
... View more
11-23-2012
11:22 PM
|
0
|
0
|
1208
|
|
POST
|
Same here - before I try another route has anyone got any news about this bug? Is it likely to be sorted in 3.3? Cheers ACM
... View more
11-21-2012
05:03 AM
|
0
|
0
|
2250
|
|
POST
|
bump. Before I start to write my Print routine for my ArcIMS replacement internal thingie, is there any change in this? I need to be able to Add title Add Comments Be to specific Scale - and to print at that scale Add Legend Add Scale Bar Add North Arrow Have multiple page templates The Print Widget is close to doing this, but it seems not all the way there. The more advanced print tools (like tutorials here) seem overly complex and take nearly a minute to produce. My ArcIMS users will see that as a step backwards however much I tell them that the PDFs are much better quality. So do I embark on the Print Widget, and modifying it as described above, or wait to see if improvements are on the way with 3.3? Cheers ACM
... View more
11-19-2012
04:59 AM
|
0
|
0
|
2872
|
|
POST
|
Another example on one of our pages http://maps2.eastdevon.gov.uk/mapping/localplan2013/?x1=311599&y1=87159&x2=312953&y2=88429 Two crucial bits function gup(name) {
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regexS = "[\\?&]" + name + "=([^&#]*)"; var regex = new RegExp(regexS); var results = regex.exec(window.location.href); if (results == null) return ""; else return results[1]; } Is the function to handle URL parameters And
//check to see if an envelope has been sent (ie four values in x1,x2,y1 & y20 var newExtent = new esri.geometry.Extent(); var xMin = Math.abs(gup('x1')); var yMin = Math.abs(gup('y1')); var xMax = Math.abs(gup('x2')); var yMax = Math.abs(gup('y2')); var mk, pt, gra; //check to see if just a point has been sent in x1 & y1 if (Math.abs(gup('y2')) == 0 && (Math.abs(gup('x2')) == 0) && (Math.abs(gup('x1')) > 0) && (Math.abs(gup('y1')) > 0)) { x1 = xMin y1 = yMin xMin = xMin - 50 yMin = yMin - 50 xMax = xMin + 100 yMax = yMin + 100 dojo.connect(map, "onLoad", function () { ShowLocation(x1, y1); }); } if ((xMin > 0) && (yMin > 0) && (xMax > 0) && (yMax > 0)) { newExtent.xmin = xMin; newExtent.ymin = yMin; newExtent.xmax = xMax; newExtent.ymax = yMax; newExtent.spatialReference = new esri.SpatialReference({ wkid: 27700 }); map.setExtent(newExtent); } In the init function does stuff with it - can either take an envelope or single point - probably not the best way to do it, but it worls for us ACM
... View more
11-19-2012
04:15 AM
|
0
|
0
|
4548
|
|
POST
|
I was getting stuck here to. We can' upgrade the SDE due to legacy MapObject code. BUT reading http://forums.arcgis.com/threads/57375-Why-would-I-install-ArcSDE-with-10.1 I seems we no longer need the SDE software to create a "SDE" database, just the client software. So in ArcCat 10.1 I created a new enterprise database for the few things I want to be able to be edited via the browser. It all works well - now I just need to update my code (it currently rights the XY to a SQL table that is read as an event theme) Cheers ACM
... View more
11-16-2012
11:52 PM
|
0
|
0
|
2312
|
|
POST
|
IE8 & 9 but reading the Wiki entry (you learn something every day, thanks) even 9 seems not to fully support this. Anyway, not to hijack the thread, the real question is why do these requests not go very the proxy page and get a token added? Cheers ACM
... View more
11-08-2012
12:03 AM
|
0
|
0
|
1263
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-28-2025 01:14 AM | |
| 1 | 12-01-2023 06:07 AM | |
| 2 | 11-29-2024 04:32 AM | |
| 1 | 05-28-2024 12:50 AM | |
| 1 | 03-16-2023 06:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|