<?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>text logic</title><link>https://community.appian.com/discussions/f/new-to-appian/29769/text-logic</link><description>Hi Team, 
 
 users: &amp;quot;username1; {username1; username2}&amp;quot; =&amp;gt;type text 
 
 how to get the output as 2 items 
 username1 
 {username1; username2}</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: text logic</title><link>https://community.appian.com/thread/118114?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 17:53:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7d377a50-39da-44de-823c-0b8261caea2f</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;joinArray(&lt;br /&gt;&amp;nbsp; ri!userList,&lt;br /&gt;&amp;nbsp; &amp;quot;,&amp;quot;&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118113?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 17:46:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:946181ba-e27e-4a4c-9e8e-a4664767970f</guid><dc:creator>Purvaja</dc:creator><description>&lt;p&gt;Here, we are trying to find the&amp;nbsp;index&amp;nbsp;of &amp;quot;;&amp;quot; and replace with &amp;quot;,&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118112?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 17:43:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:45de8533-9f91-4bb3-b42f-b43facbd94fc</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This rule is confusing together the separate elements of &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;array data&lt;/em&gt;&lt;/span&gt; and &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;flat text data&lt;/strong&gt;&lt;/span&gt; in several different places and several different ways - until you understand the difference and code to this, the output you see will consistently be unexpected and confusing.&amp;nbsp; I&amp;#39;m not even clear what you&amp;#39;re trying to do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118111?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 17:34:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:17b82c2d-22cb-4949-b1a1-1ab12649bead</guid><dc:creator>Purvaja</dc:creator><description>&lt;p&gt;and also, can you please help me to debug this logic. Instead of replacing &amp;quot;;&amp;quot; with &amp;quot;,&amp;quot; it is removing the text&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1692898367183v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118110?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 17:32:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:11938815-8077-4013-a74e-edd03690a948</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I would recommend against storing an array as a flat string like this.&amp;nbsp; If you really need to, then I&amp;#39;d suggest you create a JSON string via a!toJson(), since the resulting JSON string will be able to be parsed back into an array later simply by using a!fromJson().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118109?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 17:28:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7c914408-9fee-4aaa-81e8-2d5da1007145</guid><dc:creator>Purvaja</dc:creator><description>&lt;p&gt;but when I write to DB, it is writing with &amp;quot;;&amp;quot; but I want to write it with &amp;quot;,&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118108?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 17:23:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7dda7e8c-1974-42f0-9514-62ab7965e982</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Well the thing there is - &lt;em&gt;a!pickerFieldUsers()&lt;/em&gt; will store an &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;&lt;em&gt;array of users&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt; - there should be no need to ever manually parse it via splitting a semicolon-delineated flat string.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118107?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 17:13:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:352610a0-2e41-4061-ac3d-a4f6934039f8</guid><dc:creator>Purvaja</dc:creator><description>&lt;p&gt;To be very clear,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have a local variable list-&amp;gt; which stores the values of the&amp;nbsp;pickerFieldUsers, it can be single user or multiple user values.&lt;/p&gt;
&lt;p&gt;These values are passed to rule to get the desired output like this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;{&amp;quot;txt1&amp;quot;,&amp;quot;txt2&amp;quot;,&amp;quot;text3&amp;quot;}&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118105?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 17:09:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:46145398-0920-4355-abe4-63d0aff4e99b</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="74863" url="~/discussions/f/new-to-appian/29769/text-logic/118104#118104"]rule inputs that passes the current user list,[/quote]
&lt;p&gt;Can you provide some more detail on this?&amp;nbsp; What format(s) are the rule input(s)?&amp;nbsp; In what way is it/they assigned the &amp;quot;current user list&amp;quot;?&amp;nbsp; What are you trying to achieve overall?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118104?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 17:06:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:899c0d72-8155-4da4-95f0-d899158d4b7c</guid><dc:creator>Purvaja</dc:creator><description>&lt;p&gt;Yes, &lt;a href="/members/mikes0011"&gt;Mike Schmitt&lt;/a&gt;and &lt;a href="/members/mathieud0001"&gt;Mathieu Drouin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have rule inputs that passes the current user list,&lt;/p&gt;
&lt;p&gt;eg: username1 or {username1; username2} or combination username1; {username1; username2}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ideally, is there a way to append a string with &amp;quot;,&amp;quot;&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s say, I have a string of type text string, now if I want to {&amp;quot;txt1&amp;quot;,&amp;quot;txt2&amp;quot;,&amp;quot;text3&amp;quot;}. How to do that?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1692896670897v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118103?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 16:57:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0aa88c1f-515d-48fc-a373-5d089e2b9e83</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="74863" url="~/discussions/f/new-to-appian/29769/text-logic/118100#118100"]can you suggest any alternative approach?[/quote]
&lt;p&gt;Is this literal string the only thing you will ever need to handle?&amp;nbsp; Or are there potential variations?&amp;nbsp; This is why I was asking what the source for this string is - if we don&amp;#39;t know what cases you&amp;#39;ll need to handle, it&amp;#39;s nearly impossible to give a meaningful solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118102?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 16:55:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1c7a2510-d888-4176-b3c0-8d1a1996e29d</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;split function is not diving desired result&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;That&amp;#39;s what I said :)&lt;/p&gt;
&lt;p&gt;Problem is you have the same delimiter in both places. That&amp;#39;s why Mike was asking where this string was coming from because maybe there is a better way to do this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118100?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 16:53:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3dd42585-93b8-4621-800e-06d15346a605</guid><dc:creator>Purvaja</dc:creator><description>&lt;p&gt;&lt;a href="/members/mikes0011"&gt;Mike Schmitt&lt;/a&gt; and &lt;a href="/members/mathieud0001"&gt;Mathieu Drouin&lt;/a&gt; can you suggest any alternative approach?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118098?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 16:47:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c50f9711-5a26-42e6-a2e9-d4779531ceca</guid><dc:creator>Purvaja</dc:creator><description>&lt;p&gt;&lt;img height="267" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/62/pastedimage1692895527167v1.png" width="700" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;split function is not diving desired result&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118097?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 16:45:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6c3d451b-1b39-46a5-b6cb-6aeb4c54fbef</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Yes you can use the split function but not sure if that will help you do what you want to do.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/fnc_text_split.html"&gt;docs.appian.com/.../fnc_text_split.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118096?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 16:42:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8eebd90f-d880-4c83-bcfe-b85427c4e4e1</guid><dc:creator>Purvaja</dc:creator><description>&lt;p&gt;Is there a way to split the words using functions in Appain?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118095?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 16:40:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:83140a05-6a38-424c-baf4-b0e451ebcabe</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="74863" url="~/discussions/f/new-to-appian/29769/text-logic/118093#118093"]this text&amp;nbsp;&lt;span&gt;&lt;/span&gt;[/quote]
&lt;p&gt;Where is &amp;quot;this text&amp;quot; coming from in the first place?&amp;nbsp; It looks like you&amp;#39;re handling an Appian array which, when rendered for display, is given with a &amp;quot;;&amp;quot; separator - but to clarify against a common misunderstanding, arrays do NOT actually contain a &amp;quot;;&amp;quot;, it&amp;#39;s just there for display reasons.&amp;nbsp; However if you&amp;#39;re trying to parse an already-flattened string, then it&amp;#39;ll take a bit more work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118094?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 16:39:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0b593d13-1fc5-4dd8-bea7-bdaaecdbff0f</guid><dc:creator>Purvaja</dc:creator><description>&lt;p&gt;userList = &amp;quot;&lt;span&gt;username1; {username1; username2}&lt;/span&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;finalList(Output):&lt;/p&gt;
&lt;p&gt;username1&lt;/p&gt;
&lt;p&gt;{username1; username2}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118093?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 16:38:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5fa2881d-c435-4f4e-9e88-24af89d90f55</guid><dc:creator>Purvaja</dc:creator><description>&lt;p&gt;From this text&amp;nbsp;&lt;span&gt;&amp;quot;username1; {username1; username2}&amp;quot;, how can we split based on &amp;quot;;&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: text logic</title><link>https://community.appian.com/thread/118092?ContentTypeID=1</link><pubDate>Thu, 24 Aug 2023 16:36:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:577afdd0-57c8-4967-9c05-45869cb63c15</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Please clarify what you mean by &amp;quot;get the output&amp;quot; - what is this referring to? What are you trying to do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>