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?<SPAN class="comment token">// signal handler for selecting features</SPAN>
onSelectFeaturesStatusChanged<SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN>selectFeaturesStatus <SPAN class="operator token">===</SPAN> Enums<SPAN class="punctuation token">.</SPAN>TaskStatusCompleted<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="operator token">!</SPAN>selectFeaturesResult<SPAN class="punctuation token">.</SPAN>iterator<SPAN class="punctuation token">.</SPAN>hasNext<SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">return</SPAN><SPAN class="punctuation token">;</SPAN>
selectedFeature <SPAN class="operator token">=</SPAN> selectFeaturesResult<SPAN class="punctuation token">.</SPAN>iterator<SPAN class="punctuation token">.</SPAN><SPAN class="token function">next</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
vardamageType <SPAN class="operator token">=</SPAN> selectedFeature<SPAN class="punctuation token">.</SPAN>attributes<SPAN class="punctuation token">.</SPAN><SPAN class="token function">attributeValue</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"typdamage"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
varhabitable <SPAN class="operator token">=</SPAN> selectedFeature<SPAN class="punctuation token">.</SPAN>attributes<SPAN class="punctuation token">.</SPAN><SPAN class="token function">attributeValue</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"habitable"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="comment token">// show the callout</SPAN>
callout<SPAN class="punctuation token">.</SPAN>x <SPAN class="operator token">=</SPAN> mousePointX<SPAN class="punctuation token">;</SPAN>
callout<SPAN class="punctuation token">.</SPAN>y <SPAN class="operator token">=</SPAN> mousePointY<SPAN class="punctuation token">;</SPAN>
callout<SPAN class="punctuation token">.</SPAN>visible <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">true</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="comment token">// set the combo box's default value</SPAN>
damageComboBox<SPAN class="punctuation token">.</SPAN>currentIndex <SPAN class="operator token">=</SPAN> featAttributes<SPAN class="punctuation token">.</SPAN><SPAN class="token function">indexOf</SPAN><SPAN class="punctuation token">(</SPAN>vardamageType<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
damageComboBox2<SPAN class="punctuation token">.</SPAN>currentIndex <SPAN class="operator token">=</SPAN> featAttributes<SPAN class="punctuation token">.</SPAN><SPAN class="token function">indexOf</SPAN><SPAN class="punctuation token">(</SPAN>varhabitable<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>