POST
|
For anyone that encounters this issue in the future here is how to make the Search widget receive data with the OnReceiveData method: postCreate: function() {
this.listenWidgetIds.push('Widget ID');
... View more
09-10-2020
10:27 AM
|
2
|
0
|
1019
|
POST
|
Has anyone been able to test this and see if they can receive data in the Search widget?
... View more
08-17-2020
04:39 AM
|
0
|
1
|
1019
|
POST
|
The end goal here is to send a value to the Search dijit and execute the search function.
... View more
08-14-2020
04:42 AM
|
0
|
0
|
1019
|
POST
|
I would think it should still fetch data since I'm calling the fetchData(); method on line 2. The results are published after both widgets are created.
... View more
08-14-2020
04:38 AM
|
0
|
0
|
1019
|
POST
|
Yeah I just replaced it with what I pasted here. It's not in the code twice.
... View more
08-14-2020
04:34 AM
|
0
|
0
|
1019
|
POST
|
Here is the result from ESRI if anyone else has this issue: "On our call, we were able to demonstate the Query widget not honoring custom arcade expressions in the feature pop-ups. We found an exising defect that addresses this issue. I have attached the following defect to this case. BUG-000120210: The Query widget in the Web AppBuilder for ArcGIS application does not honor Arcade expressions configured in the pop-up setting for a web map feature layer even when the option to use the web map layer pop-up configuration is checked for the Query widget. Our Software Developers review bugs to determine further action to address these types of issues in future releases of the software. Currently, the public status of the defect is "In Product Plan" For the most up-to-date information on this request, you may track it by referencing BUG-000120210."
... View more
08-13-2020
01:27 PM
|
2
|
1
|
1861
|
POST
|
Has anyone had an issue trying to receive data in the Search widget? I have attempted to publish from multiple other widgets with no luck. Is there something I'm missing on this particular widget? startup: function() {
this.fetchData();
this.fetchDataByName('Query');
this.inherited(arguments);
onReceiveData: function(name, widgetId, data) {
if (parID.target === "Search") {
parID = data;
console.log('Search ParID data from Query ' + parID.data);
}
},
... View more
08-13-2020
01:23 PM
|
0
|
8
|
1108
|
POST
|
Ah good catch. I didn't even notice that at the bottom of the page. Thanks Robert!
... View more
08-12-2020
05:36 AM
|
0
|
0
|
519
|
POST
|
So I've read the only way to publish data is though the Widget.js because it derives from base widget. My issue is that I would like to publish data from the SingleQueryResult.js in the Query widget. When the user selects a result from the query list I need it to publish data. I read something on being able to grab it from the "Parent Widget" but not sure how to implement this. _selectResultTr: function(tr, feature, result, layerDefinition, config) {
this._unSelectResultTr();
this.resultTr = tr;
var currentAttrs = this.getCurrentAttrs();
var config = currentAttrs && currentAttrs.config;
var url = currentAttrs.config.url;
var objectIdField = currentAttrs.config.objectIdField;
var relationships = this._getCurrentRelationships();
var feature = tr.feature;
if (this.resultTr) {
html.addClass(this.resultTr, 'jimu-state-active');
var wManager = WidgetManager.getInstance();
var pm = PanelManager.getInstance();
pm.showPanel(this._getWidgetConfig("PopupPanel")).then(lang.hitch(this, function() {
this.publishData({
'target': 'PopupPanel',
'data': feature.attributes["PARID"]
});
}));
console.log("Result row was clicked " + feature.attributes["PARID"]);
}
}, Any help on this would be awesome!
... View more
08-12-2020
05:17 AM
|
0
|
2
|
544
|
POST
|
I have configured a popup in my webmap with a series of arcade expressions. When I click a feature from in my application the popup displays the values as they should. The issue I'm having is when I click a result feature from the Query widget the values are not the same and the field formatting is different. Arcade rounding issues not there, thousand separators gone, arcade averages returning incorrectly. Has anyone experienced any of these issues. I'm running js api 3.30 and WAB 2.16
... View more
08-07-2020
09:02 AM
|
2
|
5
|
2008
|
POST
|
Does the eSearch widget not work work with Arcade expressions even though I've configured it to display the web map popup? I have a simple map for testing with only a basemap and 1 operational layer. I have configured the operational layer to display a popup using multiple arcade expressions in the web map. I configured the eSearch to use the same search layer that is in the web map and display the web map popup. When I click using the graphic select or select a result from a query the popup says No Information Available. When I disable the graphical search and click a feature it displays fine. What am I missing?
... View more
07-31-2020
06:12 AM
|
0
|
2
|
590
|
POST
|
Goal: Create a feature set from an intersection of another layer then filter based on a field value. From there I need to define a numeric score value from a string, and finally return the average of the numeric score from the feature set . The issue I'm having is getting just the feature set to calculate the average for. //Finds the Neighborhood Polygon that intersects with Selected Parcel
var intersectArea = Intersects(FeatureSetByName($map,"Neighborhoods"), $feature);
//Defines the field to match and set the filter with
var nbhd = $feature.NBHD;
//Filters all parcels with the same NBHD as the selected feature
var filterresult = Filter($layer, 'NBHD = @nbhd');
//This returns the feature set I would like to assign a variable to and calculate an average from CDU is the field I would like to add a numeric score to average: if (CDU=="FAIR"){
var cduVal = 1.25
} else if
(CDU=="AVERAGE"){
var cduVal = 1.5
} else if
(CDU=="EXCELLENT"){
var cduVal = 2.5
} else if
(CDU=="EXTREMELY POOR"){
var cduVal = 0.0
} else if
(CDU=="GOOD"){
var cduVal = 2
} else if
(CDU=="POOR"){
var cduVal = 1
} else if
(CDU=="UNSOUND"){
var cduVal = 0.25
} else if
(CDU=="VERY GOOD"){
var cduVal = 1.5
} else if
(CDU=="VERY POOR"){
var cduVal = 0.75
}
else {var cduVal = 0}
return Average(cduVal); If that makes any sense... Any help would be appreciated.
... View more
05-19-2020
11:47 AM
|
0
|
0
|
596
|
POST
|
I've noticed an issues with this widget and was wondering where in widget.js I can modify to fix it. The issue is when you draw a feature with a measurement then attempt to edit/move the text it instantly adds the X&Y location that you can't get rid of. Has anyone else encountered this issue?
... View more
10-21-2019
04:56 AM
|
0
|
3
|
1662
|
POST
|
I figured out my issue i'm an idiot. The current web map layer with the popup was added to the map through https and the eSearch config layer I added to search was through http on accident. It couldn't see the layer in the map. Thanks Robert for all of your help! It's working great!
... View more
05-10-2019
12:47 PM
|
0
|
0
|
636
|
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
|