POST
|
Well, after that now I get an error after clicking the login dialog, it opens a popup that says "Invalid client_id error 400"
... View more
10-03-2018
03:01 PM
|
0
|
1
|
769
|
POST
|
I'm not sure what you're talking about, I just downloaded the app .zip from WAB, add the appID and hosted it on the server
... View more
10-03-2018
01:55 PM
|
0
|
3
|
769
|
POST
|
Yes it is a different domain/ip, but where do I configure this?
... View more
10-03-2018
01:32 PM
|
0
|
5
|
769
|
POST
|
Hello, we've decided to move our hosted apps that were on a Windows machine using NGINX server to a Ubuntu machine. So we followed the same steps as we did on Windows; installed NGINX, moved the app files to the www folder and that's it. But upon accessing the app through a browser many things aren't loaded like icons and such, and on the console I get the error "498" on some request to esri's server. According to google 498 means invalid token but I can't think why the generated token would be invalid in a Linux. The problem is that we don't have any infrastructure specialist, we always relied on simplicity of Windows and now we are stuck in this problem. Is there any extra steps/configuration that need to be done in a Linux environment to properly use Apps created by WAB? All we installed in this machine was the NGINX server, do we need do install any windows packages or anything else?
... View more
10-03-2018
12:51 PM
|
0
|
7
|
898
|
POST
|
Following my question : "For example I want it to hook a button in the Map's popup that will then call the widget if it's not open." How would you design a solution for this? Like how the edit widget adds a "edit" button in the popup.
... View more
08-13-2018
03:23 PM
|
0
|
1
|
472
|
POST
|
Is it possible to have a code/function that executes before a custom on-panel widget is opened? For example I want it to hook a button in the Map's popup that will then call the widget if it's not open. A off-panel widget or external configuration wouldn't be ideal, I need this to be inside the Widget's scope and keep it modular.
... View more
08-13-2018
01:09 PM
|
0
|
3
|
576
|
POST
|
This question has been answered many times before, and I know one solution is to simply change it so (Esri's)dojo is the last one to load. Problem is I'm working on a modular widget that has no access to the page's html to change the order, I must only load libraries via Dojo's AMD Loader. Folder structure : /Widget --/Widget.js --/Datatable.js This is the Widget.js file: define([
'./Datatable',
'https://code.jquery.com/jquery-3.3.1.min.js',
'https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.bundle.js',
], function(Datatable){ ... }
And Datatable.js (just another module I created for organization) : define([
'https://cdn.datatables.net/v/bs4/dt-1.10.18/r-2.2.2/datatables.min.js'
],function(){ ... } I have two major issues here; 1) The AMD Loader is asynchronous and doesn't resolve non-AMD modules dependencies, meaning that order should be important for these libraries. datatables.min.js requires bootstrap.bundle.js that requires jquery-3.3.1.min.js So, If I'm lucky the request will load in order depending on latency, not reliable at all. 2) Both Bootstrap and Datatable generic javascript files raise a "multipleDefine" error, probably due to them trying to define "jquery", I'm really not sure how to fix this. How can I resolve these 2 problems?
... View more
07-06-2018
01:23 PM
|
0
|
3
|
2066
|
POST
|
Hello and thanks for the reply. Your first example from the documentation is exactly like my second example. And your second example although I wasn't aware you could do that, still shares the same problem as your first example. The layer could be loaded between the if/else or the event binding/if. Yes I understand its very rare, call me perfectionist, but it's just not the correct flow of things. Mixing synchronous code with asynchronous code will never be the ideal solution. If you can't help me any further that's fine, but I believe the only way is to extend the FeatureLayer class, I just don't know how because I don't have the source.
... View more
05-03-2018
01:36 PM
|
0
|
1
|
3996
|
POST
|
Isn't the CodPen I linked sufficient? I just used setTimeout to wait untill the layer is loaded before binding the event. As I mentioned, our ArcgisServer is local and sometimes the layer will load before the onLoad event is bound (if it's a small layer, or lets say the user has several tabs open making javascript a bit slow) . Its just a design flaw in my point of view, its pure Murphy's Law. This error can happen, and in my case it did. Not trying to be rude, but I'm not sure what other proof I can provide, what I can't is post a video of my company's code
... View more
05-03-2018
10:56 AM
|
0
|
3
|
3996
|
POST
|
To me it feels more like a bug than a missing feature. Unfortunately all our codebase is already built upon 3.x, I can't change that now. In the example I use the setTimeout to force the layer to load, because in our company the arcgis server is local so they featureLayer object loads really fast, before binding the event as I stated in the question. Couldn't you help me implement this in 3.x? Not having the non-minified source makes it really difficult to reverse-engineer.
... View more
05-02-2018
02:44 PM
|
0
|
5
|
3996
|
POST
|
See this pen : FeatureLayer It didn't solve it I'm afraid. I'm not confident I could do it as the source is minified, but if this is a missing feature, it could be solved by overwriting the FeatureLayer constructor with a callback.
... View more
05-02-2018
11:55 AM
|
0
|
7
|
3996
|
POST
|
Yes I'm using the 3.X Are you positive this method works even if the featureLayer loaded before creating the promise?
... View more
05-02-2018
11:35 AM
|
0
|
0
|
3996
|
POST
|
So, I know the documented way to do it would be like this : const fl = new featureLayer(url);
fl.on('load', () => {
doSomething();
}) But there is a problem with the approach above, if the featureLayer has already loaded between its creation and the event binding, doSomething() will never trigger. This would be solved by simply having a callback parameter on the featureLayer constructor, which doesn't. So, for now I'm using the following solution : const fl = new featureLayer(url);
if(!fl.loaded){
fl.on('load', () => {
doSomething();
})
}else{
doSomething();
} But there's also a very nasty possible error with my temporary solution, it can happen that the featureLayer will load between the if/else check, and then doSomething() will never trigger. Is there an actual solution to this? Is this a bug? Am I missing something? Here's a pen showing the issue : FeatureLayer I'm using the setTimeout to force the layer to load, in our company the arcgis server is local so they load really fast, before binding the event as I stated above
... View more
04-27-2018
01:46 PM
|
0
|
11
|
6891
|
POST
|
Ah I think I figured it out, it got the default values from the FeatureLayer that got from the Map, that has to be it.
... View more
12-29-2017
09:56 AM
|
0
|
0
|
494
|
Online Status |
Offline
|
Date Last Visited |
08-02-2021
12:53 PM
|