I populate a combobox with CodedValueDomain.GetName.
I get varied results with partially-populated coded value descriptions.
<SPAN class="keyword token">else</SPAN> <SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN>DMN <SPAN class="keyword token">is</SPAN> CodedValueDomain<SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">{</SPAN>
CodedValueDomain CodedValueDMN <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">(</SPAN>CodedValueDomain<SPAN class="punctuation token">)</SPAN>DMN<SPAN class="punctuation token">;</SPAN>
FieldType fieldType <SPAN class="operator token">=</SPAN> CodedValueDMN<SPAN class="punctuation token">.</SPAN><SPAN class="token function">GetFieldType</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
SortedList<SPAN class="operator token"><</SPAN><SPAN class="keyword token">object</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="keyword token">string</SPAN><SPAN class="operator token">></SPAN> codedValuePairs <SPAN class="operator token">=</SPAN> CodedValueDMN<SPAN class="punctuation token">.</SPAN><SPAN class="token function">GetCodedValuePairs</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
IList<SPAN class="operator token"><</SPAN><SPAN class="keyword token">string</SPAN><SPAN class="operator token">></SPAN> codedlist <SPAN class="operator token">=</SPAN> codedValuePairs<SPAN class="punctuation token">.</SPAN>Values<SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">foreach</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">string</SPAN> s <SPAN class="keyword token">in</SPAN> codedlist<SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">{</SPAN>
<SPAN class="token function">Invoke</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">MethodInvoker</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">async</SPAN> <SPAN class="keyword token">delegate</SPAN> <SPAN class="punctuation token">{</SPAN> MnlSrchPlldwn<SPAN class="punctuation token">.</SPAN>Items<SPAN class="punctuation token">.</SPAN><SPAN class="token function">Add</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">await</SPAN> QueuedTask<SPAN class="punctuation token">.</SPAN><SPAN class="token function">Run</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">=</SPAN><SPAN class="operator token">></SPAN> CodedValueDMN<SPAN class="punctuation token">.</SPAN><SPAN class="token function">GetName</SPAN><SPAN class="punctuation token">(</SPAN>s<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN> <SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">)</SPAN><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>attached:
results,
actual coded value descriptions
There must be a way to get the complete list of coded value descriptions into my combobox... Help?