POST
|
I am trying to incorporate Calcite Components into a Webpack 5 app. After following the steps outlined in the readme and then serving the app, I get the following error: [webpack-cli] TypeError: compiler.plugin is not a function
at StencilPlugin.apply (C:\projects\R9-CentralBasin\node_modules\@stencil\webpack\dist\index.js:14:18)
at createCompiler (C:\projects\R9-CentralBasin\node_modules\webpack\lib\webpack.js:71:12)
at create (C:\projects\R9-CentralBasin\node_modules\webpack\lib\webpack.js:118:16)
at webpack (C:\projects\R9-CentralBasin\node_modules\webpack\lib\webpack.js:142:32)
at WebpackCLI.f [as webpack] (C:\projects\R9-CentralBasin\node_modules\webpack\lib\index.js:54:15)
at WebpackCLI.createCompiler (C:\projects\R9-CentralBasin\node_modules\webpack-cli\lib\webpack-cli.js:1847:29)
at async Command.<anonymous> (C:\projects\R9-CentralBasin\node_modules\@webpack-cli\serve\lib\index.js:81:30)
at async Promise.all (index 1)
at async Command.<anonymous> (C:\projects\R9-CentralBasin\node_modules\webpack-cli\lib\webpack-cli.js:1284:13) After some research, it appears stencil is no longer compatible, since the compiler.plugin api was removed in webpack@5. Is there another way to use Calcite Components with Webpack 5?
... View more
05-27-2021
01:46 PM
|
1
|
1
|
1463
|
POST
|
Hi, I'm attempting to use the arcgis Python API to create a GP service to generate S123 feature reports, and simply return an array of item ids. The code below runs, but it does not appear to be generating a new report. The only two items in the survey.reports array are the template (not sure why it'd even show up), and a report previously generated directly from the S123 website. I'm also not seeing any new items under My Content in AGOL. Any tips? Thanks! Brad survey = arcpy.GetParameter(0) # '0d87ba0b72cf4c32b35c1db4d58c370d'
username = arcpy.GetParameter(1) # '<un>'
password = arcpy.GetParameter(2) # '<pwd>'
template = arcpy.GetParameter(3) # 3
where = arcpy.GetParameter(4) # '"objectIds":"3,4"'
utc_offset = arcpy.GetParameter(5) # '-07:00'
title = arcpy.GetParameter(6) # 'My_Report'
gis = GIS(None, username, password)
sm = SurveyManager(gis)
survey = sm.get(survey)
template_id = survey.report_templates[template].id
survey.generate_report(survey.report_templates[template], where, utc_offset, title)
report_id_arr = []
for report in survey.reports:
arcpy.AddMessage('doc id: ' + report.id)
if report.id != template_id:
report_id_arr.append(report.id)
report_ids = '["' + '", "'.join(report_id_arr) + '"]'
arcpy.AddMessage('doc ids: ' + report_ids)
arcpy.SetParameterAsText(7, report_ids)
... View more
07-22-2020
05:30 PM
|
0
|
1
|
543
|
DOC
|
Thanks for your reply, Robert. I'll look into how feasible this approach is. I'll be sure to post my changes if I go this route. Best, Brad
... View more
10-31-2017
10:30 AM
|
0
|
0
|
3864
|
DOC
|
Hi Robert Scheitlin, GISP, this widget does exactly what we're looking for, except for one feature - multi-select. More specifically, I am looking to modify the widget such that when searching by value, instead of just selecting one item from an expression drop-down, multiple values can be selected, where the values are dynamically created with the 'Unique' radio toggle. While the 'Value' radio toggle allows for searching multiple values by typing in a where IN statement such as 'R1,R2', it does not provide the user with a list of valid choices. Our old widget handled this via multi-select check boxes: Do you have any tips on where to begin making such changes? Thanks, Brad
... View more
10-30-2017
03:02 PM
|
0
|
0
|
3864
|
POST
|
I am also interested in the third tweak you mention - adding multi-select to the Query widget.
... View more
09-24-2017
06:14 PM
|
3
|
1
|
1363
|
POST
|
Hi, I am customizing the default WAB Query widget. I am trying to display the resulting layer as a ClusterLayer, instead of a FeatureLayer. To do so, I am using the ClusterLayer.js file from the Summary widget. The Query widget's Widget.js file creates the query's returned FL in the _createNewResultLayer function like so: resultLayer = new FeatureLayer(featureCollection); I commented this out, and replaced it with: resultLayer = new ClusterLayer({
id: this.label,
distance: 20,
displayOnPan: true,
map: this.map,
clusterSize: 120,
color: "#6e6e6e",
countField: null,
features: [featureCollection]
}); Besides adding ClusterLayer.js as a class in the require statement, the only other code I've changed in Widget.js was commenting out the following (at the end of the _createNewResultLayer function). // if(!currentAttrs.config.useLayerSymbol && currentAttrs.config.resultsSymbol){
// var symbol = symbolJsonUtils.fromJson(currentAttrs.config.resultsSymbol);
// renderer = new SimpleRenderer(symbol);
// resultLayer.setRenderer(renderer);
// } I've been sifting through the code in Chrome, but can't figure out why the layer isn't displaying on the map. The layer is definitely being added to the map object, along with its features: Any insight is greatly appreciated! Brad
... View more
09-24-2017
06:10 PM
|
0
|
0
|
1401
|
POST
|
Hi All, I am trying to use Robert Scheitlin, GISP's Popup Panel Widget Version 2.4 to auto-populate a field in the Smart Editor widget. Using a button click, I am able to retrieve the feature's value, as seen on line 16: _onLoadCreateBoringClick: function(){
var widgets = this.appConfig.getConfigElementsByName('SmartEditor');
if(widgets.length === 0){
this.loadSmartEditorInfoNode.innerText = 'Smart Editor is not configured.';
return;
}
var widgetId = widgets[0].id;
if(this.widgetManager.getWidgetById(widgetId)){
this.loadSmartEditorInfoNode.innerText = 'Smart Editor has been loaded.';
return;
}
this.openWidgetById(widgetId).then(lang.hitch(this, function(widget){
this.loadSmartEditorInfoNode.innerText = widget.name + ' is loaded';
console.log(this.selectedFeature.attributes.prPROJNO);
}));
}, Passing the value to the Smart Editor shouldn't be too difficult, but I am having trouble finding a way to then fill in one of the fields in the editor. Any ideas? Any help is greatly appreciated!
... View more
05-26-2017
02:02 PM
|
1
|
0
|
1533
|
Title | Kudos | Posted |
---|---|---|
1 | 05-27-2021 01:46 PM | |
3 | 09-24-2017 06:14 PM | |
1 | 05-26-2017 02:02 PM |
Online Status |
Offline
|
Date Last Visited |
10-15-2021
08:26 PM
|