<?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>add PickerFieldUser value to rule input</title><link>https://community.appian.com/discussions/f/user-interface/14580/add-pickerfielduser-value-to-rule-input</link><description>Hi All, 
 can anyone please tel me how to add PickerFieldUsers value into rule input 
 Thanks in advance</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: add PickerFieldUser value to rule input</title><link>https://community.appian.com/thread/65435?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 14:22:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a0047a09-7030-4a2f-bbcf-18be5ec09712</guid><dc:creator>Mike Schmitt</dc:creator><description>i believe you should be able to get it to work with array of text, where each member of the array is a concatenated list of usernames.  however it might be best to be using an array of CDT where one of the fields of the CDT is an array of users - that way you wouldn&amp;#39;t have to do as much special handling when saving / reading the rule input data.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add PickerFieldUser value to rule input</title><link>https://community.appian.com/thread/65433?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 14:14:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c4f43f7c-9598-4c7f-a573-7261273e2d9c</guid><dc:creator>vineethk0001</dc:creator><description>Have tried with , text (Array) and UserorGroup&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add PickerFieldUser value to rule input</title><link>https://community.appian.com/thread/65432?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 14:09:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b31c1c0e-0c31-4d96-9306-fbcb1b23f454</guid><dc:creator>Mike Schmitt</dc:creator><description>what data type is the rule input?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add PickerFieldUser value to rule input</title><link>https://community.appian.com/thread/65431?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 14:06:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0166f67c-8e4e-40d2-b0ca-0c680843e4c2</guid><dc:creator>vineethk0001</dc:creator><description>yes Mike, till that point its working, but when we create a new row clicking on &amp;quot;Add New manager&amp;quot; and key in the &amp;quot;Approvers&amp;quot; it will update in Rule Input Replacing the first Row data instead of appending it, something like,&lt;br /&gt;
&lt;br /&gt;
Approvers                                            Level   &lt;br /&gt;
User1, User2 , User3                              1                            -&amp;gt;&amp;gt; in this point the Rule Input Array = User1;User2;User3(Index 1, 2, 3)&lt;br /&gt;
User4, User5, User6                               2                            --&amp;gt; in this point the above data is over-rightten instead of adding a data into &lt;br /&gt;
                                                                                                       array    Rule Input Array = User4;User5;User6(Index 1,2,3)&lt;br /&gt;
&lt;br /&gt;
so what i want is all the row data in the grid should be present in the Rule Input array&lt;br /&gt;
something like&lt;br /&gt;
&lt;br /&gt;
rule Input array = {&lt;br /&gt;
User1;User2;USer3,&lt;br /&gt;
User4,User5;USer6,&lt;br /&gt;
...&lt;br /&gt;
....&lt;br /&gt;
....&lt;br /&gt;
....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
}&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add PickerFieldUser value to rule input</title><link>https://community.appian.com/thread/65429?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 13:03:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:706e0a09-3dea-4f60-a563-86bc40c3a98f</guid><dc:creator>Mike Schmitt</dc:creator><description>Can you explain a bit more about what you&amp;#39;re trying to have happen, and what&amp;#39;s happening incorrectly when you use my code posted above?  When I click &amp;quot;Add Manager&amp;quot;, it adds a new row which I assume is what you were expecting.  Each row can have up to 4 users selected in the &amp;quot;name&amp;quot; column which also seems to be what you were after.  I&amp;#39;m not sure where you&amp;#39;re using joinArray() or what you&amp;#39;re expecting it to do (but be aware that it creates a text-only output).&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add PickerFieldUser value to rule input</title><link>https://community.appian.com/thread/65420?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 08:42:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f60e5c68-93c7-4571-a028-75a42f92ae95</guid><dc:creator>vineethk0001</dc:creator><description>Hi Mike,&lt;br /&gt;
i tried the above , it worked, but when i hit on &amp;quot;Add New Manager&amp;quot; and key in the manager details, the array value gets replaced on the first row, how to over come this, &lt;br /&gt;
what i have done is , i have used &amp;quot;JoinArray&amp;quot; property to take all the items and save in one with comma separated,&lt;br /&gt;
not when i add the new approver, it should be added in the index 2 instead of replacing the first&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add PickerFieldUser value to rule input</title><link>https://community.appian.com/thread/65404?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2019 16:28:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:145d2fc8-4a86-4846-9e9e-52bd51eff2cd</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Well, your user picker wasn&amp;#39;t saving anything in the version you posted because it doesn&amp;#39;t contain any SaveInto.&amp;nbsp; I&amp;#39;ve revised your form somewhat to where it saves everything locally.&amp;nbsp; If you still need it to interact with a rule input in some specific way, you&amp;#39;ll need to explain a bit more clearly what you&amp;#39;re hoping to have happen.&amp;nbsp; But for now hopefully this is a good start:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;load(
  /*local!apprName,*/
  local!Managers: {},
  a!formLayout(
    label: &amp;quot;Adding, Editing or deleting additional manager&amp;quot;,
    contents: {
      a!paragraphField(
        label: &amp;quot;DEBUG&amp;quot;,
        showWhen: false(),
        value: local!Managers
      ),
      
      a!gridLayout(
        totalCount: count( local!Managers ),
        headerCells: {
          a!gridLayoutHeaderCell( label: &amp;quot;Name&amp;quot; ),
          a!gridLayoutHeaderCell( label: &amp;quot;level&amp;quot; ),
          a!gridLayoutHeaderCell( label: &amp;quot;&amp;quot; )
        },
        columnConfigs: {
          a!gridLayoutColumnConfig(width: &amp;quot;DISTRIBUTE&amp;quot;, weight: 5),
          a!gridLayoutColumnConfig(width: &amp;quot;DISTRIBUTE&amp;quot;, weight: 3),
          a!gridLayoutColumnConfig(width: &amp;quot;ICON&amp;quot;)
        },
        rows: a!forEach(
          items: local!Managers,
          expression: a!gridRowLayout(
            id: fv!index,
            contents: {
              a!pickerFieldUsers(
                label: &amp;quot;Name &amp;quot; &amp;amp; fv!index,
                value: fv!item.Approvers,
                saveInto: fv!item.Approvers,
                maxSelections: 3,
                required: true
              ),
              /* For the Title Column*/
              a!integerField(
                label: &amp;quot;Level &amp;quot; &amp;amp; fv!index,
                value: fv!item.Levels,
                saveInto: {
                  /*a!save(*/
                    /*ri!Levels,*/
                    /*fv!item.Levels*/
                  /*),*/
                  fv!item.Levels
                },
                required: true
              ),
              /* For the Removal Column*/
              a!richTextDisplayField(
                value: {
                  a!richTextIcon(
                    icon: &amp;quot;REMOVE&amp;quot;,
                    size: &amp;quot;MEDIUM&amp;quot;,
                    caption: &amp;quot;Remove&amp;quot;,
                    color: &amp;quot;NEGATIVE&amp;quot;,
                    link: a!dynamicLink(
                      saveInto: {
                        a!save(
                          local!Managers,
                          remove(
                            local!Managers,
                            fv!index
                          )
                        )
                      }
                    ),
                    linkStyle: &amp;quot;STANDALONE&amp;quot;
                  )
                }
              )
              /*a!imageField(*/
                /*label: &amp;quot;delete &amp;quot; &amp;amp; fv!index,*/
                /*images: a!documentImage(*/
                  /*document: a!iconIndicator( &amp;quot;REMOVE&amp;quot; ),*/
                  /*altText: &amp;quot;Remove Employee&amp;quot;,*/
                  /*caption: &amp;quot;Remove &amp;quot; &amp;amp; fv!item.Name &amp;amp; &amp;quot; &amp;quot; &amp;amp; fv!item.Levels,*/
                  /*link: a!dynamicLink(*/
                    /*value: fv!index,*/
                    /*saveInto: {*/
                      /*a!save(*/
                        /*local!Managers,*/
                        /*remove(*/
                          /*local!Managers,*/
                          /*save!value*/
                        /*)*/
                      /*)*/
                    /*}*/
                  /*)*/
                /*),*/
                /*size: &amp;quot;ICON&amp;quot;*/
              /*)*/
            }
          )
        ),
        addRowlink: a!dynamicLink(
          label: &amp;quot;Add Manager&amp;quot;,
          /*value: {*/
            /*Approvers: {},*/
            /*Levels: null()*/
          /*},*/
          saveInto: {
            a!save(
              local!Managers,
              append(
                local!Managers,
                {
                  Approvers: {},
                  Levels: null()
                }
              )
            )
          }
        )
      )
    },
    buttons: a!buttonLayout(
      primaryButtons: a!buttonWidgetSubmit(
        label: &amp;quot;Submit&amp;quot;
      )
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add PickerFieldUser value to rule input</title><link>https://community.appian.com/thread/65390?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2019 06:54:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e417684b-ae93-4f51-b3a8-9245514f5c2e</guid><dc:creator>vineethk0001</dc:creator><description>Hi Mike,&lt;br /&gt;
below is my code, please let me know what do i have to change,&lt;br /&gt;
oad(&lt;br /&gt;
  local!apprName,&lt;br /&gt;
  local!Managers: {},&lt;br /&gt;
  a!formLayout(&lt;br /&gt;
    label: &amp;quot;Adding, Editing or deleting additional manager&amp;quot;,&lt;br /&gt;
    contents: {&lt;br /&gt;
      a!gridLayout(&lt;br /&gt;
        totalCount: count(&lt;br /&gt;
          local!Managers&lt;br /&gt;
        ),&lt;br /&gt;
        headerCells: {&lt;br /&gt;
          a!gridLayoutHeaderCell(&lt;br /&gt;
            label: &amp;quot;Name&amp;quot;&lt;br /&gt;
          ),&lt;br /&gt;
          a!gridLayoutHeaderCell(&lt;br /&gt;
            label: &amp;quot;level&amp;quot;&lt;br /&gt;
          ),&lt;br /&gt;
          a!gridLayoutHeaderCell(&lt;br /&gt;
            label: &amp;quot;&amp;quot;&lt;br /&gt;
          )&lt;br /&gt;
        },&lt;br /&gt;
        rows: a!forEach(&lt;br /&gt;
          items: local!Managers,&lt;br /&gt;
          expression: a!gridRowLayout(&lt;br /&gt;
            id: fv!index,&lt;br /&gt;
            contents: {&lt;br /&gt;
              a!pickerFieldUsers(&lt;br /&gt;
                label: &amp;quot;Name &amp;quot; &amp;amp; fv!index,&lt;br /&gt;
                value: fv!item.Approvers,&lt;br /&gt;
                maxSelections: 3,&lt;br /&gt;
                required: true&lt;br /&gt;
                &lt;br /&gt;
              ),&lt;br /&gt;
              /* For the Title Column*/&lt;br /&gt;
              a!integerField(&lt;br /&gt;
                label: &amp;quot;Level &amp;quot; &amp;amp; fv!index,&lt;br /&gt;
                value: fv!item.Levels,&lt;br /&gt;
                saveInto: a!save(ri!Levels, fv!item.Levels),&lt;br /&gt;
                required: true&lt;br /&gt;
              ),&lt;br /&gt;
              /* For the Removal Column*/&lt;br /&gt;
              a!imageField(&lt;br /&gt;
                label: &amp;quot;delete &amp;quot; &amp;amp; fv!index,&lt;br /&gt;
                images: a!documentImage(&lt;br /&gt;
                  document: a!iconIndicator(&lt;br /&gt;
                    &amp;quot;REMOVE&amp;quot;&lt;br /&gt;
                  ),&lt;br /&gt;
                  altText: &amp;quot;Remove Employee&amp;quot;,&lt;br /&gt;
                  caption: &amp;quot;Remove &amp;quot; &amp;amp; fv!item.Name &amp;amp; &amp;quot; &amp;quot; &amp;amp; fv!item.Levels,&lt;br /&gt;
                  link: a!dynamicLink(&lt;br /&gt;
                    value: fv!index,&lt;br /&gt;
                    saveInto: {&lt;br /&gt;
                      a!save(&lt;br /&gt;
                        local!Managers,&lt;br /&gt;
                        remove(&lt;br /&gt;
                          local!Managers,&lt;br /&gt;
                          save!value&lt;br /&gt;
                        )&lt;br /&gt;
                      )&lt;br /&gt;
                    }&lt;br /&gt;
                  )&lt;br /&gt;
                ),&lt;br /&gt;
                size: &amp;quot;ICON&amp;quot;&lt;br /&gt;
              )&lt;br /&gt;
            }&lt;br /&gt;
          )&lt;br /&gt;
        ),&lt;br /&gt;
        addRowlink: a!dynamicLink(&lt;br /&gt;
          label: &amp;quot;Add Manager&amp;quot;,&lt;br /&gt;
          value: {&lt;br /&gt;
            Name: &amp;quot;&amp;quot;&lt;br /&gt;
          },&lt;br /&gt;
          saveInto: {&lt;br /&gt;
            a!save(&lt;br /&gt;
              local!Managers,&lt;br /&gt;
              append(&lt;br /&gt;
                local!Managers,&lt;br /&gt;
                save!value&lt;br /&gt;
              )&lt;br /&gt;
            )&lt;br /&gt;
          }&lt;br /&gt;
        )&lt;br /&gt;
      )&lt;br /&gt;
    },&lt;br /&gt;
    buttons: a!buttonLayout(&lt;br /&gt;
      primaryButtons: a!buttonWidgetSubmit(&lt;br /&gt;
        label: &amp;quot;Submit&amp;quot;&lt;br /&gt;
      )&lt;br /&gt;
    )&lt;br /&gt;
  )&lt;br /&gt;
)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add PickerFieldUser value to rule input</title><link>https://community.appian.com/thread/65378?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 16:25:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a655dc32-16aa-48ff-b643-69d6a14b0d62</guid><dc:creator>Mike Schmitt</dc:creator><description>If you have a more unusual use case, please provide relevant sample code so that we can see what you&amp;#39;re trying to do.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add PickerFieldUser value to rule input</title><link>https://community.appian.com/thread/65373?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 13:56:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cac0fe53-2dad-46f2-ae05-8501038933c5</guid><dc:creator>vineethk0001</dc:creator><description>Hi Stewart, thanks for the reply , but the PickerFieldUsers field is inside Grid, so the Above one is not working&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add PickerFieldUser value to rule input</title><link>https://community.appian.com/thread/65363?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 10:11:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0cb8f3b2-5751-4a3d-8878-3445c5022d48</guid><dc:creator>Stewart Burchell</dc:creator><description>Hi Vineeth&lt;br /&gt;
&lt;br /&gt;
Just like any other interface input component it has a &amp;#39;value&amp;#39; parameter and a &amp;#39;saveInto&amp;#39; parameter. Set these both to point to the relevant rule input. So, where your rule input is ri!selectedUsers (an array of &amp;#39;User&amp;#39;):&lt;br /&gt;
&lt;br /&gt;
a!pickerFieldUsers(&lt;br /&gt;
value: ri!selectedUsers,&lt;br /&gt;
saveInto: ri!selectedUsers&lt;br /&gt;
)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>