<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Set a dropdown field with &amp;quot;Computed as&amp;quot; in Codebeamer</title>
    <link>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/970344#M344</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The syntax is&amp;nbsp;&lt;SPAN&gt;&amp;lt;propertyNameofTheChoiceField&amp;gt;_$option[&amp;lt;optionID&amp;gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So for example if you want to calculate that the field choiceList[1] should have the 2nd option selected by computation, this would be the syntax:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;choiceList[1]_$option[2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is also described here in the documentation (just not indexed well in the table of contents): &lt;STRONG&gt;&lt;A href="https://codebeamer.com/cb/wiki/25722#section-Context+Variables" target="_blank"&gt;https://codebeamer.com/cb/wiki/25722#section-Context+Variables&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nico&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2024 09:16:42 GMT</pubDate>
    <dc:creator>Nico_M</dc:creator>
    <dc:date>2024-09-09T09:16:42Z</dc:date>
    <item>
      <title>Set a dropdown field with "Computed as"</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/970170#M342</link>
      <description>&lt;P&gt;Does anyone know the correct syntax to set a dropdown field using the "Computed as" logic? For example if I want to automatically set a dropdown to option id 1, how would I do that? I have tried several things, such as choiceField[2][1], choiceField[2][0]_option[1], etc, from the Codebeamer documentation but nothing seems to work.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 19:36:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/970170#M342</guid>
      <dc:creator>CM_9399659</dc:creator>
      <dc:date>2024-09-06T19:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set a dropdown field with "Computed as"</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/970344#M344</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The syntax is&amp;nbsp;&lt;SPAN&gt;&amp;lt;propertyNameofTheChoiceField&amp;gt;_$option[&amp;lt;optionID&amp;gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So for example if you want to calculate that the field choiceList[1] should have the 2nd option selected by computation, this would be the syntax:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;choiceList[1]_$option[2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is also described here in the documentation (just not indexed well in the table of contents): &lt;STRONG&gt;&lt;A href="https://codebeamer.com/cb/wiki/25722#section-Context+Variables" target="_blank"&gt;https://codebeamer.com/cb/wiki/25722#section-Context+Variables&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nico&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 09:16:42 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/970344#M344</guid>
      <dc:creator>Nico_M</dc:creator>
      <dc:date>2024-09-09T09:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set a dropdown field with "Computed as"</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/970392#M349</link>
      <description>&lt;P&gt;Hey Nico,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the syntax you have mentioned from the documentation. This does not allow me to save the changes to the field. I get an error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Compiling "choiceList[4]_$option[1]" to compute "Validated Cycle/Vendor (AMISC1-6)" failed: "Cannot convert&amp;nbsp;of type class com.intland.codebeamer.persistence.dto.ReadOnlyChoiceOptionDto to interface java.util.List" Please save the tracker configuration before you use newly added fields in expressions.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CM_9399659_0-1725887895020.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/110194i766024995FD0129E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CM_9399659_0-1725887895020.png" alt="CM_9399659_0-1725887895020.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any idea why this might be?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 13:22:57 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/970392#M349</guid>
      <dc:creator>CM_9399659</dc:creator>
      <dc:date>2024-09-09T13:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set a dropdown field with "Computed as"</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/970394#M350</link>
      <description>&lt;P&gt;Dear Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry my bad, forgot one crucial thing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;As every choiceField is also a collection (even if its single-choice), you need to put a List() around your computed option, so in your example:&lt;/LI&gt;&lt;LI&gt;List(&lt;STRONG&gt;choiceList[4]_$option[1])&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Let me know if that does the trick &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nico&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 13:40:24 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/970394#M350</guid>
      <dc:creator>Nico_M</dc:creator>
      <dc:date>2024-09-09T13:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set a dropdown field with "Computed as"</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/970485#M351</link>
      <description>&lt;P&gt;Hey Nico,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 20:22:28 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/970485#M351</guid>
      <dc:creator>CM_11253122</dc:creator>
      <dc:date>2024-09-09T20:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set a dropdown field with "Computed as"</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/970579#M352</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background-color:rgba(0,0,0,0.1);color:rgb(46,46,46);font-size:13px;"&gt;&lt;STRONG&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/630644"&gt;@CM_9399659&lt;/a&gt;&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I wanted to see if you got the help you needed.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.&lt;BR /&gt;Please note that industry experts also review the replies and may eventually accept one of them as solution on your behalf.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Of course, if you have more to share on your issue, please pursue the conversation.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 09:42:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/970579#M352</guid>
      <dc:creator>Catalina</dc:creator>
      <dc:date>2024-09-10T09:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set a dropdown field with "Computed as"</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/970961#M356</link>
      <description>&lt;P&gt;Hey Catalina,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see the "Reply as Accepted Solution" button on my screen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CM_11253122_0-1726076708797.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/110341i6D6F0070B40233F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CM_11253122_0-1726076708797.png" alt="CM_11253122_0-1726076708797.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 17:45:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/970961#M356</guid>
      <dc:creator>CM_11253122</dc:creator>
      <dc:date>2024-09-11T17:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set a dropdown field with "Computed as"</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/971050#M359</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="color:var(--ck-color-mention-text);"&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/842732"&gt;@CM_11253122&lt;/a&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only the author of the topic, in our case &lt;SPAN style="color:var(--ck-color-mention-text);"&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/630644"&gt;@CM_9399659&lt;/a&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;, can mark a reply as the Accepted Solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 07:33:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/Set-a-dropdown-field-with-quot-Computed-as-quot/m-p/971050#M359</guid>
      <dc:creator>Catalina</dc:creator>
      <dc:date>2024-09-12T07:33:02Z</dc:date>
    </item>
  </channel>
</rss>

