|
POST
|
What are you attempting to do exactly? A custom report or a custom print widget?
... View more
10-18-2018
02:31 PM
|
0
|
3
|
1525
|
|
POST
|
I'm looking for a solution to an issue with the print widget in WAB. I found that layers I bring in(service layers) that have grouped label items created by using unique value categories for symbology in arcmap will show duplicate labels within the WAB print legend. There fore if I grouped values 1,2,3,4,5 in a group with label "First5", in my print output file I see the label "First5" 5 different times,rather than once. Image below shows what I get returned.This happens whether I use the ESRI basic print service or my own created print services. It also happens across versions of WAB I just tried using 2.9. It should also be noted I took a look at the webmap(json) submitted to the print task and it doesn't have duplicate legend entries for any layer. Has anybody else had this issue? Has anybody found a solution? Is this a known bug?
... View more
09-14-2018
10:36 AM
|
0
|
1
|
1301
|
|
POST
|
I was able to achieve this using the Arcpy mapping module in a geoprocessing service.
... View more
08-16-2018
08:51 AM
|
1
|
3
|
3916
|
|
POST
|
I have something similar with a pdf being written to the server from a GP service. How can I access and use the resulting url for the pdf so clients may download or view it?
... View more
08-07-2018
01:48 PM
|
0
|
0
|
3541
|
|
POST
|
Can you tell me how to retrieve and use this url for printing/downloading? I 've been trying to figure this out for awhile now. I have my geoprocessing service creating a pdf that saves on my server. I need to know how to determine the url and utilize it so the pdf can be accessed by the client side.
... View more
08-07-2018
01:42 PM
|
0
|
0
|
3541
|
|
POST
|
This is pretty much what I'm finding. Not sure what other options I have.
... View more
07-27-2018
12:40 PM
|
0
|
1
|
3916
|
|
POST
|
I have published a print service that has 2 data frames( "DataFrame1","DataFrame2")in the print template. I would like to be able to print 2 layers, 1 in each data frame. When I use the print task I only get the top layer(or what is visible at the scale) printed in DataFrame1, which was the active data frame when I published the service.DataFrame2 is just blank. How can I access and utilize DataFrame2? I have not been able to access it through any of the properties of the printtask object or the layout object.
... View more
07-27-2018
09:42 AM
|
0
|
7
|
4173
|
|
POST
|
I ended up not using the screening widget. We made a custom report. I would use that instead if I were you.
... View more
07-20-2018
02:15 PM
|
0
|
0
|
2140
|
|
POST
|
I would go through your code and make sure every section is properly closed. That is usually the issue with clazz constructor. You should be able to click the rrror and see the exact line where it has an issue. Also the last error tells you exactly what file and line the problem is on... Widget.js? wab_dv=2.7:155 TypeError: Cannot read property 'nodeType' of null line 155 of Widget.js. Use console.log statements to track your codes workflow.
... View more
04-19-2018
02:22 PM
|
1
|
1
|
3620
|
|
POST
|
You'll have to look at the browsers console to see what the errors are. There are a number of reasons that a widget may not open.
... View more
04-18-2018
01:31 PM
|
0
|
3
|
3620
|
|
POST
|
None of the other files within the folder would be affected by this change. The only issue you may have is with this line. PanelManager.getInstance().closePanel('_31_panel'); You may want to comment this line out as it is not likely a widget Id that is utilized in your app. Also be sure to add dojo/topic module to your require/function section at the top of widget.js. require(["dojo/topic"], function(topic){ Can you post your error here? I attached my widget.js file below. You can check it out and replace/add sections to your own widget.js where necessary.
... View more
04-18-2018
10:39 AM
|
0
|
5
|
3620
|
|
POST
|
I have found a way to do this, I haven't had any issues yet. I did this within a report widget . The onSubscribe function runs within the widgets onOpen function. The function to turn layers back on runs after report w/map is created. The DWclick topic runs the doWork() function. postCreate: function() {
this.inherited(arguments);
this.own(topic.subscribe("DWclick", lang.hitch(this, this.doWork)));
this.own(topic.subscribe("FRclick", lang.hitch(this, this.finReport)));
},
onOpen: function () {
this.onSubscribe();
setTimeout(function() {topic.publish('DWclick');}, 6000);
},
doWork: function () {
//Create and print report
setTimeout(function() {topic.publish('FRclick');}, 3000);
}
onSubscribe: function() {
var extent = this.map.extent
layerlist=[];
LayerInfos.getInstance(this.map, this.map.itemInfo, extent).then(function(layerInfosObject){
layerInfosObject.traversal(function(layerInfo) {
if (layerInfo._visible) {
if(layerInfo.title!=="QV_Utility" && layerInfo.title!=="Ticket Symbols" && layerInfo.title!=="Closed Tickets" && layerInfo.title!=="Emergency Tickets" && layerInfo.title!=="Open Tickets" ){
var fullrl = layerInfo.layerObject.url;
var qt = new QueryTask(fullrl);
var query = new Query();
query.returnGeometry = false;
var OIDfield = layerInfo.layerObject.objectIdField;
query.where = "1=1";
query.geometry = extent;
var countDef = layerInfo.layerObject._currentDef = qt.executeForCount(
query,
lang.hitch(layerInfo.layerObject, function(results) {
if (results){
return results;
}
else{
if (results==0) {
//console.log("-This layer:",layerInfo.title,"Is not currently in mapview and must be turned off, it has 0 or undefined# of records.",results);
layerInfo.setTopLayerVisible(false);
layerlist.push(layerInfo.title);
}
}
})
);
}
}
});
});
//this._clearLayers()
//this.showLayers();
//console.log(layerlist);
this.layerlist= layerlist;
return this.layerlist;
PanelManager.getInstance().closePanel('_31_panel');
},
finReport: function(layerlist) {
//console.log("FINREPORT");
console.log("FINREPORT",this.layerlist);
LayerInfos.getInstance(this.map, this.map.itemInfo).then(function(layerInfosObject){
layerInfosObject.traversal(function(layerInfo) {
if (this.layerlist.includes(layerInfo.title)){
//console.log(layerInfo.title, "will be turned on now");
layerInfo.setTopLayerVisible(true);
}
});
});
},
... View more
04-12-2018
02:44 PM
|
0
|
12
|
3620
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-26-2018 10:22 AM | |
| 1 | 08-16-2018 08:51 AM | |
| 1 | 04-19-2018 02:22 PM | |
| 1 | 02-12-2019 10:47 AM | |
| 1 | 12-11-2018 10:00 AM |
| Online Status |
Offline
|
| Date Last Visited |
09-13-2023
07:38 PM
|