POST
|
thank you so much, Robert. that is exactly what I want. I call " _checkWidgetVisibility " without setting time out.
... View more
10-28-2020
02:10 PM
|
0
|
0
|
1247
|
POST
|
Thanks so much, Robert. What theme are you using? I am using TabTheme Where is the widget that you are trying to change the visibility for (i.e in one of the on screen widget positions, in the Header controller widget, in the anchorbar controller)? The widget is one of the on screen widget. Its visibility is set to false at the config.json Where in the WAB code are you checking the user permission? When the user opens the web site, Some .Net codes check if the log in user is in certain AD group. I save the checking permission result in the cookie. For example, if the user is in the AD group, I save the permission cookie as "yes". I then retrieve the permission cookie in java script code. I will turn on the widget if the permission cookie is "yes". This is where I have issue. I don't know where I should put the topic.publish to trigger the changes of the widget configuration. " topic.publish('widgetChanged', widgetCfg); "
... View more
10-27-2020
09:11 AM
|
0
|
2
|
1247
|
POST
|
Thanks Robert. There is a custom widget, which is set "visible: false," in the application's config.json. I would like the custom widget show up when the application loads if the log in user is in a permitted group. The permission is already checked before the map and widget load in the application. I have tried to put the " topic.publish " code in the jimu.js\layoutManagers\BaseLayoutManager.js postCreate. The _onWidgetChanged is still not fired in \\tst-gis6\c$\inetpub\wwwroot\iMapWAB\jimu.js\ConfigManager.js.
... View more
10-21-2020
09:06 AM
|
0
|
4
|
1247
|
POST
|
Hello. I have a WAB application at version 2.16. There is a custom widget, which is set "visible: false," in the application's config.json. I would like to change it as visible if the log in user is in a permitted group. According to this discussion, Show hide layers widget based on Portal Named user level , I add the following codes to this custom widget.js postCreate module. But the code never hits to postCreate module. Where should I put those lines of codes? thanks so much. postCreate: function () {
console.log('postCreate');
var widgetCfg = this._getWidgetConfig('MyCustomWidget');
widgetCfg.visible = true;
if(window._layoutManager.params.urlParams.mode === 'config'){
topic.publish('builder/widgetChanged', widgetCfg);
}else{
topic.publish('widgetChanged', widgetCfg);
}
},
... View more
10-20-2020
01:59 PM
|
0
|
6
|
1297
|
POST
|
Tahu, I can't get print widget to work when the WAB dev app is deployed to a web application server even for non-secured map services. I have not tested the buildin WAB printing widget. The error shoes that the output directory is pointing to the output printing folder at local drive. But I am able to run the printing job in the Execute print rest end point successfully by using the Web_Map_as_JSON captured from the dev network tool. Are there any progress or work around from the bug you mentioned? thanks Helen
... View more
09-04-2020
12:52 PM
|
1
|
0
|
1820
|
POST
|
Yang, is the feature service published in a standalone ArcGIS server or federated GIS server? If it is in the federated GIS server, you may need to provide more information like tokenServiceUri together with username and password. This is because the token is generated in the Portal for ArcGIS, not the GIS server. You will also be able to debug the application in IDE like Microsoft Visual Studio to find out if the username and password is passed to the proxy.ashx file and why you are still prompted for authentication.
... View more
06-25-2020
11:49 AM
|
1
|
1
|
2044
|
DOC
|
Hello Robert, I am using identify widget version 2.14. It has been working well. But I just found out that, if a map service is not available for one layer configured in the identify layer list, identifying feature doesn't work for any layer in the identify list. Can you check if that is the case at your end? or there is some configuration that I have missed? thanks Helen
... View more
06-25-2020
08:02 AM
|
0
|
0
|
4777
|
POST
|
Thank you, Robert. Do you know where to customize the symbol after an address is located with a geocoding service in the search widget? Helen
... View more
06-04-2020
06:41 AM
|
0
|
1
|
995
|
POST
|
Hello Robert, I have some code to add my own symbol when an address is found. So I would like to make the default black symbol be transparent. I am using WAB 2.16. When I run debugging tool in the widget.js for search widget, I don't see the debugging stopped at those lines which the "convertedSource.highlightSymbol" is assigned (convertedSource.highlightSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE,) at line 383 and line 401. The debugging doesn't stop at if statement ( if(sourceLayerInfo) ) at line 381. It looks like the small black dot is added at another location. Do you know where is it? thanks.
... View more
06-03-2020
08:55 AM
|
0
|
3
|
995
|
POST
|
Hello, I am using ArcGIS javascript API 3.31 to load a WMS layer to a map. The WMS layer is hosted by a third party. It takes 7-10 seconds to load. I add a loading image to show the status of the layer loading. I would loading image to disappear when the WMS layer displays in the map. I have tried esri/layers/WMSLayer's "load" event and esri/map's "layer-add" or "layer-add-result" event. None of them work. Event fires before I can see the WMS map layer is added to the map. Can anybody tell what kind event I need? Thanks Helen
... View more
02-11-2020
01:58 PM
|
0
|
1
|
700
|
POST
|
I have figured it out. I download the latest proxy and deploy it in IIS server. In the config.json httpProxy section, I change the value to the latest proxy url for proxyUrl value. the latest can be downloaded here https://github.com/Esri/resource-proxy/archive/master.zip
... View more
02-05-2020
02:44 PM
|
0
|
0
|
875
|
POST
|
Thanks so much, Than. I have removed the line of code to reorder Layer and run code again today. The Chrome developer tool console shows error: "Access to XMLHttpRequest at 'https://api.nearmap.com/wms/v1/latest/apikey/N......jAy?SERVICE=WMS&REQUEST=GetCapabilities' from origin 'https://testserver' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute". I am able to run the same codes in a html page deployed in the same server. The only additional code in the html page is esriConfig.defaults.io.corsEnabledServers.push("api.nearmap.com"). So - I try to configure the proxy in the config.json for proxy: "httpProxy": { "useProxy": true, "url": "", "alwaysUseProxy": false, "rules": [{ "urlPrefix": "https://api.nearmap.com/", "proxyUrl": "https://testserver/wabsupport/proxy/proxy.ashx" }] }, in the proxy.config: <serverUrl url="https://api.nearmap.com/" matchAll="true"/> Running the WAB application, the WMS is still not loaded with 500 error: https://testserver/wabsupport/proxy/proxy.ashx?https://api.nearmap.com/wms/v1/latest/apikey/N.../... thanks so much for help
... View more
02-04-2020
10:00 AM
|
0
|
0
|
875
|
POST
|
I am working a customized widget usingWeb Appbuilder developer edition 2.14. One part of the code is to load a WMS map service to the map. I am able to load the WMS service in development environment. After I download the site and deploy it in an IIS server, the WMS map is not loaded to the map. Google Chrome developer tool shows the layer is added and no error at the console tab. If I put the same piece of codes to a standalone html page in an IIS server. It also works. Any help is appreciated. Thelines of code to load WMS service is below- if(!this.isNearmapLoaded){ wmsNearmapLayerUrl='https://api.nearmap.com/wms/v1/latest/apikey/somekey?request=GetCapabilities'; this.wmsNearmapLayer = new WMSLayer(wmsNearmapLayerUrl, { format: "jpg", id:"Nearmap", visibleLayers: ["area/d1cb2895-a36f-902170/all/2016-09-19"] }); this.map.addLayer(this.wmsNearmapLayer) ; this.map.reorderLayer(this.wmsNearmapLayer,1); this.isNearmapLoaded = true; }
... View more
02-03-2020
12:16 PM
|
0
|
4
|
1003
|
POST
|
For web Appbuilder version 2.13, Here is the updated code of Robert's _getWidgetConfig to search config of a WidgetOnScreen widget. The original "this.wManager" is no longer valid. Helen _getWidgetConfig: function(widgetName){
var widgetCnfg = null;
array.some(this.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.appConfig.widgetOnScreen.widgets, function(aWidget) {
if(aWidget.name == widgetName) {
widgetCnfg = aWidget;
return true;
}
return false;
});
}
return widgetCnfg;
},
... View more
10-25-2019
10:30 AM
|
0
|
2
|
913
|
Title | Kudos | Posted |
---|---|---|
1 | 11-09-2022 10:27 AM | |
2 | 04-27-2022 08:20 AM | |
1 | 04-27-2022 08:35 AM | |
2 | 04-25-2022 09:20 AM | |
1 | 04-18-2022 07:38 AM |
Online Status |
Offline
|
Date Last Visited |
12-08-2023
10:33 PM
|