<?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 Text Array to datasubset</title><link>https://community.appian.com/discussions/f/general/13830/convert-text-array-to-datasubset</link><description>I&amp;#39;m trying to covert an array of text to datasubset to display in a paging grid, but when applying the todatasubset function to this array an error message pops up saying &amp;quot;The given data type is not a complex type&amp;quot; even though it says that the arrayToPage</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Convert Text Array to datasubset</title><link>https://community.appian.com/thread/62864?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 08:33:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a72eeaf9-43fc-4ee0-8551-c10c8a41ff90</guid><dc:creator>aaronp0001</dc:creator><description>Thanks for your reply Abhay, the code for local!activeUnassignedPeople doesn&amp;#39;t make much sense without various sub-rules, but I have fixed it now. Casting the text to an array of CDTs did the trick.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Text Array to datasubset</title><link>https://community.appian.com/thread/62863?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 08:14:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:362661e3-09cb-45e3-9e7a-fcb66e5171ce</guid><dc:creator>Abhay Giri</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
Can you provide whole code because array &amp;quot;local!activeUnassignedPeople&amp;quot; is not cleared what data it have? &lt;br /&gt;
&lt;br /&gt;
regards&lt;br /&gt;
Abhay&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Text Array to datasubset</title><link>https://community.appian.com/thread/62796?ContentTypeID=1</link><pubDate>Mon, 19 Nov 2018 10:12:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b3679d2-8af3-4e0c-a1a1-a9b57397df53</guid><dc:creator>aaronp0001</dc:creator><description>&lt;p&gt;Thanks Hema,&lt;br /&gt; &lt;br /&gt; My code looks very similar: &lt;br /&gt; with(&lt;br /&gt; local!datasubset: todatasubset(local!activeUnassignedPeople,local!unassignedPagingInfo),&lt;br /&gt; a!gridField(&lt;br /&gt; showWhen: local!showUnassignedUsers,&lt;br /&gt; value: local!unassignedPagingInfo,&lt;br /&gt; saveInto: local!unassignedPagingInfo,&lt;br /&gt; totalCount: local!datasubset.totalCount,&lt;br /&gt; columns: a!gridTextColumn(&lt;br /&gt; label: &amp;quot;&amp;quot;,&lt;br /&gt; field: &amp;quot;userId&amp;quot;,&lt;br /&gt; data: a!forEach(&lt;br /&gt; items: local!datasubset.data, &lt;br /&gt; expression: rule!LE2E_firstnameLastnameConcat(fv!item)&lt;br /&gt; ),&lt;br /&gt; links: a!forEach(&lt;br /&gt; items: local!datasubset.data,&lt;br /&gt; expression: a!recordLink(&lt;br /&gt; recordType: cons!LE2E_PERSON_RECORD_TYPE,&lt;br /&gt; identifier: fv!item&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; &lt;br /&gt; where local!activeUnassignedPeople is of type List of Text String&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The exact issue is that an error message pops up in the interface stating that the array local!activeUnassignedPeople is not a complex type&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Convert Text Array to datasubset</title><link>https://community.appian.com/thread/62795?ContentTypeID=1</link><pubDate>Mon, 19 Nov 2018 10:07:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d075c2fe-c64d-4e73-9ad6-882a9a87248e</guid><dc:creator>Hema</dc:creator><description>&lt;p&gt;Hi aaronp0001,&lt;/p&gt;
&lt;p&gt;I am able to convert a list of text string to a datasubset. Please find the sample code below,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  local!data: {
    &amp;quot;One&amp;quot;,
    &amp;quot;Two&amp;quot;,
    &amp;quot;Three&amp;quot;,
    &amp;quot;Four&amp;quot;,
    &amp;quot;Five&amp;quot;,
    &amp;quot;Six&amp;quot;,
    &amp;quot;Seven&amp;quot;,
    &amp;quot;Eight&amp;quot;,
    &amp;quot;Nine&amp;quot;,
    &amp;quot;Ten&amp;quot;,
    &amp;quot;Eleven&amp;quot;,
    &amp;quot;Twelve&amp;quot;
  },
  local!gridPagingInfo: a!pagingInfo(
    1,
    10
  ),
  with(
    local!datasubset: todatasubset(
      local!data,
      local!gridPagingInfo
    ),
    a!gridField(
      totalCount: local!datasubset.totalCount,
      columns: {
        a!gridTextColumn(
          label: &amp;quot;Number&amp;quot;,
          data: local!datasubset.data
        )
      },
      value: local!gridPagingInfo,
      saveInto: local!gridPagingInfo
    )
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What&amp;#39;s the exact issue that you were facing!!? If you can share the code snippet, that would be helpful to debug!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Hema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>