POST
|
In the application I want to show only a specific subset of all the possible values depending on the logged user. So I must assign dinamically which values the dropdown must show. Thanks for your reply.
... View more
05-30-2019
03:05 PM
|
0
|
0
|
665
|
POST
|
Hi, I'm using the Filter Widget in an application created with Web AppBuilder 2.11 Developer Edition. Is there a way I can set programatically the value of a dropdown shown by the filter? In the image above I have set up the filter widget to ask for values from a field in a specific layer. I want to programatically set that dropdown value so it filters the layer with the corresponding expression. The value I want to set is already listed in the dropdown. If that is not possible, is there a way to specify programatically the options that the dropdown must show? Any ideas on how to do that? Regards, Ramon Velez
... View more
05-30-2019
02:13 PM
|
0
|
3
|
821
|
POST
|
My application programatically changes the layer gdb version but the attribute table widget keeps showing the information for that layer's default version. Since I'm changing the version for the layer I'm getting from the webmap, I expected the attribute table to show info for that layer's version only. Is this the expected behavior? What can I do to make the attribute table show only information for the gdb version the layer is using? The application is a custom application created with Web AppBuilder Developer Edition and uses custom widgets. Thanks in advance, Ramon
... View more
05-05-2016
09:48 PM
|
0
|
1
|
1596
|
POST
|
Hi, I'm using WAB 1.3 and when I add a FeatureLayer programatically to the map it shows up in the LayerList Widget with the Popup disabled by default? Is there a way to enable the Popup programatically? Below is a snippet of the function I'm using to add the layer to the LayerList Widget with a name of my choice. //Filename: LayerListHelper.js
//Helper static class used for adding a layer in the LayerListWidget
//and renaming it after adding it to the map.
define(['dojo/_base/array',
'dojo/_base/lang',
'esri/lang'
],
function (array, lang, esriLang) {
return {
lstLayers: [],
//Adds a layer in the map and Layer List Widget and renames it to
//the given name.
//@param('esri/Map')map - The map in which the copied layer will be added
//@param('esri/layers/Layer')layer - The layer to be renamed
//@param(string)name - The new name of the layers
//@param(int)positionIndex? - (Optional)The position in which the layer
//will be added to the map, defaults to 0
AddLayerWithNewName: function(map, layer, name, positionIndex) {
lang.mixin(layer, {label: name});
var index = positionIndex;
if (!(esriLang.isDefined(positionIndex))) {
index = 0;
}
map.addLayer(layer, index);
this.lstLayers.push(layer);
},
//Removes the layers added by using the method AddLayerWithName
//@param('esri/Map')map - The map from which the added layers will be removed
RemoveAddedLayers: function(map) {
array.forEach(this.lstLayers, function(currLayer) {
map.removeLayer(currLayer);
});
this.lstLayers = [];
}
};
});
//Example call to AddLayerWithName function
//Class code and module loading removed for brevity
//mapFromWAB comes from this.map in Widget.js
var flayer = new FeatureLayer("http://myFeatureServiceUrl");
LayerListHelper.AddLayerWithName(mapFromWAB, flayer, "My New Layer", 0);
... View more
02-18-2016
10:17 AM
|
0
|
1
|
1919
|
POST
|
I have a custom geoprocessing task that deletes features from a layer. If I query the layer after the geoprocessing task finishes succesfully, I get the deleted features returned, but if I do the query a second time I get the correct results back (deleted features aren't returned). This occurs doing the queries programatically or directly on the REST Endpoint. Any ideas of what can be causing that weird behavior?
... View more
09-11-2015
09:07 AM
|
0
|
0
|
2809
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|