<?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>How to convert 3;4;5 into {3,4,5}</title><link>https://community.appian.com/discussions/f/general/29857/how-to-convert-3-4-5-into-3-4-5</link><description>I am saving multiple dropdown values like 3;4;5 and if I am passing the same value into an expression rule and doing for each it isn&amp;#39;t taking individual value instead consider as 345. 
 How to convert 3;4;5 into {3,4,5}</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to convert 3;4;5 into {3,4,5}</title><link>https://community.appian.com/thread/118524?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 13:53:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f87424a9-23d0-4780-8893-bc03f0958583</guid><dc:creator>hemap0003</dc:creator><description>&lt;p&gt;Thanks for your response&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to convert 3;4;5 into {3,4,5}</title><link>https://community.appian.com/thread/118521?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 13:43:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0f9d49ff-cb20-457b-80df-977327895f6e</guid><dc:creator>hemap0003</dc:creator><description>&lt;p&gt;I have again used split function on local variable and able to get the&amp;nbsp;desired output.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to convert 3;4;5 into {3,4,5}</title><link>https://community.appian.com/thread/118510?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 10:35:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a06dd13b-dee3-445a-a0d9-38b1e2cfd71a</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;That is not solving the issue, but trying to work around it, after creating it in the first place.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to convert 3;4;5 into {3,4,5}</title><link>https://community.appian.com/thread/118509?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 09:58:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6adc9877-3d7b-4cb4-8cd4-4cbc42a8b12a</guid><dc:creator>SOMU LAKSHMI RAJA</dc:creator><description>&lt;p&gt;HI &lt;a href="/members/hemap0003"&gt;hemap0003&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Please find the code below. By passing the selected dropdown value into an expression rule and iterating through it using a foreach loop, it will become the &amp;#39;items&amp;#39; for further processing.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="d"&gt;a!localVariables(
/*The below localVariable will hold selected drop down values*/
  local!dropDownValues: tostring({ 3, 4, 5 }),
  if(
    a!isNullOrEmpty(local!dropDownValues),
    &amp;quot;&amp;quot;,
    split(local!dropDownValues, &amp;quot;; &amp;quot;) /*By using split function the data will be displayed as a list*/
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to convert 3;4;5 into {3,4,5}</title><link>https://community.appian.com/thread/118508?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 09:53:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:60e47c7d-5ea9-4223-a72d-54356b2da89b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I am not sure what you are doing here.&lt;/p&gt;
&lt;p&gt;But in general, storing a list of integers into a single string turns {1, 2, 3} into &amp;quot;1;2;3&amp;quot;. This is what you observe. To avoid this, make sure to keep your data types a list of integer consistently.&lt;/p&gt;
&lt;p&gt;And no, working around that issue by using split(), works, but is a super ugly solution and will get you into trouble on the long run!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to convert 3;4;5 into {3,4,5}</title><link>https://community.appian.com/thread/118505?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 09:49:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a5d0832-5172-4546-96ec-e7406ee3b4a6</guid><dc:creator>hemap0003</dc:creator><description>&lt;p&gt;I am passing this value into local variable and then from a!forEach(items :local!data,expression: rule!getData(employeeid: fv!item).&lt;br /&gt;&lt;br /&gt;local!data : ri!employeeData[Recordtype!OD_EMP_RECORDS.fields.employeeid].&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to convert 3;4;5 into {3,4,5}</title><link>https://community.appian.com/thread/118503?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 09:44:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ef9875bd-15ea-4d31-84b6-4fd8272d8685</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The dropdown returns a list of values. What data type is the rule input of the expression? It should be a list of integer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>