POST
|
When using standard javascript and standard examples of AMD, my feature table loads just fine, but when using this inside typescript the rows just never load. It also never makes a call to retrieve the data. I also added an on error event as referenced in the code below and it never gets thrown. I also have many other controls that run just fine and I receive no javascript errors. What can I do diagnose the issue further? code setting up featureTable: this._myFeatureTable = new FeatureTable({ showFeatureCount: true, showColumnHeaderTooltips: true, showAttachments: true, syncSelection: true, // only allows selection from the table to the map zoomToSelection: false, //auto zooming can be kind of annoying when you are selecting from the map gridOptions: { allowSelectAll: true, allowTextSelection: true, }, featureLayer: featureLayer, //outFields: ["HydID,StreetName,OBJECTID"], outFields: ["*"], map: this._myMap, editable: false }, divID); if (onLoaded != null) { this._myFeatureTable.on("refresh", (e) => { onLoaded(); }); //need to do this or else the row may not actually this.get highlighted, this is because the table may not actually be loaded when we go to select yet } this._myFeatureTable.on("load", function(evt){ console.log("load event - ", evt); this.refresh(); }); this._myFeatureTable.on("error", function(evt){ console.log("error event - ", evt); }); this._myFeatureTable.startup(); code for instantiating typescript: requirejs.config({ waitSeconds: 0, baseUrl: "@(Url.Content("~/Scripts/app/"))", paths: { GIS: "./GIS" }, packages: [{ name: 'dojox', main: 'main' }, { name: 'dojo', main: 'main' }, { name: 'dijit', main: 'main' } ], deps: ['dojox/main', 'dojo/main', 'dijit/main'] }); require(["GIS/GIS"], function(GIS) { gisModule = new GIS("@(JsonConvert.SerializeObject(gisViewData))"); });
... View more
03-19-2019
03:07 PM
|
0
|
0
|
304
|
POST
|
I've been looking everwhere on how to use the identity manager in legacy mode. THANK YOU! instead of using "esriId", I needed to do "esri.id"
... View more
06-27-2017
10:37 AM
|
0
|
0
|
739
|
POST
|
We have an application that keeps tracks of physical assets, we also have some feature layers that contain features that represent many of these assets, but certainly not all. We already have a field on the feature layer that essentially just is the primary key in a SQL table. SO it's very easy for us to clock on a feature and go retirve the realted info from the SQL database. We can also very easily send a query that returns only assets matching a list of primary keys we send to the server. That works fine for a few or even dozens of assets. But my problem arises when I want to return a few hundred assets that match a list of primary keys. The reason being is that the ESRI queries are limited by the length of a URL (2,083 chars), which can very easily be overcome once you start looking for a few hundred assets whose primary key is 10 chars or so. I have overcome this issue in other parts of our program by create a GUID representing a list of numbers and passing the GUID around, but I obviously don't see a way of passing a GUID to ESRI's services. Have others run into this problem? -Phil
... View more
03-09-2016
10:33 AM
|
0
|
3
|
1567
|
POST
|
I was finally able to solve the issue. I was able to solve the issue by moving our site from the Trusted sites zone to the Intranet zone. The reason this works is because the Intranet zone by default will accept all cookies. Internet zone cookie settings are determined by the Privacy tab, Trusted sites zone by default prompts for all cookies, Restricted zone blocks all cookies. There is an option to override these settings by importing a P3P xml file into IE, but that seemed to be unsuccessful , so I think we will just have to live with having the site in the Intranet zone. This will obviously have to be done for each users machine. I already did for the Server machine, as the desktop you set up for us didn’t seem to be up and running. This might require that the settings for Trusted Sites have to also be set for the Intranet zone, but since it’s working for the server machine I assume that all the other desktop user machines are also using those settings for the Intranet zone.
... View more
04-16-2015
07:43 AM
|
1
|
0
|
603
|
POST
|
I've tried all of those setting without success. Allowing all or denying all and nothing works. I've done quite a bit of googling on this and I don't think it's simply a setting. I believe it is either a bug with ESRI, the DOJO api you use, or IE. The pop-up is not like the nomral cookie prompt. It is somethign different. Is this something that ESRI can investigate Kelly Hutchins? javascript showModalPopup Silverlight "This page has an unspecified potential security risk" http://community.norton.com/en/forums/windows-security-warning-cookies "Windows Security Warning" dialog box cannot be dismissed | Microsoft Connect
... View more
03-30-2015
10:54 AM
|
0
|
1
|
603
|
POST
|
Regardless of my cookie settings in IE, whenever I open a page via "window.showModalDialog" that uses a "tokenized" service I get the below pop-up: If I use "window.open" instead, the issue is not present. This prompt occurs for each feature layer that I use, so for my app I have 24 prompts (24 layers), which is just not acceptable. Is there some parameter I can pass during the instantiation of the layer that will prevent this? Below is some sample code that shows the issue:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title></title>
</head>
<body>
<button onclick="myFunction()">Copy Text</button>
</body>
<script>
function myFunction()
{
window.showModalDialog('http://developers.arcgis.com/javascript/samples/layers_label/', '0', 'resizable:1;dialogHeight:' + 600+ 'px;dialogWidth:' + 800+ 'px');
}
</script>
</html>
... View more
03-27-2015
09:21 AM
|
0
|
4
|
4270
|
POST
|
I have determined/stronly suspect that the issue is that the service is protected with a cookie. I get a pop-up only when using showModalDialog though, using window.open does not require the cookie for some reason.
... View more
03-27-2015
08:45 AM
|
0
|
0
|
296
|
POST
|
I currently have an issue where I am getting a pop-up message asking to download a cookie when I am using my app. I have posted this on Stack Overflow: javascript - Using showModalDialog (IE 9+) causes cookie prompt - Stack Overflow This issue only happens on my client's domain computers. Everything works just fine here. The pop-up occurs for each layer in my app, but does not seem to have any effect if I say "no" to downloading the cookie. I have also determined that the issue ONLY occurs when the page is being opened via "window.showModalDiaglog". If I go directly to the web page, I have no issues what so ever. I have turned on and also tried turning off all cookies and the issue still is present (also described in stack overflow question). I have also determined that the following examples below exhibit the same issue, where a pop-up is presented asking for the user to download a cookie. What do the following examples have in common that would require a cookie be downloaded. Label Layer | ArcGIS API for JavaScript Identity Manager with info persisted client side | ArcGIS API for JavaScript Any projection | ArcGIS API for JavaScript Mobile ArcGIS.com | ArcGIS API for JavaScript sites that DON'T show the issue on the client's machine Basic service area | ArcGIS API for JavaScript Directions | ArcGIS API for JavaScript Geolocation with a temporal renderer | ArcGIS API for JavaScript Class breaks renderer | ArcGIS API for JavaScript Explore Heat Maps | ArcGIS API for JavaScript Proportional symbols for lines | ArcGIS API for JavaScript Smart Mapping - Show Data by Color | ArcGIS API for JavaScript Use Heat Maps | ArcGIS API for JavaScript Query data without a map | ArcGIS API for JavaScript Manage results from multiple queries | ArcGIS API for JavaScript ---- UPDATE - EDIT ---- doing nothing more than executing the following code causes the issue: var fLayer = new esri.layers.FeatureLayer(featureLayerURL); Is there some way to turn off the need for the service to request a cookie? Message was edited by: Philip Knight
... View more
03-26-2015
12:20 PM
|
0
|
1
|
3013
|
POST
|
Once I load a featureLayer to a FeatureTable I seem to be unable to load a new one in. How can I do this?
... View more
02-27-2015
01:31 PM
|
0
|
0
|
3652
|
POST
|
Thank you for the helpful information. I found the cause: I had to enable "Active Scripting" in Tool -> Internet Options -> Security Tab -> Custom Level I also had to run-as-administrator IE to be able to change those settings. I'm surprised that there wasn't an issue when running version 3.1 of ESRI's API.
... View more
02-27-2015
07:58 AM
|
0
|
0
|
1487
|
POST
|
No. The issue only happens in ie ever and only on the clients machine. Yes the error still occurs.
... View more
02-26-2015
03:18 PM
|
0
|
2
|
1135
|
POST
|
That is correct. Do you have any suggestions on what settings may cause this. I don't see any add-on's for the browser.
... View more
02-26-2015
12:51 PM
|
0
|
1
|
1135
|
POST
|
Yes, that also causes the exact same error I described. I have tried numerous other examples and they all fail in the same way, unless the API used is 3.1. All 3.12 examples I've tried have the same error.
... View more
02-26-2015
11:48 AM
|
0
|
3
|
1135
|
POST
|
Using nothing but a simple sample from ESRI (StreamLayer using ArcGIS API for JavaScript and ArcGIS GeoEvent Processor for Server ) I get an error saying "require is undefined". I also get 'dojo is undefined' if I use the classic method (TOC ) but that example is not by the developers of ESRI. This happens on a client machine, but works just fine on my machine as well. I have tried compatibility mode on and off with no success: I keep getting the exact same error. If I use code that that use the 3.1 API it seems to work just fine. But there seems to e something about the new version of dojo in 3.12 that is causing errors for me.
... View more
02-26-2015
08:29 AM
|
0
|
11
|
6479
|
Title | Kudos | Posted |
---|---|---|
1 | 04-16-2015 07:43 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|