Hi,
I have rest service type Table without geometry. It is not feature class is only table.How can I create new row and add in Table ,are there any wrong code below?.I can create in rest services but in qml not Here is the qml code, console output and rest service part below:
QML Code :
GeodatabaseFeatureServiceTable {
id: featureServiceTableTest url: "http://................../FeatureServer/18"
}
function createFeature()
{
var feature = ArcGISRuntime.createObject("Feature");
feature.setAttributeValue("ID",guid());
feature.setAttributeValue("AD","TEST");
featureServiceTableTest.addFeature(feature);
featureServiceTableTest.applyFeatureEdits();
}
Console Output:
"Table has read only privileges"
Rest Part:
Thanks.
Solved! Go to Solution.
Hi,
We are solved the problem.Problem was about table initializing in onStatusChanged like below:
onStatusChanged: {
if (status === Enums.MapStatusReady) {
featureServiceTableTest.initialize();
}
Thanks
Taner,
Based on your screenshots, it looks like the service supports it, but the API does not like it for some reason. I recommend you contact Esri support/your Esri distributor to log a bug. This looks like it is an issue on the Qt side.
Thanks,
Luke
Hi,
We are solved the problem.Problem was about table initializing in onStatusChanged like below:
onStatusChanged: {
if (status === Enums.MapStatusReady) {
featureServiceTableTest.initialize();
}
Thanks