<?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>User Picker isn&amp;#39;t saving my selection</title><link>https://community.appian.com/discussions/f/user-interface/15029/user-picker-isn-t-saving-my-selection</link><description>I added a User Picker to my Interface. 
 I have defined &amp;quot;Selected Users&amp;quot; as ri!selectedUsers (which is an array of type User) 
 I have defined &amp;quot;Save Into&amp;quot; as ri!selectedUsers 
 When I select user, the selection is not saved in the component. I have seen</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: User Picker isn't saving my selection</title><link>https://community.appian.com/thread/67323?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 17:01:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4b5cec50-ce77-4757-b87e-dfe1209d4676</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;As far as I can tell, then, it should work for you to set both the value and the saveInto parameters to simply point to &amp;quot;ri!flight.firstOfficer&amp;quot;.&amp;nbsp; Note that if some other data has become saved into it in the mean time, you might need to click &amp;quot;Test&amp;quot; again and reload a fresh copy of the interface and data to avoid errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User Picker isn't saving my selection</title><link>https://community.appian.com/thread/67322?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 16:56:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:21f3142a-772e-42f8-90cf-9e0ae0a94833</guid><dc:creator>robertd0002</dc:creator><description>&lt;p&gt;they are both single. The page manages one flight and it has one first officer(co pilot)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User Picker isn't saving my selection</title><link>https://community.appian.com/thread/67321?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 16:38:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c882b7f5-d7d1-4e69-af2c-22fadfcb51be</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;is ri!flight an array or single?&amp;nbsp; is &amp;quot;.firstOfficer&amp;quot; an array within the CDT or single?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User Picker isn't saving my selection</title><link>https://community.appian.com/thread/67320?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 16:30:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f5c1724-573e-4129-9e4d-fe76709389c4</guid><dc:creator>robertd0002</dc:creator><description>&lt;p&gt;That sounds great... I am really close to getting this working. One problem when I update the interface -- to do with arrays I believe.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve changed&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;Save Selection To&amp;quot; to &amp;quot;ri!flight.firstOfficer&amp;quot;&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;&amp;quot;Selected Users&amp;quot; to ??? (I tried&amp;nbsp;{ touser(ri!flight.firstOfficer) } but that doesn&amp;#39;t seem to work. I&amp;#39;ve tried &amp;quot;ri!flight.firstOfficer&amp;quot; but it has an issue with the type.&lt;/p&gt;
&lt;p&gt;&lt;strong class="StrongText---richtext_strong StrongText---inMessageLayout StrongText---error"&gt;Could not display interface. Please check definition and inputs.&lt;/strong&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Interface Definition: Expression evaluation error at function a!pickerFieldUsers [line 83]: A user picker component [label=&amp;ldquo;First Officer&amp;rdquo;] has an invalid value for &amp;ldquo;value&amp;rdquo;. All users must be valid and visible to the viewer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User Picker isn't saving my selection</title><link>https://community.appian.com/thread/67317?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 15:28:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:117acfdf-fb0f-4886-b428-a7cba492c2bd</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If I understand your question correctly, then the answer luckily is that it&amp;#39;s a lot easier than you&amp;#39;re making it.&amp;nbsp; You can have the user picker field store into a text field - when a user is cast as text, the resulting text value is just the username.&amp;nbsp; So for example, you could just point your user picker field at ri!flight.firstOfficer instead of using an intermediary field.&lt;/p&gt;
&lt;p&gt;Another approach would be to continue using the separate field, and then in a script task after the user input task, save the username value into the CDT property.&amp;nbsp; This adds steps but also potentially adds flexibility to do different things if needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User Picker isn't saving my selection</title><link>https://community.appian.com/thread/67316?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 15:21:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:082c9acc-5dcc-4e1d-b28c-66e969bfdf77</guid><dc:creator>robertd0002</dc:creator><description>&lt;p&gt;One more quick question. I am pretty weak at writing expressions obviously. So, previously my Interface and CDT were all primitive types. The &amp;quot;user&amp;quot; field was just a text field for the &amp;quot;flight.firstofficer&amp;quot; field in the &amp;quot;flight CDT&amp;quot;. NOW I am have a&amp;nbsp;User Picker (that is stored in the parameter &amp;quot;selectedUser&amp;quot; - an array of type User), and I need to save it to the database.&lt;/p&gt;
&lt;p&gt;HOW would I take the&amp;nbsp;parameter &amp;quot;selectedUser&amp;quot; and update the &amp;quot;flight.firstofficer&amp;quot; field? (so it can be stored into the database in the next step).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What sort of expression do I need to write to set the &amp;quot;flight.firstofficer&amp;quot; field?&lt;/p&gt;
&lt;p&gt;Is it something like ...&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;flight: flight.date=pv!date,... &lt;strong&gt;flight.firstofficer=ac!selectedUser[1].user.name&lt;/strong&gt;,....&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;I understand my expression is probably ALL wrong, but you get the idea, I think I need to set the flight rule input to be a new &amp;quot;flight&amp;quot; CDT, and copy all the data over, and when it comes to the firstofficer field, grab the selectedUser....&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you point me to a video or document explaining how to write the expression correctly?&lt;/p&gt;
&lt;p&gt;Rob.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1560438361360v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User Picker isn't saving my selection</title><link>https://community.appian.com/thread/67315?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2019 14:46:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e602eea2-ea5a-4feb-b6c7-51d624317971</guid><dc:creator>robertd0002</dc:creator><description>&lt;p&gt;I tested it out this morning and it works perfectly. Thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User Picker isn't saving my selection</title><link>https://community.appian.com/thread/67244?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 02:32:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:82647a81-a4e1-4d66-a770-d162b88a8794</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;It&amp;#39;s fairly straightforward luckily - basically you create an input variable on the user input task&amp;#39;s Data tab matching the type you need (list of users in your case), then switch over to the &amp;quot;Forms&amp;quot; tab and find the rule input and set it to the newly-created ACP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User Picker isn't saving my selection</title><link>https://community.appian.com/thread/67243?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 02:29:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3e05cb96-55be-4f75-8698-8df34cdaeaed</guid><dc:creator>robertd0002</dc:creator><description>&lt;p&gt;That makes sense. Thanks! I&amp;#39;ll read up on the ac! variable and see if I can sort it out. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User Picker isn't saving my selection</title><link>https://community.appian.com/thread/67242?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 02:19:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:91dc26bb-4bd8-45d8-af3c-f736ee3c34c8</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Shoot, I was actually about to ask you before whether it was only breaking in a process, but I forgot to.&lt;/p&gt;
&lt;p&gt;So, yes this is expected behavior when the Task setup is incomplete.&amp;nbsp; When saving a variable into a ri! variable in a SAIL form used on a task in a process, the rule input on the User Input Task node &lt;strong&gt;MUST&lt;/strong&gt; map to an ACP (ac!) variable defined in that task.&amp;nbsp; You might think it would just save a &amp;quot;temporary&amp;quot; copy on the SAIL form without this, but it doesn&amp;#39;t.&amp;nbsp; I&amp;#39;d be pretty surprised if this wasn&amp;#39;t the root of your issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User Picker isn't saving my selection</title><link>https://community.appian.com/thread/67241?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 02:16:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ff46126-a146-45df-957e-04cba5605d6f</guid><dc:creator>robertd0002</dc:creator><description>&lt;p&gt;Thanks for that. Interestingly, the User Picker works when I test it in the designer, just not when I launch the Interface from the process. When I launch the interface from the process, after I select the User, the field is emptied again immediately.&lt;/p&gt;
&lt;p&gt;It seems like some sort of event is clearing out the selection.&lt;/p&gt;
&lt;p&gt;Does that make any sense?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User Picker isn't saving my selection</title><link>https://community.appian.com/thread/67240?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 01:58:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:87b66691-baea-4c79-af06-09f7a7771ecf</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;As a preliminary piece of advice: when entering a comment, use the menu &amp;quot;Insert -&amp;gt; Code&amp;quot; to insert a Code box which will both retain your formatting as well as not making your comment 5 pages long.&amp;nbsp; You should be able to do this also if you edit an existing comment.&amp;nbsp; I&amp;#39;ll take a glance at your code as soon as I can and see if I can spot anything.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Meanwhile it might help you to reduce the case to something absurdly simple and get that working at least - I banged out the following code in the last minute which works just fine for me:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!pickerFieldUsers(
  value: ri!selectedUsers,
  saveInto: ri!selectedUsers,
  maxSelections: 3
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and the expected result, which works fine:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1560304719394v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User Picker isn't saving my selection</title><link>https://community.appian.com/thread/67239?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 01:54:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:627e0aa0-0325-4e21-a955-75154d6c7960</guid><dc:creator>robertd0002</dc:creator><description>&lt;p&gt;I have attached the code below...&lt;/p&gt;
&lt;p&gt;Important part:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;a!pickerFieldUsers(&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;label: &amp;quot;First Officer&amp;quot;,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;maxselections: 1,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;groupfilter: cons!TA_ALL_USERS,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;value: ri!selectedUser,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;saveInto: ri!selectedUser,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;validations: {}&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And the rule input looks like this (an array of User):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1560304412348v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The behaviour is that the UI lets me enter a User name, but when I select it, it flashes in the &amp;quot;First Officer&amp;quot; field then disappears.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It is a little weird, but I am probably just missing something simple....&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;============================&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;a!formLayout(&lt;br /&gt; label: &amp;quot;Flight&amp;quot;,&lt;br /&gt; contents: {&lt;br /&gt; a!columnsLayout(&lt;br /&gt; columns: {&lt;br /&gt; a!columnLayout(&lt;br /&gt; contents: {&lt;br /&gt; a!dateField(&lt;br /&gt; label: &amp;quot;Date&amp;quot;,&lt;br /&gt; labelPosition: if(&lt;br /&gt; ri!readOnly,&lt;br /&gt; &amp;quot;ADJACENT&amp;quot;,&lt;br /&gt; &amp;quot;ABOVE&amp;quot;&lt;br /&gt; ),&lt;br /&gt; value: ri!flight.date,&lt;br /&gt; saveInto: ri!flight.date,&lt;br /&gt; readOnly: ri!readOnly&lt;br /&gt; ),&lt;br /&gt; a!textField(&lt;br /&gt; label: &amp;quot;Captain&amp;quot;,&lt;br /&gt; labelPosition: if(&lt;br /&gt; ri!readOnly,&lt;br /&gt; &amp;quot;ADJACENT&amp;quot;,&lt;br /&gt; &amp;quot;ABOVE&amp;quot;&lt;br /&gt; ),&lt;br /&gt; value: ri!flight.captain,&lt;br /&gt; saveInto: ri!flight.captain,&lt;br /&gt; readOnly: ri!readOnly,&lt;br /&gt; validations: if(&lt;br /&gt; len(&lt;br /&gt; ri!flight.captain&lt;br /&gt; ) &amp;gt; 255,&lt;br /&gt; &amp;quot;Value may not be longer than 255 characters. You have entered &amp;quot; &amp;amp; len(&lt;br /&gt; ri!flight.captain&lt;br /&gt; ) &amp;amp; &amp;quot; characters.&amp;quot;,&lt;br /&gt; null&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; a!textField(&lt;br /&gt; label: &amp;quot;Special Instructions&amp;quot;,&lt;br /&gt; labelPosition: if(&lt;br /&gt; ri!readOnly,&lt;br /&gt; &amp;quot;ADJACENT&amp;quot;,&lt;br /&gt; &amp;quot;ABOVE&amp;quot;&lt;br /&gt; ),&lt;br /&gt; value: ri!flight.specialInstructions,&lt;br /&gt; saveInto: ri!flight.specialInstructions,&lt;br /&gt; readOnly: ri!readOnly,&lt;br /&gt; validations: if(&lt;br /&gt; len(&lt;br /&gt; ri!flight.specialInstructions&lt;br /&gt; ) &amp;gt; 255,&lt;br /&gt; &amp;quot;Value may not be longer than 255 characters. You have entered &amp;quot; &amp;amp; len(&lt;br /&gt; ri!flight.specialInstructions&lt;br /&gt; ) &amp;amp; &amp;quot; characters.&amp;quot;,&lt;br /&gt; null&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt; a!columnLayout(&lt;br /&gt; contents: {&lt;br /&gt; a!textField(&lt;br /&gt; label: &amp;quot;Customer&amp;quot;,&lt;br /&gt; labelPosition: if(&lt;br /&gt; ri!readOnly,&lt;br /&gt; &amp;quot;ADJACENT&amp;quot;,&lt;br /&gt; &amp;quot;ABOVE&amp;quot;&lt;br /&gt; ),&lt;br /&gt; value: ri!flight.customer,&lt;br /&gt; saveInto: ri!flight.customer,&lt;br /&gt; readOnly: ri!readOnly,&lt;br /&gt; validations: if(&lt;br /&gt; len(&lt;br /&gt; ri!flight.customer&lt;br /&gt; ) &amp;gt; 255,&lt;br /&gt; &amp;quot;Value may not be longer than 255 characters. You have entered &amp;quot; &amp;amp; len(&lt;br /&gt; ri!flight.customer&lt;br /&gt; ) &amp;amp; &amp;quot; characters.&amp;quot;,&lt;br /&gt; null&lt;br /&gt; )&lt;br /&gt; ),&lt;br /&gt; a!pickerFieldUsers(&lt;br /&gt; label: &amp;quot;First Officer&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; maxselections: 1,&lt;br /&gt; groupfilter: cons!TA_ALL_USERS,&lt;br /&gt; value: ri!selectedUser,&lt;br /&gt; saveInto: ri!selectedUser,&lt;br /&gt; validations: {}&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt; {&lt;br /&gt; a!localVariables(&lt;br /&gt; local!employees: {&lt;br /&gt; {id: 1, name: &amp;quot;Elizabeth Ward&amp;quot;, dept: &amp;quot;Engineering&amp;quot;, role: &amp;quot;Senior Engineer&amp;quot;, team: &amp;quot;Front-End Components&amp;quot;, pto: 15, startDate: today()-500},&lt;br /&gt; {id: 2, name: &amp;quot;Michael Johnson&amp;quot;, dept: &amp;quot;Finance&amp;quot;, role: &amp;quot;Payroll Manager&amp;quot;, team: &amp;quot;Accounts Payable&amp;quot;, pto: 2, startDate: today()-100},&lt;br /&gt; {id: 3, name: &amp;quot;John Smith&amp;quot;, dept: &amp;quot;Engineering&amp;quot;, role: &amp;quot;Quality Engineer&amp;quot;, team: &amp;quot;User Acceptance Testing&amp;quot;, pto: 5, startDate: today()-1000},&lt;br /&gt; {id: 4, name: &amp;quot;Diana Hellstrom&amp;quot;, dept: &amp;quot;Engineering&amp;quot;, role: &amp;quot;UX Designer&amp;quot;, team: &amp;quot;User Experience&amp;quot;, pto: 49, startDate: today()-1200},&lt;br /&gt; {id: 5, name: &amp;quot;Francois Morin&amp;quot;, dept: &amp;quot;Sales&amp;quot;, role: &amp;quot;Account Executive&amp;quot;, team: &amp;quot;Commercial North America&amp;quot;, pto: 15, startDate: today()-700},&lt;br /&gt; {id: 6, name: &amp;quot;Maya Kapoor&amp;quot;, dept: &amp;quot;Sales&amp;quot;, role: &amp;quot;Regional Director&amp;quot;, team: &amp;quot;Front-End Components&amp;quot;, pto: 15, startDate: today()-1400},&lt;br /&gt; {id: 7, name: &amp;quot;Anthony Wu&amp;quot;, dept: &amp;quot;Human Resources&amp;quot;, role: &amp;quot;Benefits Coordinator&amp;quot;, team: &amp;quot;Accounts Payable&amp;quot;, pto: 2, startDate: today()-300}&lt;br /&gt; },&lt;br /&gt; /* This variable is used to pass the full row of data on the selected item to the part of the interface showing the details of the selected item. */&lt;br /&gt; /* Here we are pre-selecting a row by indexing into the sample data; however, the data for the pre-selected row would typically be passed in as a *&lt;br /&gt; * rule input or generated with a query. */&lt;br /&gt; local!selectedEmployee: local!employees[4],&lt;br /&gt; {&lt;br /&gt; a!columnsLayout(&lt;br /&gt; columns: {&lt;br /&gt; a!columnLayout(&lt;br /&gt; contents: {&lt;br /&gt; a!sectionLayout(&lt;br /&gt; label: &amp;quot;Legs&amp;quot;,&lt;br /&gt; contents: {&lt;br /&gt; a!gridField(&lt;br /&gt; /* Replace the dummy data with a query, rule, or function that returns a datasubset and uses fv!pagingInfo as the paging configuration. */&lt;br /&gt; data: todatasubset(&lt;br /&gt; local!employees,&lt;br /&gt; fv!pagingInfo&lt;br /&gt; ),&lt;br /&gt; columns: {&lt;br /&gt; a!gridColumn(&lt;br /&gt; label: &amp;quot;Name&amp;quot;,&lt;br /&gt; value: fv!row.name&lt;br /&gt; ),&lt;br /&gt; a!gridColumn(&lt;br /&gt; label: &amp;quot;Department&amp;quot;,&lt;br /&gt; value: fv!row.dept&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; pageSize: 7,&lt;br /&gt; selectable: true,&lt;br /&gt; selectionStyle: &amp;quot;ROW_HIGHLIGHT&amp;quot;,&lt;br /&gt; selectionValue: index(local!selectedEmployee, &amp;quot;id&amp;quot;, {}),&lt;br /&gt; selectionSaveInto: {&lt;br /&gt; /* This save replaces the value of the previously selected item with that of the newly selected item, ensuring only one item can be selected at once.*/&lt;br /&gt; a!save(&lt;br /&gt; local!selectedEmployee,&lt;br /&gt; if(&lt;br /&gt; length(fv!selectedRows) &amp;gt; 0,&lt;br /&gt; fv!selectedRows[length(fv!selectedRows)],&lt;br /&gt; null&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; shadeAlternateRows: false,&lt;br /&gt; rowHeader: 1&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt; a!columnLayout(&lt;br /&gt; contents: {&lt;br /&gt; a!sectionLayout(&lt;br /&gt; label: &amp;quot;Leg Details&amp;quot;,&lt;br /&gt; contents: {&lt;br /&gt; a!richTextDisplayField(&lt;br /&gt; value: a!richTextItem(&lt;br /&gt; text: &amp;quot;No employee selected.&amp;quot;,&lt;br /&gt; color: &amp;quot;SECONDARY&amp;quot;,&lt;br /&gt; size: &amp;quot;MEDIUM&amp;quot;,&lt;br /&gt; style: &amp;quot;EMPHASIS&amp;quot;&lt;br /&gt; ),&lt;br /&gt; showWhen: isnull(local!selectedEmployee)&lt;br /&gt; ),&lt;br /&gt; a!columnsLayout(&lt;br /&gt; columns: {&lt;br /&gt; a!columnLayout(&lt;br /&gt; contents: {&lt;br /&gt; a!textField(&lt;br /&gt; label: &amp;quot;Name&amp;quot;,&lt;br /&gt; value: local!selectedEmployee.name,&lt;br /&gt; readOnly: true&lt;br /&gt; ),&lt;br /&gt; a!textField(&lt;br /&gt; label: &amp;quot;Department&amp;quot;,&lt;br /&gt; value: local!selectedEmployee.dept,&lt;br /&gt; readOnly: true&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt; a!columnLayout(&lt;br /&gt; contents: {&lt;br /&gt; a!textField(&lt;br /&gt; label: &amp;quot;Role&amp;quot;,&lt;br /&gt; value: local!selectedEmployee.role,&lt;br /&gt; readOnly: true&lt;br /&gt; ),&lt;br /&gt; a!textField(&lt;br /&gt; label: &amp;quot;Start Date&amp;quot;,&lt;br /&gt; value: text(local!selectedEmployee.startDate, &amp;quot;MMM dd, yyyy&amp;quot;),&lt;br /&gt; readOnly: true&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt; a!columnLayout(&lt;br /&gt; contents: {&lt;br /&gt; a!textField(&lt;br /&gt; label: &amp;quot;Team&amp;quot;,&lt;br /&gt; value: local!selectedEmployee.team,&lt;br /&gt; readOnly: true&lt;br /&gt; ),&lt;br /&gt; a!textField(&lt;br /&gt; label: &amp;quot;Available PTO&amp;quot;,&lt;br /&gt; value: local!selectedEmployee.pto &amp;amp; &amp;quot; days&amp;quot;,&lt;br /&gt; readOnly: true&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; showWhen: not(isnull(local!selectedEmployee))&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; }&lt;br /&gt; )&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: {&lt;br /&gt; a!buttonWidget(&lt;br /&gt; label: &amp;quot;Submit&amp;quot;,&lt;br /&gt; submit: true,&lt;br /&gt; style: &amp;quot;PRIMARY&amp;quot;&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; secondaryButtons: {&lt;br /&gt; a!buttonWidget(&lt;br /&gt; label: &amp;quot;Cancel&amp;quot;,&lt;br /&gt; value: true,&lt;br /&gt; saveInto: ri!cancel,&lt;br /&gt; submit: true,&lt;br /&gt; style: &amp;quot;NORMAL&amp;quot;,&lt;br /&gt; validate: false&lt;br /&gt; )&lt;br /&gt; },&lt;br /&gt; showWhen: or(&lt;br /&gt; isnull(&lt;br /&gt; ri!readOnly&lt;br /&gt; ),&lt;br /&gt; not(&lt;br /&gt; ri!readOnly&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: User Picker isn't saving my selection</title><link>https://community.appian.com/thread/67237?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 01:25:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:185ddfc5-2f84-465f-b75e-4dd5c281b705</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Can you post a code snippet?&amp;nbsp; Otherwise anyone who tries to help troubleshoot will basically be shooting in the dark.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>