Adding new records to a standalone table contained within a local geodatabase?

1097
5
Jump to solution
05-31-2017 07:12 PM
_____
by
New Member
0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

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();

View solution in original post

5 Replies
LucasDanzinger
Esri Frequent Contributor

can you just use the createFeature method? FeatureTable QML Type | ArcGIS for Developers 

_____
by
New Member

//

0 Kudos
LucasDanzinger
Esri Frequent Contributor

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();
_____
by
New Member

//

0 Kudos
LucasDanzinger
Esri Frequent Contributor
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.

0 Kudos