POST
|
True, but in my case all of my services have to be secured and only one, the basemap, is not. Not a big deal just would be nice for convenience.
... View more
09-24-2014
09:39 PM
|
0
|
1
|
808
|
POST
|
Good point David, it's something I've been wanting to do for a while as well but unfortunately have not yet found a way.
... View more
09-23-2014
06:25 PM
|
0
|
0
|
808
|
POST
|
I don't mean to revive what appears to be a solved problem, but I am experiencing perhaps a similar issue. HTTPS and Proxy I was wondering if you had experienced any similar behavior when you had your issue? Thanks, Alex
... View more
09-22-2014
08:06 PM
|
0
|
0
|
282
|
POST
|
I believe I have solved the issue with the print. I modified my custom print service to be asynchronous via Catalog and declared the print task to be asynchronous as well. After having done that, I no longer get the timeout exception which I believe fixed my problem.
... View more
09-17-2014
12:55 PM
|
0
|
0
|
348
|
POST
|
Hello, I am trying to print to a plotter from my JS application. I am am using JS API 3.10 and the esri print widget. If I am working with smaller page sizes, (8.5X11 and 11X17) at 200 DPI, things look good and I am able to print with no issues. When I bump the sizes up to 36'X48' I am unable to print either in 200 DPI or 75 DPI. The print is using the PrintingTools provided by ESRI (10.2) with no modifications. The error message I get using my on('error') callback is InternalServerError,message: The operation has timed out My initial suspicion was the service was timing out so I increased the timeouts in the PrintingTools service to 1800 seconds for client use. My next suspicion, since I am using IE9, was the proxy. However I tried FireFox but it also does not work. After that, I thought it may be the esri.config so I set esri.config.defaults.io.timeout = 600000; When I do execute my print service, from on('print-start') to on('error') it takes about 100 seconds every time I do it and then I get the timeout message. Has anyone experienced this issue before? Any help is greatly appreciated. Thanks, Alex
... View more
09-16-2014
02:55 PM
|
0
|
1
|
2776
|
POST
|
Well I solved it. What I ended up doing was dynamically creating a new map that is the exact same map that the user sees but the only thing that changes is the fact I set the URL of my services to make sure they can be accessed via the print function. This was a big headache because in 3.9 I could simply add a token my map services and use that to print. But 3.10 did not pick up the new token URL that I set in my map and therefore had to make a brand new map on the fly. Anyways, it works.
... View more
08-31-2014
10:09 AM
|
0
|
0
|
298
|
POST
|
Hi There, I'm trying to print a secured web service using the new JS 3.10. In 3.9 I had a heck of a time with it and was able to get around the issue by appending a short-lived token to my service URLs which allowed the map to print. This solution however does not seem to work in 3.10. Does anyone have any idea how to print a secured web service using JS 3.10? Thank you, Alex
... View more
08-27-2014
06:35 PM
|
0
|
1
|
2715
|
POST
|
Playing with it some more, I have found a workaround although I don't want to call it a solution. I have moved all of the code from postCreate into a function called doStuff(). Since I am creating a widget, it is async. When I call doStuff it returns the information async and the grid is returned BEFORE any headers or data is loaded. So what I did was as follows. I created 2 separate function _loadHeaders() and _loadData(). The function doStuff() calls those 2 functions which each one returning a promise. Once _loadHeaders() and _loadData() have been resolved, I set the data grid layout and store to the returned information and then resolve my widget. This seems mighty complicated for something that seems to simple but it works. Does anyone know how to call a method SYNCHRONOUSLY in a dojo widget? Thanks, Alex
... View more
08-25-2014
11:16 AM
|
0
|
0
|
319
|
POST
|
Hi Ken, We have been using the EnhancedGrid throughout the project. I like it's print functionality and am not sure (haven't looked to be honest) into if they offer the same functionality.
... View more
08-25-2014
07:56 AM
|
0
|
0
|
319
|
POST
|
Hi There, I've racked my brains around this for hours and thought I'd ask those who maybe can help me out. I am trying to create a custom dojo widget that contains a dojox EnhancedGrid. My widget will contain other things but this is a big part. My widget is being created and I am able to add dojo buttons and labels to it no problem and everything is rendered fine. I can see the buttons and click on the buttons and the appropriate events fire. When I add an EnhancedGrid however it is not rendered and I can't see the thing. My current HTML is as follows:
<div style="border: 1px solid black; height: 100%; width: 100%; overflow: hidden;">
<div data-dojo-attach-point="xyz" data-dojo-type="dijit/layout/ContentPane" style="border: solid 1px red; height: 200px; width: 400px;">
</div>
</div>
JS file is as follows:
define(["dojo/_base/declare", "dojo/ready", "dijit/_WidgetBase", "dijit/_TemplatedMixin", "dijit/_WidgetsInTemplateMixin", "dojo/text!./templates/TestResults.html", "dojox/grid/EnhancedGrid", "dojo/data/ItemFileWriteStore", "dijit/layout/ContentPane", "dojo/domReady!"],
function (declare, ready, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, htmlOutput, EnhancedGrid, ItemFileWriteStore, ContentPane) {
return declare("TestResults", [_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {
templateString: htmlOutput,
/* constructor */
constructor: function () {
},
postCreate: function () {
debugger;
var items = [];
for (var i = 0; i < 3; i++)
items.push({ A: i, B: (i + 1), C: (i + 2) });
// create a new store
var store = new ItemFileWriteStore({
data: {
items: items
}
});
var grid1 = new EnhancedGrid({
noDataMessage: "this is empty!",
id: "minGrido",
structure: [
{ name: "A", field: "A", width: "100px" },
{ name: "B", field: "B", width: "100px" },
{ name: "C", field: "C", width: "100px" }
],
store: store
});
grid1.startup();
this.xyz.addChild(grid1);
}
})
}
);
To make sure I am able to add widgets in a custom widget I added a button that preceded the grid and a button that came after the grid and those guys worked, but again the grid was not rendered. The weird thing is that if I use Firebug to explore it, the datagrid is created and I can see the div that has the id minGrido. But again, I can't see any of the headers or data that I assigned to the grid. I've tried grid1.resize() but no luck. Has anyone experienced this before? Thanks, Alex
... View more
08-22-2014
07:24 PM
|
0
|
3
|
2354
|
POST
|
Hello, I have a feature class called FC1. I also have a Table called TBL1. The feature class and table are related using a 1-M relationship. My question is as follows. Is there any way using ArcGIS Server 10.2.2 and ESRI JS to auto label my FC1 using all the related attributes from TBL1? Example: Feature Class: Kennel Table: Dog Relationship: KennelDogs I want to have my kennels displayed on the map and autolabel each kennel with the dog's name. So the symbol for kennel 1 would have beside it DogName1, DogName2. Kennel 2 would have DogName3, DogName4, and DogName5. Thank you, Alex
... View more
08-19-2014
09:20 PM
|
0
|
1
|
663
|
POST
|
Does the doBuffer(..) function get called on the first click?
... View more
06-30-2014
03:07 PM
|
0
|
0
|
243
|
POST
|
I saw that post before but had to get it running. I solved the issue by generating a short life-span token and appending it to the call and it seems to be working. Hopefully it is fixed soon. Thanks, Alex
... View more
06-23-2014
08:49 AM
|
1
|
1
|
856
|
POST
|
Hello, I have established my proxy page and everything seems to be working. I am now trying to print a secured web service using the esri.tasks.PrintTask. My services are appearing on my map via my proxy, I am able to query, update, and delete records with no problems. When I try to print however I get the following response (via firebug): {"error":{"code":400,"message":"Unable to complete operation.","details":["Error executing tool. ... Unable to connect to map server... It then lists all the services I am displaying in my map and how it can't connect to them. Has anyone successfully printed secured map services via the PrintTask? Thank you, Alex
... View more
06-13-2014
06:48 PM
|
0
|
5
|
4252
|
POST
|
Thank you all for your suggestions. I solved this yesterday and though I would update my post. The issue was indeed that the request was being cached. I tried everything on the server and my proxy page to make sure the cache was disabled but to no avail. What solved the problem was the following: esri.setRequestPreCallback(function (ioArgs) { if ((ioArgs.url.indexOf("MapServer") > -1) || (ioArgs.url.indexOf("FeatureServer") > -1)) ioArgs.preventCache = true; } Just placed that before I load my layers and voila. Having inspected the new request being made, there is a cacheBuster parameter added with every request which changes and thus generates a brand new request. For an issue of such importance I found the solution evasive to find. Hopefully it helps someone else.
... View more
06-13-2014
06:39 PM
|
0
|
0
|
759
|
Title | Kudos | Posted |
---|---|---|
1 | 06-23-2014 08:49 AM | |
1 | 09-25-2014 04:11 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|