<?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>Issues with a!PickerFieldUsers() function</title><link>https://community.appian.com/discussions/f/data/11918/issues-with-a-pickerfieldusers-function</link><description>Hello, 
 I have a requirement to build up a dynamic form based on the CDT we receive from API call. On the basis of keyAttribute value we are displaying the various controls. Now what i&amp;#39;m doing is I&amp;#39;m displaying the controls and their default values from</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Issues with a!PickerFieldUsers() function</title><link>https://community.appian.com/thread/52861?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 10:12:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:442e2ffb-2bd4-42a0-b979-2dee517d1181</guid><dc:creator>viveku3486</dc:creator><description>Hey Brad,&lt;br /&gt;
&lt;br /&gt;
I checked and found that the value stored in database column is not null, Its a value &amp;quot;NULL&amp;quot; that is why its taking default username who corresponds to &amp;quot;NULL&amp;quot;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with a!PickerFieldUsers() function</title><link>https://community.appian.com/thread/52783?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2018 14:35:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6e993f97-b184-44ba-b544-ce24b0a1307b</guid><dc:creator>bradc</dc:creator><description>Hi -  I have not encountered this behavior on my side and have not been able to recreate it.  Did you search for the user that is appearing in the Inactive user list as well?  Can you also try putting typename(typeof(local!tempUserValue)) in your textfield component to see what type is being returned by this local variable?  Perhaps that will shed some light on the issue.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with a!PickerFieldUsers() function</title><link>https://community.appian.com/thread/52748?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2018 13:03:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5dcf647c-79de-4171-8c29-91f22d73cbc2</guid><dc:creator>viveku3486</dc:creator><description>Hey Brad,&lt;br /&gt;
&lt;br /&gt;
I checked this by placing a textfield control and its shows the value null(Which is the expected outcome), Also I tried by removing with() clause but it haven&amp;#39;t make any difference. One more thing i noticed is its taking the same user name as a default value and when I checked the directory there is no such user with that username.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with a!PickerFieldUsers() function</title><link>https://community.appian.com/thread/52727?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 15:38:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92ed0bda-3039-4f12-8eba-4feeca73a882</guid><dc:creator>bradc</dc:creator><description>I am not sure why that is happening there.  Is it a user name that has been selected in another instance of this rule?  Perhaps the indexes are confused mixed up somehow?  Have you tried adding a textfield to this expression to debug the incoming value of local!tempUserValue?&lt;br /&gt;
&lt;br /&gt;
Also - you do not need the with() wrapped around the pickerField unless you intend to declare a local variable to be used in the pickerField.  I doubt this is causing your issue, but it is not necessary.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with a!PickerFieldUsers() function</title><link>https://community.appian.com/thread/52724?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 14:41:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:de4fa377-ae00-4312-8b36-520c7bd262b5</guid><dc:creator>viveku3486</dc:creator><description>Hey Brad,&lt;br /&gt;
&lt;br /&gt;
I got the issue actually it was the incorrect variable name causing the issue. Now its allowing me to save the values, But i&amp;#39;m still seeing random username as a default value, Even the expected default value is null. Any idea why that is happening?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with a!PickerFieldUsers() function</title><link>https://community.appian.com/thread/52721?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 14:15:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7853b7e7-3946-4242-a82f-b1e9cf094eba</guid><dc:creator>bradc</dc:creator><description>The username you are cancelling out is attempting to save into index position 10 of ri!ContentMetricsUpdatedValue_cdt.  I am assuming you are generating this rule for each item in ri!defDataContentMetrics_cdt, but the CDT you are saving to does not have the same length, so your ri!index of 10 is not present for ri!ContentMetricsUpdatedValue_cdt.  &lt;br /&gt;
&lt;br /&gt;
If you believe ri!ContentMetricsUpdatedValue_cdt does have the correct length, you should also check that ri!ContentMetricsUpdatedValue_cdt is marked as an array on your inputs.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with a!PickerFieldUsers() function</title><link>https://community.appian.com/thread/52717?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 13:50:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2c0e952e-2d3e-460d-819f-439ad2f9853b</guid><dc:creator>viveku3486</dc:creator><description>The value returned in local!tempUserValue is not valid as the cdt which i&amp;#39;m getting from API call has null value for it but its showing some random user name. When I cancel out that username it shows the above error.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with a!PickerFieldUsers() function</title><link>https://community.appian.com/thread/52716?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 13:48:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5503e6af-56d5-43da-8940-4767bcc014b2</guid><dc:creator>viveku3486</dc:creator><description>&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/16/6283.error.PNG"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/6283.error.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Attached is the error message I&amp;#39;m getting&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with a!PickerFieldUsers() function</title><link>https://community.appian.com/thread/52715?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 13:37:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c7da5724-a2fd-490d-b444-6d63819a2ff8</guid><dc:creator>bradc</dc:creator><description>Hi - It may help if you were to provide the error you are receiving to properly diagnose.   Are the values returned in local!tempUservalue valid Appian usernames?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>