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
|
58
|
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
|
58
|
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
|
58
|
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
|
108
|
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
|
349
|
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
|
55
|
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
|
543
|
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
|
80
|
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
|
80
|
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
|
76
|
Online Status |
Offline
|
Date Last Visited |
Thursday
|