AnsweredAssumed Answered

Update Features

Question asked by jay.kapalczynski on May 7, 2019
Latest reply on Jun 18, 2019 by jay.kapalczynski

I am referencing the Update feature template in AppStudio.....


I am trying to add another Combobox AND Text field that will be populated with the appropriate values once the feature is selected.  If I add the variable below "varhabitable" The popup never occurs to allow me to click into the update popup.


If I comment this line

varhabitable = selectedFeature.attributes.attributeValue("habitable");

I can run the app but the combobox is not populated with the value of that record.

How do I build the update box with multiple Fields for update including text fields?


// signal handler for selecting features
onSelectFeaturesStatusChanged: {
   if (selectFeaturesStatus === Enums.TaskStatusCompleted) {
      if (!selectFeaturesResult.iterator.hasNext)

         selectedFeature =;
         vardamageType = selectedFeature.attributes.attributeValue("typdamage");
         varhabitable = selectedFeature.attributes.attributeValue("habitable");

         // show the callout
        callout.x = mousePointX;
        callout.y = mousePointY;
        callout.visible = true;

     // set the combo box's default value
       damageComboBox.currentIndex = featAttributes.indexOf(vardamageType);
       damageComboBox2.currentIndex = featAttributes.indexOf(varhabitable);