POST
|
That is passing the value but seems to inherit the eSearch popup fields and not the web map even though it's configured to use popup from web map. Side note the only reason i'm using the web map for the popup is because there are some custom arcade expressions I've created on the data.
... View more
05-10-2019
12:07 PM
|
0
|
2
|
636
|
POST
|
Yeah would that be possible? Once the query is complete and the search result layer is created to display the popup in the popup panel.
... View more
05-10-2019
10:37 AM
|
0
|
4
|
636
|
POST
|
Thanks for the reply Robert. I've set the onReceive to call the _queryFromURL function and it's working to select the parcel by the passed attribute. The issue is, I was hoping it would send the web map pop up to your custom popup panel widget, but it's not. It's working correctly when I select by graphic just not when I pass it the query params. Is there something in the PopUp Panel js to display content if a feature is selected in the eSearch? I wrote some things to the console to troubleshoot. In the eSearch _zoomAndClose function it displays the currentFeature (perfect) in the Popup panel widget under displayPopupContent function it doesn't see any content until I click to select a parcel.
... View more
05-10-2019
08:58 AM
|
0
|
6
|
636
|
POST
|
I'm attempting to automatically perform a query and search based on a string that is getting passed to the eSearch widget. Their is only 1 config search layer expression available to match the search data that is getting received. I'm receiving the data string fine, just need some help populating the dijit and running the query search. Any help would be great!
... View more
05-10-2019
05:06 AM
|
0
|
8
|
758
|
POST
|
I would like to show the webmap popup in the map when selecting by the point shape in the esearch in addition to the results. Does anyone know in the code where I should be looking? Any help would be great.
... View more
04-05-2019
01:06 PM
|
0
|
2
|
383
|
POST
|
Thanks Robert. Yeah it took me forever to find that area. I actually ended up doing an if else statment for the lines that push the column titles and values: aggregatedData.cols.push(this._getAggregatedColTitle(this._printData[id].geometryType)); and this line: selectedUnitValue = this.analysisUnitSelect.get('value'); and used the title to be able to skip those layers if(data.title === "Nearest Park" || data.title === "Countywide Soil Preservation Map" || data.title === "Inset Maps")
... View more
02-02-2019
06:59 AM
|
0
|
2
|
1196
|
POST
|
I'm curious if anyone knows how I might be able to remove the calculation in the report for certain layers. I've been able to identilfy them by the feature layer ID and simply hide the calculation in the info report summary "widget panel" but can't seem to figure out how to remove it from the printed report. If possible I would like to remove the entire column for the calculated area for certain layers. Any help would be great.
... View more
01-31-2019
04:55 PM
|
0
|
4
|
1349
|
POST
|
That's it! The eSeach config was missing a couple of field definitions that are in the Feature Service! Thanks so much Robert!
... View more
06-07-2018
12:48 PM
|
0
|
0
|
323
|
POST
|
So here's what I've learned. If the this.reportFeatures = (addressPtsLayer) from the getFeatures function the _constructTable function never even gets called, and there are no object. If I set it to the addressPtsLayer.graphics it finds the objects begins to build the array of fields from the config, but the [field.fieldName] is undefined. If I assign it to a particular field name such as [PARID] it builds, but obviously assigns the parid to ever field in the array.
... View more
06-07-2018
11:28 AM
|
0
|
2
|
323
|
POST
|
The thing is they are. They derive from the same original feature layer. I've even narrowed the config to just one field with no luck.
... View more
06-07-2018
07:10 AM
|
0
|
4
|
323
|
POST
|
This seems really close. It's generating the pdf but not constructing the table. Could the issue lie in using the config fields defined from this widget? In line 16 of the construct table: array.forEach(_this.config.pdfReportFields
... View more
06-07-2018
06:47 AM
|
0
|
6
|
395
|
POST
|
That is a great question. This is one of those widgets that I had stumbled across and could see a good use for in our department especially being integrated with your eSearch widget. I've been trying to retro fit this for our needs so things like the mix were already in there. The widget works properly using the selectFeatures function that’s why I asked the previous. I have looked through the code in the widget.js and the generateReport function is never referenced again, so I'm not sure how it is getting fired. It looks like in the GenerateReport.js it takes in "features" to construct the table in the pdf and then in the _constructTable it builds an array of the fields defined in the config file. Thanks a lot for your help btw! This is from the GenerateReports.js: generateReport: function generateReport(features, logo, comments, mapPrint, reportName) {
var deferred = new Deferred();
var widget = this;
var mapImage = {};
var shouldBreak = '';
// logic to include a map or not
if (mapPrint != null) {
mapImage = {
image: mapPrint,
width: 675,
alignment: 'center'
};
shouldBreak = 'after';
}
var headers = [];
var widths = [];
array.forEach(this.config.pdfReportFields, function (fieldInfo) {
headers.push(fieldInfo.header);
widths.push(fieldInfo.width);
}, this);
var docDefinition = {
pageOrientation: 'landscape',
pageMargins: [18, 50, 18, 40],
footer: function footer(currentPage, pageCount) {
return {
text: currentPage.toString() + ' of ' + pageCount,
alignment: 'center'
};
},
header: widget._formatHeader(logo),
content: [{
table: {
headerRows: 1,
dontBreakRows: true,
widths: widths,
body: widget._constructTable(headers, features),
}
}, {
text: 'COMMENTS: ' + comments,
margin: [0, 10, 0, 0],
pageBreak: shouldBreak
}, mapImage],
styles: {
header: {
fontSize: 18,
bold: true
},
subheader: {
fontSize: 15,
bold: true
},
quote: {
italics: true
},
body: {
fontSize: 6
},
tableHeaderOverview: {
bold: true,
fontSize: 9,
color: 'white',
fillColor: '#4c4c4c'
}
}
};
pdfMake.createPdf(docDefinition).download(reportName + '.pdf', function () {
deferred.resolve();
});
return deferred.promise;
}, _constructTable: function _constructTable(headers, addresses) {
var _this = this;
var self = this;
var body = [];
var headerText = [];
for (var z = 0; z < headers.length; z++) {
headerText.push({
text: headers[z],
style: 'tableHeaderOverview'
});
}
body.push(headerText);
var _loop = function _loop() {
var row = [];
array.forEach(_this.config.pdfReportFields, function (field) {
if (field.type === 'string') {
row.push(addresses[i].attributes[field.fieldName] !== null ? addresses[i].attributes[field.fieldName].toString() : '');
} else if (field.type === 'date') {
row.push(addresses[i].attributes[field.fieldName] !== null ? self._formatDate(addresses[i].attributes[field.fieldName]) : '');
}
}, self);
body.push(row);
};
for (var i = 0; i < addresses.length; i++) {
_loop();
}
return body;
},
... View more
06-07-2018
05:11 AM
|
0
|
8
|
395
|
POST
|
No errors in the console. Is there a way perform a selection of those features based on the "Search Results" feature layer? Kind of the way it does in the _selectFeatures function: addressPtsLayer.selectFeatures(query, FeatureLayer.SELECTION_NEW, lang.hitch(this, function(results)
As of right now the zoomAndSelect really only zooms. _zoomAndSelectFeatures: function (features) {
this.map.setExtent(graphicsUntils.graphicsExtent(features.graphics), true);
}
... View more
06-06-2018
10:57 AM
|
0
|
10
|
395
|
POST
|
This is definitely cleaner and nicer than using the mix, but for some reason it is still not generating the attributes in the output for the getFeatures function. It finds the graphics updates the nodes and zooms to the features, but that is it.
... View more
06-05-2018
05:22 AM
|
0
|
12
|
395
|
Title | Kudos | Posted |
---|---|---|
2 | 04-21-2022 06:47 AM | |
2 | 08-07-2020 09:02 AM | |
2 | 08-13-2020 01:27 PM | |
1 | 01-23-2018 05:34 PM | |
1 | 03-09-2018 07:57 AM |
Online Status |
Offline
|
Date Last Visited |
03-08-2024
01:56 PM
|