<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Convert [group: xxx] to a text value with togroup</title><link>https://community.appian.com/discussions/f/general/14766/convert-group-xxx-to-a-text-value-with-togroup</link><description>I need help. I have a dropdownField where I select three options but they come to me like [group: 67] [group: 68] [group: 69] but these values ​​(office 2300, office 2450, office 2800) I have them in a constant. I&amp;#39;m trying the example below but I can</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Convert [group: xxx] to a text value with togroup</title><link>https://community.appian.com/thread/66160?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 10:12:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cedfda06-b8c3-4643-b579-5ab78aca8306</guid><dc:creator>Alastr</dc:creator><description>&lt;p&gt;thanks for your opinion!!! &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert [group: xxx] to a text value with togroup</title><link>https://community.appian.com/thread/66158?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2019 09:54:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9720d748-21d6-4e6a-8132-f61908b5c268</guid><dc:creator>Vinay Kumar Rai</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I checked both the performance (foreach and apply) for the same logic,&lt;/p&gt;
&lt;p&gt;apply is much faster than foreach,&lt;/p&gt;
&lt;p&gt;do you think apply function will deprecate after sometime?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Vinay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert [group: xxx] to a text value with togroup</title><link>https://community.appian.com/thread/66133?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 14:03:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cfa1d03d-9f08-4b04-85ea-79b900ef2f2e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Just FYI, unless you&amp;#39;re using a very old version of Appian (ie pre ~17.2), you should definitely use a!forEach() and&amp;nbsp;&lt;em&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;/em&gt; apply(), both for code clarity as well as to ensure you&amp;#39;re more future-proof.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!dropdownField(
  label: &amp;quot;OFFICE&amp;quot;,
  placeholderLabel: &amp;quot;Selection&amp;quot;,
    choicelabels: {
      a!forEach(
        cons!CP_typeOffice,
        group(fv!item, &amp;quot;groupName&amp;quot;) /* you can also wrap fv!item in tointeger() if you&amp;#39;re worried but it shouldn&amp;#39;t be needed */
      ) 
    },
    choicevalues: {
      tointeger(cons!CP_typeOffice)
    },
  value: local!filter.type,
  saveInto: local!filter.type
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert [group: xxx] to a text value with togroup</title><link>https://community.appian.com/thread/66122?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 10:01:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a8a163c4-362a-44a5-9f67-ec1a210462f2</guid><dc:creator>Alastr</dc:creator><description>&lt;div class="tw-swapa"&gt;
&lt;div class="DHcWmd"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="oSioSc"&gt;
&lt;div id="tw-target"&gt;
&lt;div class="gsrt tw-ta-container tw-nfl" id="tw-target-text-container"&gt;
&lt;pre class="tw-data-text tw-ta tw-text-large" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;It worked! &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Thanks so much for your answer!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert [group: xxx] to a text value with togroup</title><link>https://community.appian.com/thread/66121?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 09:06:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e1a8975d-d1b5-4198-9a4c-83a367b7ca00</guid><dc:creator>vinayr214137</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need Group Name by GroupId, try below code,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!dropdownField(
  label: &amp;quot;OFFICE&amp;quot;,
  placeholderLabel: &amp;quot;Selection&amp;quot;,
    choicelabels: {
        apply(
          group(_,&amp;quot;groupName&amp;quot;),
          tointeger(cons!CP_typeOffice)
        )
        
    },
    choicevalues: {
     tointeger(cons!CP_typeOffice)
    },
 value: local!filter.type,
 saveInto: local!filter.type
),&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Vinay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert [group: xxx] to a text value with togroup</title><link>https://community.appian.com/thread/66120?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 08:57:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d03ddc46-0324-484d-868e-4c9310586935</guid><dc:creator>Krishna Chaitanya Mallavarapu</dc:creator><description>&lt;p&gt;what value you need to save in&amp;nbsp;&lt;span&gt;local!filter.type ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert [group: xxx] to a text value with togroup</title><link>https://community.appian.com/thread/66119?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 08:56:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5c2ffa82-a58f-4d3c-ae42-fa2ccce5f6df</guid><dc:creator>Alastr</dc:creator><description>&lt;pre class="tw-data-text tw-ta tw-text-medium" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;Yes and each group has a user.&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert [group: xxx] to a text value with togroup</title><link>https://community.appian.com/thread/66118?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2019 08:49:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fbe6935b-717a-4848-8e41-3b133be4e271</guid><dc:creator>Krishna Chaitanya Mallavarapu</dc:creator><description>&lt;p&gt;&lt;span&gt;office 2300, office 2450, office 2800&amp;nbsp; these are group names&amp;nbsp; ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>