Offline Adding feature in GeodatabaseFeatureTable

4098
5
Jump to solution
03-28-2016 07:09 AM
tanerkoka1
Occasional Contributor

Hi,

I want to create new line feature in GeodatabaseFeatureTable after creating local geodatabase , but when I set type attribute value in feature, feature does not create with that type, creates with default type (ex: type value 1).How can I solve this problem.

Thanks

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

Are you saying that you have default values set on the service, but no matter what you set, it always sets it to the default?

If so, this is a bug in 10.2.6, and will be fixed in a  patch that we are releasing very soon.

Thanks,

Luke

View solution in original post

0 Kudos
5 Replies
LucasDanzinger
Esri Frequent Contributor

Can you provide some code example?

0 Kudos
tanerkoka1
Occasional Contributor

  Here  is the sampe below , if is state is online false feature correct  created but when is state offline feature created only TIP =1 value always.

if(appWindow.isOnline==false)

{

var feature= ArcGISRuntime.createObject("Feature");

     feature.geometry = userPolyline;

     feature.setAttributeValue("ID",guid());

     feature.setAttributeValue("AD",textYolOrtaHatAdi.text);

     feature.setAttributeValue("TIP",comboBoxYolOrtaHatTip.currentIndex);

localYolortaHatYonfeatureTable.addFeature(feature);

} else

{

var feature= ArcGISRuntime.createObject("Feature");

feature.geometry = userPolyline;

feature.setAttributeValue("ID",guid());

feature.setAttributeValue("AD",textYolOrtaHatAdi.text);

feature.setAttributeValue("TIP",comboBoxYolOrtaHatTip.currentIndex);

yolOrtaHatFeatureLayer.featureTable.addFeature(feature);

yolortaHatYonfeatureServiceTable.applyFeatureEdits();

    }

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Are you saying that you have default values set on the service, but no matter what you set, it always sets it to the default?

If so, this is a bug in 10.2.6, and will be fixed in a  patch that we are releasing very soon.

Thanks,

Luke

0 Kudos
tanerkoka1
Occasional Contributor

Are there any date when release fixed 10.2.6 ? , or if  realesed where can I find are there any link to download it ?

Thanks

0 Kudos
LucasDanzinger
Esri Frequent Contributor

It will be out in the next couple of weeks. Watch the blog and geonet for an announcement.

Thanks,

Luke

0 Kudos