How to create new row and add in table in Qml

3638
2
Jump to solution
11-21-2015 11:30 AM
tanerkoka1
Occasional Contributor

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:

rest.png

Thanks.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
tanerkoka1
Occasional Contributor

Hi,

We are solved the problem.Problem  was about table initializing in onStatusChanged like below:

onStatusChanged: {

            if (status === Enums.MapStatusReady) {

                featureServiceTableTest.initialize();

            }

Thanks

View solution in original post

0 Kudos
2 Replies
LucasDanzinger
Esri Frequent Contributor

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

tanerkoka1
Occasional Contributor

Hi,

We are solved the problem.Problem  was about table initializing in onStatusChanged like below:

onStatusChanged: {

            if (status === Enums.MapStatusReady) {

                featureServiceTableTest.initialize();

            }

Thanks

View solution in original post

0 Kudos