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))");
});