|
POST
|
Similar here - I have a custom ID task, that doesn't use the templates, it crunches all the results from all the layers into multiple tables then passes this lot over to a popup window (like what ArcIMS did 🙂 ) I have a need to show attachments, but nothing in the results of the ID task shows the presence of attachemts, let alone the actual attachment.
... View more
02-27-2015
06:51 AM
|
0
|
1
|
1939
|
|
POST
|
Ok - I'm not sure if this more an issue with our setup rather than the code, as it is random. But sometime the creation of a TOC hangs - eventually I get a timeout error. I tracked this down and occasionally it seems to be hitting www.arcgis.com/sharing/tools/legend to get the legend - of course, with an internal URL it falls over. I have hacked the code to prevent this //ACM hack
//if (this.rootLayer.version >= 10.01) {
if (1==1) {
url = this.rootLayer.url + '/legend';
} else {
url = 'http://www.arcgis.com/sharing/tools/legend';
var i = this.rootLayer.url.toLowerCase().indexOf('/rest/');
var soap = this.rootLayer.url.substring(0, i) + this.rootLayer.url.substring(i + 5);
url = url + '?soapUrl=' + escape(soap);
} As I know my services are greater than 10.01 I can always do this section and rather than remove the 'if' totally I replaced the condition with 1==1 I also put a console.debug(this.rootLayer.version) in the code - the times it fails this returns as empty However console.debug(this.rootLayer.dpi) always returns a value, even when version is empty - other properties of this.rootlayer are also fine. I have no idea why it is happening, but this is my fix I thought I'd share. ACM
... View more
01-30-2015
06:49 AM
|
0
|
0
|
4091
|
|
POST
|
See Liu's post here Re: Collapse all layers at start in agsjs.dijit.TOC You need to add another property, autotoggle My code is now. layer: dynamicMapServiceLayer,
slider: true,
style: "inline",
title: "MyLayers",
collapsed: true,
autoToggle:false And works fine - without autoToggle it doesn't.
... View more
01-30-2015
05:08 AM
|
0
|
0
|
2762
|
|
POST
|
Ok, I have it working and going to answer my own post What I learned - Whatever I did the graphics layer was always 4326, despite what the map is in (27700 in my case) If graphic items are added to a graphics layer then if the projection is NOT the same as the map - it fails to print The results of the ID task have no projection returned with them - or so it would appear but changing the projection of the graphic object prior to adding it to the graphic layer works idGeo.push(results.feature.geometry)
idGeo.spatialReference = inSR This is my bit of code that takes the geometry of the ID features, one at a time, and adds them to an array - without the second line these would get added as 4326. inSR is a pre-defined projection object matching my map (27700) - when I later add the appropriate array item it adds as 27700 and prints. All very odd.
... View more
01-20-2015
01:38 AM
|
0
|
0
|
1178
|
|
POST
|
OK a bit more digging and it appears the user graphics layer is reference 4326! I tried modifyig its creation ths userGraphics = new esri.layers.GraphicsLayer({
"id": "usergraphics",
"spatialReference": msr
}); But it appears that the GraphicsLayer object doesn't support a spatiaReference property!
... View more
01-19-2015
08:56 AM
|
0
|
1
|
1178
|
|
POST
|
OK - I have an ID task. it pushes results into a HTML table and stores the returned geometries in an array and the HTML table has and extra "highlight" button that, well, highlights the feature into a graphics layer. I have a draw tool bar that allows custom graphics to the same graphics layer. However when I use printemplate way of printing the highlight graphics fail to print. The user added graphics (remember, the same graphics layer) works. I have context thingy on my user graphics layer, that allows edit, move etc. If I select the highlight graphic so that the resize handles appear and then print i get the resize handles but still not the graphic So, what is different? The only thing I can see is that my user added graphics are in the same projection as the map, 27700. So, I specify that the results from the ID task should be in 27700 (they get returned in 4326) by adding var sr = new esri.SpatialReference(27700); identifyParams.spatialReference = sr And yet the results still return in 4326! So, two questions - 1) is by diagnostics likely to be correct, that the projectiion is at fault & 2) why don't the identifyParams stick? Cheers ACM
... View more
01-19-2015
07:17 AM
|
0
|
2
|
4932
|
|
POST
|
gosh, so simple " window.opener" - I never knew. Or if I did I'd forgotten
... View more
01-09-2015
07:25 AM
|
0
|
0
|
2589
|
|
POST
|
OK - I'll research - not something I've done before - many thanks
... View more
01-09-2015
07:15 AM
|
0
|
1
|
2589
|
|
POST
|
Thanks for that - I just tried the API demo, and it went splut - didn't work at all 😞
... View more
01-09-2015
07:01 AM
|
1
|
5
|
2589
|
|
POST
|
I think the answer is no to this one, but someone may have a clever fix In my old ArcIMS application, the results of a ID task were pushed to a new html page in a popup, and therefore it could be moved outside of the parent browser - so when there were a lot of results it could be moved to a second monitor without covering the map. In my API replacement I use a customized floating pane to show this info so is limited to the parent window. As this pane has extra controls like a flash and highlight feature I can't even generate html from the ID results and push it to a new html page as the references to the objects within the map would not be kept. So, any clever ideas people? Cheers ACM
... View more
01-09-2015
06:06 AM
|
0
|
8
|
6729
|
|
POST
|
My investigation with Esri(UK) has revealed a mixed result - sometimes it works, sometimes not. When it fails I get this in the server logs. com.esri.rf.RException: Error parsing multi-part request at com.esri.rf.multipart.DefaultMultipartRequestHandler.parseRequest(DefaultMultipartRequestHandler.java:72) at com.esri.rf.RFactory.newMultipartRequestHandler(RFactory.java:203) at com.esri.rf.RRequest.newInstance(RRequest.java:976) at com.esri.rf.RServlet.service(RServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: org.apache.commons.fileupload.FileUploadException: Read timed out at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:381) at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126) at com.esri.rf.multipart.DefaultMultipartRequestHandler.parseRequest(DefaultMultipartRequestHandler.java:65) ... 19 more Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:152) at java.net.SocketInputStream.read(SocketInputStream.java:122) at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:532) at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:501) at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:563) at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:124) at org.apache.coyote.http11.AbstractInputBuffer.doRead(AbstractInputBuffer.java:346) at org.apache.coyote.Request.doRead(Request.java:422) at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:290) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:449) at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:315) at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:200) at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:977) at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:887) at java.io.InputStream.read(InputStream.java:101) at org.apache.commons.fileupload.util.Streams.copy(Streams.java:94) at org.apache.commons.fileupload.util.Streams.copy(Streams.java:64) at org.apache.commons.fileupload.MultipartStream.readBodyData(MultipartStream.java:593) at org.apache.commons.fileupload.MultipartStream.discardBodyData(MultipartStream.java:619) at org.apache.commons.fileupload.MultipartStream.skipPreamble(MultipartStream.java:638) at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.findNextItem(FileUploadBase.java:961) at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:942) at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:331) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:349) ... 21 more
... View more
01-07-2015
07:44 AM
|
0
|
1
|
3489
|
|
POST
|
OK two points here - my reading of the set up is that versioning should be DISABLED ArcGIS Help (10.2, 10.2.1, and 10.2.2) - earlier versions of this help page made it clearer that versioning should not be enabled. And for me, the mere presence of the ability to add attachments is enough to break this, not the actual adding of attachments. Also, to answer the question as a bog has been raised**, when I do add an attachment it is direct from Collector. **BUG-000084227 : Collector for ArcGIS on iOS fails to sync edits to a feature service added as an item with stored credentials in ArcGIS.com if at least one of the features has a picture attachment made from photo library.
... View more
01-06-2015
01:36 AM
|
0
|
3
|
3489
|
|
POST
|
Same here - I have an open call with Esri(UK) regarding this.
... View more
01-05-2015
01:36 AM
|
0
|
11
|
3489
|
|
POST
|
Alas, along with my other timing issues I've had I've not got a public facing version - although I may have to for other reasons soon.,
... View more
12-02-2014
01:05 AM
|
0
|
1
|
1331
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-19-2026 12:29 AM | |
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|