<?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>Issue with changing an array rule input</title><link>https://community.appian.com/discussions/f/new-to-appian/18675/issue-with-changing-an-array-rule-input</link><description>I am trying to adjust the rule inputs of an interface of my first Appian App. More specifically, I just changed the rule input, but somehow am not able to see all the entries of the data type &amp;quot;person&amp;quot; which is supposed to have all the entries displayed</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Issue with changing an array rule input</title><link>https://community.appian.com/thread/73537?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 14:27:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:db71be62-6887-40bc-af48-eea8f8d3c20c</guid><dc:creator>fgrl</dc:creator><description>&lt;p&gt;As workaround, I ended up re-creating a new interface from scratch, using the &amp;quot;Create from data type&amp;quot; template. All customization to the form were obviously lost, but thanks to the expression mode easy to copy to the new interface.&lt;/p&gt;
&lt;p&gt;Thanks for all your input!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with changing an array rule input</title><link>https://community.appian.com/thread/73535?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 14:25:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:54a9aae3-65db-495d-8c27-83614097a592</guid><dc:creator>fgrl</dc:creator><description>&lt;p&gt;It was a CDT and it was supposed to be one after re-inserting a new variable. I played with an array, so that&amp;#39;s the confusing screen-shot came about. Sorry for that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with changing an array rule input</title><link>https://community.appian.com/thread/73534?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 13:59:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b74d65ba-c2eb-4672-a187-9bc651189f23</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;What is the data type of ri!person?&amp;nbsp; From your initial screenshot it looks as if it&amp;#39;s set to be an array, which it shouldn&amp;#39;t be.&amp;nbsp; And also it would be nice if we can confirm that it&amp;#39;s set as a CDT with the proper fields, in accordance to how your on-form saves are configured.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with changing an array rule input</title><link>https://community.appian.com/thread/73533?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 13:55:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5b18e20e-cd88-4441-97ab-5e6afd4b5bae</guid><dc:creator>fgrl</dc:creator><description>&lt;p&gt;Sorry for not being clear: That&amp;#39;s exactly what I tried to do, namely to create a new input called &lt;strong&gt;person&lt;/strong&gt; of&lt;a href="https://docs.appian.com/suite/help/20.1/CDT_Relationships.html" rel="noopener noreferrer" target="_blank"&gt; custom data type&lt;/a&gt; &lt;strong&gt;fgPerson&lt;/strong&gt; which has exactly the sub-entries shown in the code snippet above.&lt;/p&gt;
&lt;p&gt;The curious thing is, that editing the expression of the interface definition shows me the corresponding sub-entries of &amp;quot;person&amp;quot; as pull-down-list, only in the rule-input pane on the upper right, the child entries are missing, and I have no clue how to add them. I just know, it looked different before.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with changing an array rule input</title><link>https://community.appian.com/thread/73532?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 13:50:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:015696b3-990a-4d7c-a438-86c4e16058fd</guid><dc:creator>fgrl</dc:creator><description>&lt;p&gt;I created the form as a template from a data type, but I had to delete the data type as I struggled with updating the Appian cloud DB table. Anyhow:&lt;/p&gt;
&lt;p&gt;1. I deleted the rule input which was automatically generated via the template and added a new one using the little plus sign. Before it was something like similar to the following:&lt;br /&gt; &lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1587649876844v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Afterwards I do not see this sub-entries any more.&lt;/p&gt;
&lt;p&gt;2. I do not understand your question. But the underlying motivation for changing the rule input was that I changed the datatype to account for data base model changes, since the DB did not update automatically (it is has to do with capital letters and underliners I am using, but I fixed that with the XSD-download-upload-trick)&lt;/p&gt;
&lt;p&gt;3. I hope (1) clarifies that.&lt;/p&gt;
&lt;p&gt;4. The code of the interface is the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!formLayout(
  label: &amp;quot;POC - Mini App&amp;quot;,
  instructions: &amp;quot;Create record.&amp;quot;,
  contents: {
    a!columnsLayout(
      columns: {
        a!columnLayout(
          contents: {
            a!textField(
              label: &amp;quot;First Name&amp;quot;,
              labelPosition: &amp;quot;ABOVE&amp;quot;,
              value: ri!person.first_name,
              saveInto: ri!person.first_name,
              validations: {
                null
              }
            ),
            a!dropdownField(
              label: &amp;quot;Gender&amp;quot;,
              labelPosition: &amp;quot;ABOVE&amp;quot;,
              placeholderLabel: &amp;quot;--- Select a Value ---&amp;quot;,
              choiceLabels: {&amp;quot;Female&amp;quot;, &amp;quot;Male&amp;quot;,
                &amp;quot;Other&amp;quot;},
              choiceValues: {1, 2,
                3},
              saveInto: {},
              saveInto: ri!person.gender_id,
              validations: {}
            ),
            a!dropdownField(
              label: &amp;quot;Title&amp;quot;,
              labelPosition: &amp;quot;ABOVE&amp;quot;,
              placeholderLabel: &amp;quot;--- Select a Value ---&amp;quot;,
              choiceLabels: {&amp;quot;none&amp;quot;, &amp;quot;Dr.&amp;quot;,
                &amp;quot;Prof.&amp;quot;,
                &amp;quot;Prof. Dr.&amp;quot;},
              choiceValues: {1, 2,
                3,
                4},
              saveInto: ri!person.title_id,
              validations: {}
            )
          }
        ),
        a!columnLayout(
          contents: {
            a!textField(
              label: &amp;quot;Last Name&amp;quot;,
              labelPosition: &amp;quot;ABOVE&amp;quot;,
              value: ri!person.last_name,
              saveInto: ri!person.last_name
            ),
            a!textField(
              label: &amp;quot;Nobility Particle&amp;quot;,
              labelPosition: &amp;quot;ABOVE&amp;quot;,
              value: ri!person.nobility_particle,
              saveInto: ri!person.nobility_particle
            )
          }
        )
      }
    )
  },
  buttons: a!buttonLayout(
    primaryButtons: {
      a!buttonWidget(
        label: &amp;quot;Submit to DB&amp;quot;,
        icon: &amp;quot;database&amp;quot;,
        submit: true,
        style: &amp;quot;PRIMARY&amp;quot;
      )
    },
    secondaryButtons: {
      a!buttonWidget(
        label: &amp;quot;Cancel&amp;quot;,
        value: true,
        saveInto: ri!cancel,
        submit: true,
        style: &amp;quot;NORMAL&amp;quot;,
        validate: false
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with changing an array rule input</title><link>https://community.appian.com/thread/73530?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 13:47:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:868af6af-afe9-4938-af09-efb630768a84</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;I think what your issue is (if I&amp;#39;ve read and interpreted your comments and screen-shot)...is that you&amp;#39;ve changed the rule input for ri!person from a single value to an array, but the interface is designed only to show a single person value. You&amp;#39;ll need to re-design the interface accordingly. You can do this in two ways:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;drop the current layout and use a grid instead where each column is an person attribute and each row is a person instance&lt;/li&gt;
&lt;li&gt;build repeating layouts as they;re currently designed, based upon the number of instances of ri!person, using a!forEach()&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;(If I&amp;#39;ve misunderstood your problem then perhaps you can elaborate a bit further)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with changing an array rule input</title><link>https://community.appian.com/thread/73529?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 13:43:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:556db8c4-43d5-4d86-97ad-1c1850b0ab35</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;It looks to me like you&amp;nbsp;need to choose a CDT as the type for your rule input. That will show the individual fields below that you can save into. Here&amp;#39;s an example of what that looks like:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/640x240/__key/communityserver-discussions-components-files/62/CDT-example.png" /&gt;&lt;/p&gt;
&lt;p&gt;If that&amp;#39;s not your issue, like Mike said above, please provide more information about what you have tried so far.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with changing an array rule input</title><link>https://community.appian.com/thread/73527?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 13:36:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa394fc1-492a-41ea-9e1d-00bee4041e00</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you provide some clarification on a few points?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What did you change about the rule input?&amp;nbsp;
&lt;ul&gt;
&lt;li&gt;Specifically, what was it set to before and what is it set to now?&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;What worked differently prior to this change?&lt;/li&gt;
&lt;li&gt;What are you expecting to have happen?&amp;nbsp; What are you seeing instead?&lt;/li&gt;
&lt;li&gt;Additionally, if you can share the code for your interface (&lt;em&gt;&lt;strong&gt;please use &amp;#39;Insert&amp;#39; --&amp;gt; &amp;#39;Insert Code&lt;/strong&gt;&lt;strong&gt;&amp;#39; functionality&lt;/strong&gt;&lt;/em&gt;), that would help us troubleshoot any apparent issues.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>