|
POST
|
Michael, Glad you figured it out. This is not something I would have had a suggestion for this time.
... View more
09-21-2020
11:33 AM
|
2
|
0
|
1408
|
|
POST
|
Dylan, Have you seen the group filter widget? Group Filter widget—ArcGIS Web AppBuilder (Developer Edition) | ArcGIS for Developers
... View more
09-21-2020
10:31 AM
|
2
|
0
|
1543
|
|
POST
|
So just change my code example above to line 36 to if(esriLang.isDefined(this.urlObject.query.query)){ (yes two "query"s as the first query is just the object name that the browser gives to anything after the ? or & in the url).
... View more
09-18-2020
11:12 AM
|
0
|
1
|
2966
|
|
POST
|
Michael, Sure it would just take some custom code. What parameter are you looking for in the url? Here is an example (lines 17, 20, 24, 25, 37-39): define(['dojo/_base/declare',
'dojo/_base/lang',
'dojo/_base/html',
'dojo/on',
'dojo/keys',
'dojo/query',
'dojo/cookie',
'dijit/_WidgetsInTemplateMixin',
'jimu/BaseWidget',
'dojo/topic',
'jimu/dijit/CheckBox',
'jimu/utils',
'esri/lang',
'jimu/dijit/LoadingShelter',
'dojo/Deferred',
'jimu/dijit/EditorXssFilter',
'esri/urlUtils'
],
function(declare, lang, html, on, keys, query, cookie, _WidgetsInTemplateMixin, BaseWidget, topic,
CheckBox, utils, esriLang, LoadingShelter, Deferred, EditorXssFilter, urlUtils) {
...
postCreate: function() {
...
this.urlObject = urlUtils.urlToObject(window.location.href);
this.urlObject.query = this.urlObject.query || {};
},
onOpen: function() {
if (!utils.isInConfigOrPreviewWindow()) {
var isFirstKey = this._getCookieKey();
var isfirst = cookie(isFirstKey);
if (esriLang.isDefined(isfirst) && isfirst.toString() === 'false') {
this.close();
}
}
if(esriLang.isDefined(this.urlObject.query.closeSplash) && this.urlObject.query.closeSplash == "true"){
this.close();
}
...
... View more
09-18-2020
10:34 AM
|
1
|
4
|
2966
|
|
POST
|
Sui, That is because that text is a localized string in the JS API and is not specific to WAB. To change it you have to change the string in the JS API i18n!esri module. Replace the esriBundle.toolbars.draw.addPoint string with your text. define(['dojo/_base/declare',
'dojo/_base/lang',
'dojo/_base/html',
'dojo/_base/array',
'dojo/on',
'dojo/promise/all',
'dijit/_WidgetsInTemplateMixin',
'esri/symbols/SimpleMarkerSymbol',
'esri/symbols/SimpleLineSymbol',
'esri/symbols/SimpleFillSymbol',
'esri/symbols/jsonUtils',
'esri/Color',
'jimu/BaseWidget',
'jimu/WidgetManager',
'jimu/dijit/ViewStack',
'jimu/dijit/FeatureSetChooserForMultipleLayers',
'jimu/LayerInfos/LayerInfos',
'jimu/SelectionManager',
'jimu/dijit/FeatureActionPopupMenu',
'jimu/utils',
'./layerUtil',
'./SelectableLayerItem',
'./FeatureItem',
'dojo/i18n!esri/nls/jsapi',
'jimu/dijit/LoadingShelter'
],
function(declare, lang, html, array, on, all, _WidgetsInTemplateMixin, SimpleMarkerSymbol,
SimpleLineSymbol, SimpleFillSymbol, SymbolJsonUtils, Color, BaseWidget, WidgetManager, ViewStack,
FeatureSetChooserForMultipleLayers, LayerInfos, SelectionManager, PopupMenu, jimuUtils, layerUtil,
SelectableLayerItem, FeatureItem, esriBundle) {
...
onDeActive: function(){
if (this.selectDijit.isActive()) {
this.selectDijit.deactivate();
}
this._restoreSelectionSymbol();
esriBundle.toolbars.draw.addPoint = this.defaultStr;
},
onActive: function(){
this.defaultStr = esriBundle.toolbars.draw.addPoint;
this._setSelectionSymbol();
if (this.config.enableByDefault !== false && !this.selectDijit.isActive()) {
this.selectDijit.activate();
}
esriBundle.toolbars.draw.addPoint = 'blah blah';
},
... View more
09-18-2020
06:18 AM
|
2
|
1
|
3226
|
|
POST
|
I have not run into that. But maybe look at this link and the "updateLocationEnabled" property https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open
... View more
09-18-2020
05:38 AM
|
0
|
0
|
4377
|
|
POST
|
WAB has an export > import ability if both WABs are the same version. Create or import an app—ArcGIS Web AppBuilder (Developer Edition) | ArcGIS for Developers
... View more
09-17-2020
11:26 AM
|
0
|
0
|
1178
|
|
POST
|
Michelle, You talking about one application in WAB or the whole WAB to another machine?
... View more
09-17-2020
11:19 AM
|
0
|
2
|
1178
|
|
POST
|
Martin, Because the way you have the var Sold inside the startup function it only exists in that functions scope. Instead do this: startup: function() {
this.inherited(arguments);
this.Sold = new FeatureLayer(...
....
_ShowPopup: function() {
var scale = scaleUtils.getScale(this.map);
if (scale < 37000) {
if(!this.map.getLayer('Sold')){
this.map.addLayer(this.Sold);
}
...
}else{ //map scale greater than 37000
this.map.removeLayer(this.Sold);
}
....
... View more
09-17-2020
08:23 AM
|
1
|
1
|
2231
|
|
POST
|
Martin, You really need to reconsider your workflow here. Every time the maps extent changes and the the map scale is below 37000 you create a NEW FeatureLayer and add it to the map and then attach events to that layer. You never check if the featurelayer exists already. You should really create the layer in the widget startup and then only add the layer to the map when the map scale is correct and remove the layer when not at the correct scale. Next you have a on map load line in your code. Well the map will always already be loaded before your widgets code is called so this will never be reached. It still fires after you zoom out because you have nothing that tells it to stop in your code (i.e. like removing the mouse-over listener or even better the layer).
... View more
09-17-2020
06:16 AM
|
0
|
3
|
2231
|
|
POST
|
When you select a sublayer of a ArcGISMapServiceLayer then a graphic display layer is created by the widget. The way you get the select graphic is to call the SelectionManagers getDisplayLayer method (which returns a GraphicsLayer) using the ID of the sub layer and then get that graphics array from that layers graphics property.
... View more
09-17-2020
06:00 AM
|
0
|
0
|
1455
|
|
DOC
|
James, The tab theme sidebar is not a great fit for this widget, but here is the fix: onOpen: function () {
if (this.lastMeasure && this.measureTool) {
this.measureTool.measure(this.lastMeasure);
}
var panel = this.getPanel();
var pos = panel.position;
if(this.appConfig.theme.name === 'TabTheme') {
pos.width = 350;
}else{
pos.width = 720;
panel.setPosition(pos);
panel.panelManager.normalizePanel(panel);
}
},
... View more
09-16-2020
02:29 PM
|
0
|
0
|
21322
|
|
POST
|
Yes, like a whiteboard. I have not personally added tab to a popup but it should be possible as you can pretty much add anything to the popups content.
... View more
09-16-2020
01:19 PM
|
0
|
0
|
2688
|
|
POST
|
Victor, You will only get to that area of the code if you choose "Custom settings" in the widgets settings dialog.
... View more
09-16-2020
12:02 PM
|
1
|
0
|
957
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2020 11:36 AM | |
| 17 | 05-17-2021 01:51 PM | |
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-08-2026
06:27 AM
|