|
POST
|
@JenaF So here are the changes to be made to the widget.js file: //Change the onOpen function to this.
onOpen: function () {
this.removeEvtHandlers();
this.setEvtHandlers();
if(this.popup.features.length > 1){
domUtils.show(this.pager);
domClass.add(this.previous, "hidden");
domClass.remove(this.next, "hidden");
domClass.remove(this.clearSel, "hidden");
}else if (this.popup.features.length === 1){
domUtils.show(this.pager);
domClass.add(this.previous, "hidden");
domClass.add(this.next, "hidden");
domClass.add(this.clearSel, "hidden");
}else{
domUtils.hide(this.pager);
domClass.add(this.clearSel, "hidden");
}
this.displayPopupContent(this.popup.getSelectedFeature());
var mapMan = MapManager.getInstance();
if(mapMan.isMobileInfoWindow){
this.map.setInfoWindow(mapMan._mapInfoWindow);
mapMan.isMobileInfoWindow = false;
}
//hide the standard esri popup instead
html.addClass(query('.esriPopup')[0], 'myPopupHidden');
},
//Add this onClose function
onClose: function () {
this.removeEvtHandlers();
var mapMan = MapManager.getInstance();
mapMan.resetInfoWindow(false);
if(!mapMan.isMobileInfoWindow){
html.removeClass(query('.esriPopup')[0], 'myPopupHidden');
}
this.popup.reposition();
}, In the css\style.css file comment out this css rule: .esriPopup .actionsPane {
background-color: inherit;
} so that it looks like this: /* .esriPopup .actionsPane {
background-color: inherit;
} */
... View more
09-07-2022
05:54 AM
|
1
|
1
|
1701
|
|
POST
|
Is the popup panel widget in the anchor bar controller or one of the onscreen widget placeholders?
... View more
09-02-2022
11:44 AM
|
0
|
3
|
1741
|
|
POST
|
@naveenbesri Here is some code I use to open an off screen widget. define([
...
'jimu/WidgetManager',
'jimu/PanelManager',
'dojo/_base/array',
],
function (
...
WidgetManager, PanelManager, array
) {
...
postCreate: function () {
...
this.wManager = WidgetManager.getInstance();
this.pManager = PanelManager.getInstance();
},
_openAboutWidget: function () {
if (this.wManager) {
var widgetCfg = this._getWidgetConfig('About');
if (widgetCfg) {
var aboutWidget = this.wManager.getWidgetByLabel(widgetCfg.label);
if (aboutWidget) {
this.wManager.openWidget(aboutWidget);
this.pManager.showPanel(aboutWidget);
} else {
this.wManager.loadWidget(widgetCfg).then(lang.hitch(this, function (widget) {
if (widget) {
this.wManager.openWidget(widget);
this.pManager.showPanel(widgetCfg).then(lang.hitch(this, function (panel) {
//Move the widgets position back to on screen
panel.setPosition({
top: 45,
left: 55
});
this.pManager.normalizePanel(panel);
}))
}
}));
}
}
}
},
_getWidgetConfig: function(widgetName) {
var widgetCnfg = null;
array.some(this.wManager.appConfig.widgetPool.widgets, function(aWidget) {
if(aWidget.name == widgetName) {
widgetCnfg = aWidget;
return true;
}
return false;
});
if(!widgetCnfg) {
/*Check OnScreen widgets if not found in widgetPool*/
array.some(this.wManager.appConfig.widgetOnScreen.widgets, function(aWidget) {
if(aWidget.name == widgetName) {
widgetCnfg = aWidget;
return true;
}
return false;
});
}
if(!widgetCnfg) {
/*Check OnScreen groups widgets if not found in OnScreen widgets*/
array.map(this.wManager.appConfig.widgetOnScreen.groups, function(aGroup) {
array.some(aGroup.widgets, function(aWidget) {
if(aWidget.name == widgetName) {
widgetCnfg = aWidget;
return true;
}
return false;
});
});
}
return widgetCnfg;
},
... View more
08-31-2022
10:48 AM
|
1
|
0
|
2382
|
|
POST
|
@naveenbesri So for the onScreen widget placeholder to not be visible but be loaded and listening for another widget that is pretty simple. In the aps main config.json just search for the widgets name and make the widgets position left attribute a large negative number. "position": {
"left": -550,
...
... View more
08-30-2022
10:59 AM
|
1
|
2
|
2390
|
|
POST
|
@naveenbesri Sorry I forgot to check which forum I was in. Is widget B an onScreenWidget or is it part of the HeaderControllers' widgets? The answer to that will make all the difference in the code that I will share.
... View more
08-30-2022
05:32 AM
|
0
|
1
|
2397
|
|
POST
|
@naveenbesri You can close a widget using this line of code. this.props.dispatch(appActions.closeWidget("the ID of the widget you want to close")); Not sure about how to destroy a widget or why you would want to verses just close the widget. In widget widget A you can add some code to componentDidUpdate to do any clean up of things you did in widget A, like outlined in this thread. https://community.esri.com/t5/arcgis-experience-builder-questions/widget-close-event/m-p/1040201#M1659
... View more
08-26-2022
05:46 AM
|
1
|
1
|
2442
|
|
DOC
|
@ErmelindaEspinoza No I have not seem any capability to do this without Network Analyst.
... View more
08-24-2022
05:44 AM
|
0
|
0
|
6849
|
|
POST
|
In watchUtils there is the pausable method what is the equivalent for reactiveUtils? Do I need to add and remove the watchHandle?
... View more
08-18-2022
08:15 AM
|
0
|
2
|
1035
|
|
POST
|
The way I manage it is use a state. so Tabs value property is set to a widget state called selTab and programmatically I set the widgets state for selTab and it works fine.
... View more
08-18-2022
06:48 AM
|
0
|
0
|
955
|
|
DOC
|
@AdamGebhart As there was never a demand for that except that one user it was never added.
... View more
08-12-2022
08:44 AM
|
0
|
0
|
6902
|
|
DOC
|
@CarlSunderman Since I can not access your servers services to test I can only generally advise in this situation. From the looks of the service name and the field name being "FIELD_NAME" it appears that you have just thrown together a service for testing. Do you have any other services you can test? Does the server that is running the WAB application have access to the rest service end point that you are attempting to use? There are hundreds of user of this widget out there using their own services, so it is something simple on your end.
... View more
08-10-2022
06:25 AM
|
0
|
0
|
5918
|
|
DOC
|
@CarlSunderman Would it be possible for you to paste the config.json for me to look at?
... View more
08-08-2022
01:42 PM
|
0
|
0
|
5973
|
|
DOC
|
@CarlSunderman One of the mistakes that people make when configuring the widget for their own services is not using the correct protocol in the url. Because you are using Portal your url must have https: as the protocol in the url when configuring the widget.
... View more
08-08-2022
12:27 PM
|
0
|
0
|
5979
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM | |
| 1 | 03-28-2022 06:20 AM | |
| 1 | 01-30-2019 07:38 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-01-2025
05:12 AM
|