POST
|
How do I add a layer to a map from a widget when the layer is secured and requires authentication? Currently, the secured layer gets added to the map, but an authentication popup appears. I'm hoping I can add a token or credentials to the layer properties and so circumvent the authentication popup. The layer that I'm trying to add is secured and visible externally in our DMZ. We'd like our users to not see the authentication popup, if possible. I've been experimenting with IdentityManager using the online examples, but these samples don't seem to apply well to Web App Builder apps and widgets.
... View more
11-21-2016
02:06 PM
|
0
|
11
|
4685
|
POST
|
I have the following code that successfully shows a widget panel. When using the Launchpad theme, the colour from the widget's button icon in the AnchorBarController doesn't get applied to the panel header. It should look like this: but instead looks like this: Also, when minimised the panel looks like this: when it should take on the colour of the button icon in the AnchorBarController like this: The code: var myWidget = null;
arrayUtils.some(this.wManager.appConfig.widgetPool.widgets, function (aWidget) {
if (aWidget.name === widgetName) {
myWidget = aWidget;
}
});
if (myWidget) {
// check for presence of the AnchorBarController
var controller = this.wManager.getWidgetsByName("AnchorBarController");
if (controller.length > 0) {
this.pManager.showPanel(myWidget).then(lang.hitch(this, function (panel) {
panel.setPosition({ top: 120, left: 10, width: 350, height: 480, margin: 10, index: 0 });
}));
}
else {
this.pManager.showPanel(myWidget);
}
} Does anyone know of a way to get the icon colours to apply to the panel?
... View more
04-28-2016
02:40 PM
|
0
|
2
|
2249
|
POST
|
I've found no explanations anywhere about this. And what is "jimu"?
... View more
04-05-2016
07:15 PM
|
1
|
3
|
4645
|
POST
|
We are implementing a content management system having Sitecore as it's platform. We would like to embed some maps using the ArcGIS Javascript API. Does anyone have experience with this? Updated We had our Sitecore developer create a template that allows for the insertion of HTML, CSS <link>s and <script> tags. Each of these has a separate input textbox in the template. It looks like this: All of the CSS and javascript files are published to a publicly assessible folder in our DMZ. And that's it!
... View more
04-04-2016
04:48 PM
|
0
|
2
|
3185
|
POST
|
When an app has been updated and re-published, a browser will load the files from the cache and not the server. This means each user needs to manually clear the cache and refresh. I thought about having a "refresh" widget that creates a cookie with a version number as the name, and then on subsequent page loads, reading the name and comparing it to a variable to determine if the app has been updated. If the version number is different then execute this: document.location.reload(true); Does anyone have a better idea?
... View more
03-10-2016
07:15 PM
|
5
|
9
|
4258
|
POST
|
In the Print widget there is a reference to jimu/portalUtils. Does anyone know where I can find documentation for jimu/portalUtils?
... View more
12-06-2015
05:14 PM
|
1
|
2
|
4251
|
POST
|
In the meantime... another day, another bug to fix. That's what we're paid for.
... View more
11-23-2015
12:03 PM
|
0
|
0
|
540
|
POST
|
I've been trying to open a widget from another widget. The code I have works fine for Foldable theme but not for Launchpad theme. _showWidget: function (widgetName) {
var wm = WidgetManager.getInstance();
var pm = PanelManager.getInstance();
var myWidget = null;
arrayUtils.some(wm.appConfig.widgetPool.widgets, function (aWidget) {
if (aWidget.name === widgetName) {
myWidget = aWidget;
}
});
if (myWidget) {
var controller = wm.getWidgetsByName("AnchorBarController");
if (controller.length > 0) {
var deferred = pm.showPanel(myWidget);
deferred.then(function (panel) {
//pm.minimizePanel(panel);
pm.normalizePanel(panel);
//pm.maximizePanel(panel);
});
}
else {
pm.showPanel(myWidget);
}
}
}, line 17 and 19 both work i.e. they perform as expected, but line 18 does nothing. My panel is still hidden.
... View more
11-22-2015
07:28 PM
|
0
|
3
|
4497
|
POST
|
Hi Robert, It might have been me that you are referring to when you talk about the person using the 3rd party libraries. Changing the code I've posted above to this below fixes the error. //this.map.infoWindow = this._customPopup;
this.map._mapParams.infoWindow = this._customPopup; I know we should avoid the underscored objects, but it works.
... View more
11-18-2015
02:35 PM
|
0
|
1
|
723
|
POST
|
Yes, console.info shows that this.map is a map object.
... View more
11-12-2015
12:09 PM
|
0
|
0
|
723
|
POST
|
Bloodhound is included in typeahead.bundle.min.js which is in \stemapp\libs\storejs and loaded by \stemapp\libs\main.js which has this code: define(["./usng/usng"
, "./storejs/json"
, "./storejs/store"
, "./storejs/bootstrap.min"
, "./storejs/typeahead.bundle.min"
]
, function(){
});
jquery-2.1.4.min.js is in \stemapp\libs and is loaded by \stemapp\init.js which contains this code: resources = resources.concat([
window.apiUrl + 'dojo/resources/dojo.css',
window.apiUrl + 'dijit/themes/claro/claro.css',
window.apiUrl + 'esri/css/esri.css',
window.apiUrl + 'dojox/layout/resources/ResizeHandle.css',
window.path + 'jimu.js/css/jimu-theme.css',
window.path + 'libs/npdccss/typeahead.css',
window.path + 'libs/npdccss/bootstrap.min.css',
window.path + 'libs/npdccss/bootstrap-theme.min.css',
window.path + 'libs/jquery-2.1.4.min.js'
]); This discussion describes how I came to use these methods of loading other libraries. Uncaught Error: Bootstrap's JavaScript requires jQuery
... View more
11-11-2015
04:56 PM
|
0
|
4
|
723
|
Title | Kudos | Posted |
---|---|---|
1 | 11-27-2016 01:34 PM | |
1 | 05-13-2015 09:27 PM | |
1 | 06-09-2015 03:18 PM | |
1 | 06-24-2015 06:22 PM | |
1 | 07-07-2015 03:17 PM |
Online Status |
Offline
|
Date Last Visited |
03-22-2021
03:45 PM
|