|
POST
|
It's not cut and paste - but not terribly difficult either. Some JavaScipt skills are required. There is a great doc on creating your own custom widget that starts here: Naming conventions—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers With the Widget framework it should be straight forward to plug it in.
... View more
03-09-2016
07:18 AM
|
1
|
0
|
796
|
|
POST
|
Looks to me like your very close. The core js code you need is in your js files and just need to be inserted into the Widget framework. There are some great docs on how to create your own custom widget. It does require some JS knowledge. Naming conventions—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers - Naming convention is the start of the build your own custom widget section.
... View more
03-09-2016
07:06 AM
|
1
|
0
|
988
|
|
POST
|
By logs I was referring to the ArcGis Server logs. I realize now you might not be using that. In the ArcGis Server management console, usually found at: https://MyArcGisServer:6443/arcgis/manager/log.html However I have no idea how to check this on AGOL. The F12 thought. What I usually do is launch the app. Press f12 to launch the browser debugger. Set it on the Network tab and make sure its recording (stupid IE). Then activate your tool in the widget. You should see some traffic - the request to your gp service and its response. Hopefully there will be something useful in the response. The other thought - I'm assuming the Analytics service is akin to the printing service and has a HTML page with which to input the parameters manually and have it submit the request. If you have this page it will tell you if the issue is with your service or your call to the service. Hope that helps
... View more
03-08-2016
01:54 PM
|
1
|
0
|
1575
|
|
POST
|
Are your server logs telling you anything? Also watch the traffic with the F12 - Sometimes there is more info in the return message. Also, you might try issuing the GP request from the browser and input the prams directly - Sometimes I get more info from those pages.
... View more
03-08-2016
06:53 AM
|
1
|
1
|
1575
|
|
POST
|
So if you set Minutes = 600 (10 days) it doesn't work?
... View more
02-29-2016
09:03 AM
|
0
|
2
|
994
|
|
POST
|
I'm assuming duration is > 1 or two days. Might be worth putting in a break point there and make sure you have the correct units.
... View more
02-23-2016
09:25 AM
|
0
|
4
|
994
|
|
POST
|
This might get you there. the esri javascript sdk support D3.js SVG and CSS using D3 | ArcGIS API for JavaScript
... View more
02-23-2016
09:18 AM
|
1
|
0
|
1728
|
|
POST
|
The extent is the LOD. You could pass a Center point and a LOD. Something like: my.server.com/myWebApp?lod=14¢er={x=123.123,y=123.123} Then instead of setting the extent you would - Center the map on the point - Set the LOD on the map to the lod passed Sorry for the lack of specifics. I'll look them up later if you are still having trouble.
... View more
02-23-2016
09:15 AM
|
0
|
1
|
2123
|
|
POST
|
Not to sound like too much of a smart ass, but, everything is better handled with the eSearchWidget ; ) Robert is a genius.
... View more
02-17-2016
10:57 AM
|
0
|
2
|
576
|
|
POST
|
I would watch the update traffic with the F12 tools. The response probably has a message for you.
... View more
02-04-2016
05:29 PM
|
1
|
1
|
1452
|
|
POST
|
I agree with Yue. The problem is most likely on the report service side. Can you hit your own print service?
... View more
02-04-2016
05:26 PM
|
0
|
1
|
1279
|
|
POST
|
My only guess as to a cause is that, for whatever reason, the command the Ersi SDK is using to pop open that window does not work in their highly secure environment and that window.open does. Anyone have any other theories?
... View more
02-04-2016
01:07 PM
|
0
|
0
|
579
|
|
POST
|
Ok it's not pretty, and it opens twice on any other machine, but this is working at the clients site. me.esriPrintTool.on("print-complete", function (results) {
if ((results) && (results.result) && (results.result.url)) {
var resultsWin = window.open(results.result.url, '_blank');
resultsWin.focus();
}
toastr["info"]("Print Complete", "Quick Print");
$('#btnQuickPrint').removeClass("active").val("Print");
me.onPrintComplete();
});
... View more
02-04-2016
01:01 PM
|
0
|
0
|
579
|
|
POST
|
Of course everything works great on our dev servers but when we deploy to the clients servers the resulting print job does not automatically open in a new tab. The return Json from our Dev server looks identical to the return json from the client -- ours { "paramName": "Output_File", "dataType": "GPDataFile", "value": { "url": "http://machineNameDev/arcgis/rest/directories/arcgisjobs/utilities/printingtools_gpserver/j2a6ac286e0d64525ba713beb1e1d9869/scratch/473e76e777c646a28ec7c9251c8b3011.png" } } -- vs theirs { "paramName": "Output_File", "dataType": "GPDataFile", "value": { "url": "http://machineName/arcgis/rest/directories/arcgisjobs/abcdefg/printvectormap_gpserver/j745b8bd480aa42ef8db5d652a460d049/scratch/WebMap_96218500-caa2-11e5-9d02-005056b13d26.PDF" } } I though perhaps security on the browser was not allowing popups so I added var win = window.open("http://machineName/arcgis/rest/directories/arcgisjobs/abcdefg/printvectormap_gpserver/j745b8bd480aa42ef8db5d652a460d049/… ", '_blank');
win.focus(); and that was able to open the tab and link w/o issue. My Code: var prntTemplate = new esriPrintTemplate();
prntTemplate.layout = $('#printLayout').val();
prntTemplate.format = $('#printFormat').val();
prntTemplate.layoutOptions = {
"legendLayers": []
};
me.esriPrintTool = new esriPrint({
async: true,
map: mainmap,
"templates": prntTemplate,
url: me.getPrintUrl("AdvancedPrint")
}, dojoDom.byId("hiddenPrintBtnDiv"));
me.esriPrintTool.on("error", function (evt) {
me.LogError("OnPrintTool Advanced Error", evt);
});
me.esriPrintTool.on("print-complete", function (evt) {
toastr["info"]("Print Complete", "Advanced Print");
$('#btnAdvancedPrint').removeClass("active").val("Print");
me.onPrintComplete();
});
me.esriPrintTool.startup();
me.esriPrintTool.hide();
me.esriPrintTool.printMap(prntTemplate);
... View more
02-03-2016
11:34 AM
|
0
|
2
|
1812
|
|
POST
|
We use VS2015 for our web development and really enjoy it. We mostly follow Robert's work flow as above and we use TFS for our code repository. After much debate we went with the following: tfs\wab <- we pulled the latest dev ver of WAB and added it to source control just in case. tfs\wab\custom\widget <- our custom widget code, we place here when we are done. tfs\client\project\ <- our configured client setup, the code we deliver to the client. We develop the widget here at first then move it to the custom repo. From Wab, we create the project and get it setup. We develop the widget in place, then move it to the general repo when complete for use in other projects. That becomes the master. Any further mods are done there. We then combine and deploy. During development we generally debug the back end C# with VS2015 and use Chrome or IE's F12 to debug the JS.
... View more
02-03-2016
06:14 AM
|
1
|
0
|
716
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-16-2025 09:54 AM | |
| 1 | 05-12-2014 01:47 PM | |
| 1 | 06-22-2017 08:13 AM | |
| 1 | 02-12-2018 09:03 AM | |
| 1 | 01-28-2016 03:55 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-25-2025
06:49 AM
|