<?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>Selection of a text based on the passed value</title><link>https://community.appian.com/discussions/f/user-interface/22577/selection-of-a-text-based-on-the-passed-value</link><description>Hi Appian experts, 
 Here, I am trying to get the cText based on the passed typeId. 
 How I can achieve this. 
 a!localVariables( local!selectedtype: &amp;quot;IM&amp;quot;, local!myDictionary: { { cText: &amp;quot;Internal Memo&amp;quot;, typeId: &amp;quot;IM&amp;quot; }, { cText: &amp;quot;External Memo&amp;quot;, typeId</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Selection of a text based on the passed value</title><link>https://community.appian.com/thread/88253?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 21:00:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bb8e3025-2937-4092-8ee9-b26d4e65af2e</guid><dc:creator>Hari Kishore Reddy</dc:creator><description>&lt;p&gt;Perfect solution. Great. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Selection of a text based on the passed value</title><link>https://community.appian.com/thread/88250?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 19:27:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a621b09d-4801-48a5-a338-d74b7d7d8a53</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Give the displayvalue() function a try.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!selectedtype: &amp;quot;IM&amp;quot;,
  local!myDictionary: {
    { cText: &amp;quot;Internal Memo&amp;quot;, typeId: &amp;quot;IM&amp;quot; },
    { cText: &amp;quot;External Memo&amp;quot;, typeId: &amp;quot;EM&amp;quot; },
    { cText: &amp;quot;Correspondence&amp;quot;, typeId: &amp;quot;CP&amp;quot; }
  },
  displayvalue(
    local!selectedtype,
    local!myDictionary.typeId,
    local!myDictionary.cText,
    null
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>