AnsweredAssumed Answered

How to create new row and add in table in Qml

Question asked by tanerkoka on Nov 21, 2015
Latest reply on Dec 2, 2015 by tanerkoka

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.

Outcomes