<?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>RuleInput, multidropdown</title><link>https://community.appian.com/discussions/f/user-interface/24989/ruleinput-multidropdown</link><description>Hi, 
 I have a user input with editable grid where each row will have 2 dropdowns. 
 The first dropdown &amp;quot;Attorney(s)&amp;quot; is a single selection where as &amp;quot;Line of Business&amp;quot; is a multiselection. 
 I have able to save the attorneykey to the rule input (black</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/97126?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2022 15:32:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e05970d-25c2-4afc-9798-8fb4326cd02d</guid><dc:creator>Rao2022</dc:creator><description>&lt;p&gt;We are currently using 21.4.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/97124?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2022 15:21:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5cc096a2-087f-4e9c-b82d-5f1906e6ff0c</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If you&amp;#39;re in Appian 22.2 already, you could try using the &amp;quot;Sync Records&amp;quot; smart service node to force syncing of the child element.&amp;nbsp; Otherwise I&amp;#39;m unsure - my assumption so far was that the Write to DSE Node caused syncing to happen, but I&amp;#39;m unsure how nested CDTs are handled there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/97122?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2022 14:52:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee477ac2-c43a-4c99-86a3-94bd59e7bf5d</guid><dc:creator>Rao2022</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;One strange issue which I am facing is, the RecordType which I am using to refer Child CDT is not getting synced once the data is saved through Parent CDT.&lt;/p&gt;
&lt;p&gt;If I ran DataSync, manually then I was able to see in the front-end.&lt;/p&gt;
&lt;p&gt;Any tips please.&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: RuleInput, multidropdown</title><link>https://community.appian.com/thread/96914?ContentTypeID=1</link><pubDate>Tue, 28 Jun 2022 13:42:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fc6dc3cb-0830-478b-8ace-d008412dcbe6</guid><dc:creator>Rao2022</dc:creator><description>&lt;p&gt;Thank you so much for all your explanations. I really appreciate.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/96913?ContentTypeID=1</link><pubDate>Tue, 28 Jun 2022 13:40:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7fdcaf6f-ab6d-4589-b606-60c7899be260</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You can always off-shift your editable grid rows into a local variable instead of directly reading/writing to the Rule Input - in that case you&amp;#39;d declare a &amp;quot;blank&amp;quot; one initially in the local variable definition, then in the &amp;quot;submit&amp;quot; button you&amp;#39;d add an a!save() statemen that mirrors the value of the local variable into the rule input.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/96871?ContentTypeID=1</link><pubDate>Tue, 28 Jun 2022 00:47:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6658ee1a-0fb9-414b-b882-52f7d90e38db</guid><dc:creator>Rao2022</dc:creator><description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t user input task. I am attaching the SAIL form to the process start node.&lt;/p&gt;
&lt;p&gt;Not sure how I can achieve.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/96858?ContentTypeID=1</link><pubDate>Mon, 27 Jun 2022 13:36:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d27723d1-c9ad-48a6-8f73-f72fb5406d53</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You would need to populate it in-process prior to your user input task.&amp;nbsp; Though I don&amp;#39;t think it should really be necessary to have a &amp;quot;default row&amp;quot; - just validate that the users add at least one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/96771?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2022 23:21:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ae9d9f2-157e-41c1-99c9-e5e40bb2e82e</guid><dc:creator>Rao2022</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for providing details explanation.&lt;/p&gt;
&lt;p&gt;Is there any way we can get a default row in this editable grid. If we try to use ruleInput &amp;quot;ri!parentCdt&amp;quot; for the gird rows, we are not getting default row until we click &amp;quot;New Field&amp;quot; link.&lt;/p&gt;
&lt;p&gt;Any idea on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/96760?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2022 15:07:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:63d5aa9e-b5b4-4cc6-a8ef-7037bbd1a1a8</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Here&amp;#39;s a 100% generic form relying on a generic, relatively-freshly-created parent/child CDT pair, which handles the &amp;quot;rows of child CDT per parent row based on multi dropdown value&amp;quot; concept.&lt;br /&gt;&lt;img height="151" src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1656083208853v1.png" width="219" alt=" " /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1656083215964v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!formLayout(
  label: &amp;quot;Simple Submit form&amp;quot;,
  
  contents: {
    a!gridLayout(
      label: &amp;quot;test grid&amp;quot;,
      headerCells: {
        a!gridLayoutHeaderCell(label: &amp;quot;label&amp;quot;),
        a!gridLayoutHeaderCell(label: &amp;quot;multiple&amp;quot;)
      },
      rows: a!forEach(
        ri!parentCdt,
        a!gridRowLayout(
          contents: {
            a!textField(
              value: fv!item.parentText1,
              saveInto: fv!item.parentText1
            ),
            
            a!multipleDropdownField(
              value: property(fv!item.nestedElement1, &amp;quot;int1&amp;quot;, {}),
              saveInto: {
                a!save(
                  fv!item.nestedElement1,
                  a!forEach(
                    save!value,
                    {
                      int1: fv!item,
                      text1: &amp;quot;active&amp;quot;
                    }
                  )
                )
              },
              choiceValues: {1, 2, 3},
              choiceLabels: {1, 2, 3}
            )
          }
        )
      ),
      addRowLink: a!dynamicLink(
        label: &amp;quot;Add&amp;quot;,
        saveInto: a!save(
          ri!parentCdt,
          append(
            ri!parentCdt,
            {
              parentText1: &amp;quot;&amp;quot;,
              nestedElement1: {}
            }
          )
        )
      )
    )
  },
  
  buttons: a!buttonLayout(
    primaryButtons: {
      a!buttonWidget(
        label: &amp;quot;Submit&amp;quot;,
        submit: true()
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1656083310876v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/96759?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2022 14:43:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:10d7ef69-e60f-4f44-af92-816bb6c57f60</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If the child CDT is nested in the parent CDT, you can save directly into its value(s) in the parent row of the editable grid by saving into &amp;quot;fv!item.&lt;em&gt;childCdtPropertyName&lt;/em&gt;&amp;quot;.&amp;nbsp; That would require one and only one a!forEach level in the saveInto of the multiple dropdown field - looping over every value currently in the &amp;quot;save!value&amp;quot; of the dropdown, and initializing a child CDT entry for it.&amp;nbsp; In this manner you should be able to base the Editable Grid rows directly on the Rule Input CDT and skip the local dictionary stage.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/96758?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2022 14:34:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:52e32d9d-d739-4df8-95ab-93405959a640</guid><dc:creator>Rao2022</dc:creator><description>&lt;p&gt;I have crated appian data type &amp;quot;ALineOfBusiness&amp;quot; with lobkey as an arry, then it created a another table &amp;quot;ALineOfBusiness_lobkey&amp;quot;.&lt;/p&gt;
&lt;p&gt;After words, I have created respective rule inputs. But, still I was unable to save multiple lobkeys against each Attorney.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/96755?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2022 14:30:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1fa170cb-d7a5-4891-a70e-fd511e8643b7</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I think you will need to simplify this somewhat.&amp;nbsp; At the moment you have a whole 3(!!) levels of nested a!forEach statements, just in the circled portion - you shouldn&amp;#39;t need nearly this many, IMHO.&lt;/p&gt;
&lt;p&gt;Also: you might consider making the new &amp;quot;aLineOfBusinessLobKey&amp;quot; CDT a child (nested) CDT of your original one.&amp;nbsp; I don&amp;#39;t do this very often but this is probably a good use case for that - it would simplify the linking/writing of foreign keys to the child table values at write-time, as far as I remember.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/96753?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2022 14:20:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3e62e145-1954-46df-8055-2e9e7aa69c24</guid><dc:creator>Rao2022</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your advise. To make it simple, I am trying using the below steps.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Step#1 Created 2 tables&amp;nbsp;&lt;span&gt;ALineOfBusiness&amp;nbsp;&amp;amp;&amp;nbsp;ALineOfBusiness_lobkey (t.txt)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Step#2 Created a data types for each of the above defined tables.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Step#3 Created a separate&amp;nbsp;rule inputs for each of those tables.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I got struck at fitting data into a rule inputs. (sail.txt).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://community.appian.com/cfs-file/__key/communityserver-discussions-components-files/13/t.txt"&gt;community.appian.com/.../t.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://community.appian.com/cfs-file/__key/communityserver-discussions-components-files/13/8053.sail.txt"&gt;community.appian.com/.../8053.sail.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1656080465284v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/96751?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2022 13:52:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:30dfe28f-6ed3-4656-acf3-72f5314ea984</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If you need the &amp;quot;lobkey&amp;quot; field to be multiple in the context of any single item with the primary key &amp;quot;alobkey&amp;quot;, then to store this in the database you&amp;#39;d need to make a secondary linked table, having a many-to-one relationship with the &amp;quot;attourneylineofbusiness&amp;quot; table.&amp;nbsp; This is because a SQL table doesn&amp;#39;t handle nesting within individual columns of a single table.&lt;/p&gt;
&lt;p&gt;If your need is more low-key, then an alternate way to handle this would be to create a column (let&amp;#39;s call it &amp;quot;lobKeyJsonString&amp;quot;, TEXT type, and within that, you can store a JSON string which is the result of wrapping your selected &amp;quot;lob key&amp;quot; entries first in a simple array and then converting to a JSON string.&amp;nbsp; that would look something like this:&lt;br /&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!multipleDropdownField(
  label: &amp;quot;LOB&amp;quot; &amp;amp; fv!index,
  labelPosition: &amp;quot;ABOVE&amp;quot;,
  placeholder: &amp;quot;Select a Line of Business&amp;quot;,
  choiceLabels: index(local!lineOfBusiness, &amp;quot;lobname&amp;quot;, &amp;quot;&amp;quot;),
  choiceValues: index(local!lineOfBusiness, &amp;quot;lobkey&amp;quot;, &amp;quot;&amp;quot;),
  value: a!fromJson(a!defaultValue(fv!item.lobKeyJsonString, &amp;quot;[]&amp;quot;)),
  saveInto: {
    a!save(
      fv!item.lobKeyJsonString,
      a!toJson(save!value)
    )
  },
  required: true
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/96717?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2022 01:20:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:622da395-e587-425f-87bc-7e7bfb0c3602</guid><dc:creator>Rao2022</dc:creator><description>&lt;p&gt;When I try to create lobkey as an array, appian is trying to create&amp;nbsp;one more new table.&lt;/p&gt;
&lt;p&gt;Do I need to create another new ruleInput with referring to newly crated table?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1656033629254v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/96715?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2022 22:50:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:285fbe89-01da-42a6-9492-278dfc2ff828</guid><dc:creator>Rao2022</dc:creator><description>&lt;p&gt;Please find the below attached&amp;nbsp;AttorneyLineOfBusiness CDT image.&lt;/p&gt;
&lt;p&gt;Also, my both dropdown values are fixed. Values inside the dropdown won&amp;#39;t change.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1656024451629v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RuleInput, multidropdown</title><link>https://community.appian.com/thread/96704?ContentTypeID=1</link><pubDate>Thu, 23 Jun 2022 21:07:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9c418028-a40b-4150-8d2a-19a60b14afaf</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;What is the CDT definition for the &amp;quot;attourneyLineOfBusiness&amp;quot; rule input?&amp;nbsp; Is the &amp;quot;lobkey&amp;quot; property single or multiple?&lt;/p&gt;
&lt;p&gt;It looks like every time the multiple dropdown is changed (regardless of the row) you&amp;#39;re attempting to overwrite the value of &amp;quot;ri!attourneyLineOfBusiness&amp;quot; with a copy stored in the local!attourneyLOB dictionary where the &amp;quot;lobkey&amp;quot; property is actually multiple values.&amp;nbsp; If your CDT doesn&amp;#39;t have that field defined as an array, then it simply won&amp;#39;t work.&amp;nbsp; I&amp;#39;d also caution that this might not be the best approach for storing multiple row-related values, though i suppose it could work with some fixes to your existing code (i&amp;#39;d suggest fixing the indentation in your a!forEach loops in your saveInto and consider whether you need to list the &amp;quot;lobkey&amp;quot; property name &lt;em&gt;quite&lt;/em&gt; so many times, for one...)&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1656018496716v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>