POST
|
Michael, Thanks for the follow-up. It seems to me that we never really worked out a complete understanding of the situation. I think I posted it partly for the sake of the community. At any rate, we muddled our way through. Please feel free to update/delete this post as is most appropriate. David David Plume | Web Mapping Apps, Solutions Programmer and Spatial Analyst Cell: 303.437.7977 David.Plume@tetratech.com<mailto:David.Plume@tetratech.com> Tetra Tech 216 16th St., Denver CO 80202 PLEASE NOTE: This message, including any attachments, may include confidential and/or inside information. Any distribution or use of this communication by anyone other than the intended recipient is strictly prohibited and may be unlawful. If you are not the intended recipient, please notify the sender by replying to this message and then delete it from your system. P Think Green - Not every email needs to be printed.
... View more
06-16-2020
08:43 AM
|
0
|
0
|
599
|
POST
|
Robert, As usual your very helpful suggestions are welcome -- I'll check it out! Thanks David
... View more
10-30-2017
05:00 PM
|
0
|
2
|
853
|
POST
|
Hi I'm trying to generate scale text (e.g. 1/100,000 ) in the JS 4.5 API. I can find MapView.scale but have not been able to locate anything like a "zoomEnd" event. In 4.x API -- where might I find and event at the end zooming in our out please? Thanks David
... View more
10-30-2017
04:14 PM
|
0
|
6
|
1348
|
POST
|
Jordan, Thanks for your response -- it is looking like I might have to study your work around in detail. I'm a bit surprised that ESRI would leave such a bug unfixed -- and if it is unfixed, I'm surprised we're not seeing more conversation about it.
... View more
10-23-2017
09:21 AM
|
0
|
2
|
1008
|
POST
|
I'm also having problems showing all of my visible sublayers in my printTask. Undral -- any insights into that problem would be appreciated very much. Thanks David
... View more
10-18-2017
12:26 PM
|
0
|
7
|
1008
|
POST
|
Hi Everyone, I'm using ExtJs 6.x API to build a mapping application supported by the ArcGIS javascript 4.3 API. Generally, I've got things working nicely but have run into a multiple define error (see graphic) when I add the ExtJs Exporter tools to my ExtJs environment. I've found very little in my research about how to diagnose and overcome multiple define problems -- any insights or hints would be welcome! There are some clues at https://community.esri.com/thread/119518 but I've not been able recognize any solution based on the conversations there. Thanks, David
... View more
06-12-2017
01:18 PM
|
0
|
0
|
1029
|
POST
|
Larry, Thanks very much - yes, I'm good. I wish we had several of both of you! David
... View more
05-22-2015
11:02 AM
|
1
|
1
|
970
|
POST
|
Robert and Qun, Thank you both! That did the trick, the form is working nicely now. Naturally this indicates I need to bone up on CSS! Best Regards David
... View more
05-20-2015
08:22 AM
|
0
|
0
|
653
|
POST
|
Update, You can manage the Loading... gif and label at \jimu.js\dijit\LoadingShelter.js and jimu.js\dijit\templates\LoadingShelter.html My form is still not active tho.
... View more
05-19-2015
04:27 PM
|
2
|
2
|
653
|
POST
|
Following up on my recent post ( Web App Start-up with Validation and Bailout if Need Be, two weeks ago ) I'm wrestling with the "Loading ..." process that seems to have captured any screen dialog events preventing interaction with my dialog. See below. The following code, in my WAB index.html follows the pattern recommended by Larry Stout and has been tested in a work bench/prototype environment. In this implementation, the dialog shows correctly but is not active (see graphic below). This is an ExtJS 3.4 Window and I've the same problem with a JQuery Dialog. A simple alert(), however does display active above the "Loading ..." I've looked high an low for an appropriate place to intercept the Loading and override it but no luck -- any suggestions would be welcome! The form dialog shows but the Loading ... graphic continues and seems to prevent any interaction with the form:
... View more
05-19-2015
03:19 PM
|
0
|
4
|
4444
|
POST
|
Larry, If you have time and interest I'm wrestling with the asynchronous nature of javascript and the problems introduced with the posting of an EXT.JS web form to get and validate the user name and password. Using the code below I raise the following form but have two problems. The form is not active and seems to be hidden behind the Loading div?? how can I turn off the loading widget and is it plausible that the form is inactive because it is behind the loading div. Anyway - here is my implementation of the code: index.html, body:
( function waitForAPI() {
if (typeof require === 'undefined') {
if (window.console) {
console.log('Waiting for API to be loaded.');
}
setTimeout(waitForAPI, 100);
return;
}
else
{
validateCredentials();
}
function validateCredentials() {
require([
'dojo/aspect',
'dojo/Deferred',
'jimu/utils'],
function (aspect, Deferred, jimuUtils) {
aspect.around(jimuUtils, 'createWebMap', function(originalMethod) {
return function(portalUrl, itemId, mapDiv, options) {
var mapDeferred = new Deferred();
var authDefer = new Deferred();
var authResult = null;
// Set up the authorization deferrer:
authDefer.then(
//Callback after resolution of the deferrer
function (authResult) {
//ServiceStatus < 0 indicates the call to the service is incomplete. 0 indicates Cancel, > 0 indicates the service has executed, See Result for success or failure)
//authResult = { ServiceStatus: N, ServiceResult: "STRING", bIsAuth: Bool };
if (authResult.bIsAuth) {
originalMethod.call(jimuUtils, portalUrl, itemId, mapDiv, options).then(function(deferred) {
mapDeferred.resolve(deferred);
return;
});
}
else
{
map.remove();
mapDeferred.reject();
window.location.assign("http://localhost/wab1/NotAuthorized.html");
confirm('Credentials not Valid');
}
}
);
// Call this with authDefer and wait for resolution
r5AuthMod.Authenticate("EPAOSC_Token", authDefer);
return mapDeferred;
//return authDefer;
};
});
});
}
})();
... View more
05-19-2015
10:54 AM
|
0
|
3
|
970
|
POST
|
Larry, Excellent - I think this was just what I had in mind. Thank you for your thoughtful code example! David.
... View more
05-09-2015
12:25 PM
|
1
|
0
|
970
|
POST
|
Robert, that just goes to show how one can get so wrapped up in one framework they loose their brain and forget about all the other tools in their toolbox. Thanks!
... View more
05-09-2015
12:22 PM
|
0
|
0
|
970
|
POST
|
Hi - I'd like to locate logic in my application start-up to call a service and authenticate a user on that service. If the user is OK then finish app start up. If not OK then show message, stop loading and cleanup. Where should this login be located? More robustly, you could have code to dialog with the user until the user gives the correct credentials or chooses cancel. In Firebug I can see lots of potential locations - seems like index.html, function loadingCallback() would be the best location but I'm open to other suggestions. Importantly - on bailout what would be the best way to dispose of all of the WAB objects and leave the user in a sensible space? Thanks!
... View more
05-08-2015
04:58 PM
|
1
|
9
|
4972
|
Title | Kudos | Posted |
---|---|---|
1 | 05-09-2015 12:25 PM | |
2 | 05-19-2015 04:27 PM | |
1 | 04-06-2010 09:51 AM | |
1 | 05-22-2015 11:02 AM | |
1 | 05-08-2015 04:58 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|