Is your feature table loaded? Other feature tables used in layers probably implicitly get loaded by the layer being in the map, but the table would need to be explicitly loaded since nothing else would load it.
ft.loadStatusChanged.connect(function() {
if (ft.loadStatus === Enums.LoadStatusLoaded) {
console.log("loaded");
console.log(ft.canAdd())
console.log(ft.createFeature())
}
});
ft.load();
can you just use the createFeature method? FeatureTable QML Type | ArcGIS for Developers
//
Is your feature table loaded? Other feature tables used in layers probably implicitly get loaded by the layer being in the map, but the table would need to be explicitly loaded since nothing else would load it.
ft.loadStatusChanged.connect(function() {
if (ft.loadStatus === Enums.LoadStatusLoaded) {
console.log("loaded");
console.log(ft.canAdd())
console.log(ft.createFeature())
}
});
ft.load();
//
Is there any reason not to do this? Could it break in the future?
You should be able to continue using it. If it stops working, it would be a regression and not by design.