<?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>REST API backed custom picker field in an editable user grid</title><link>https://community.appian.com/discussions/f/user-interface/29056/rest-api-backed-custom-picker-field-in-an-editable-user-grid</link><description>Scenario: User wants to bulk edit rows of data which have been stored in MariaDB. User is presented with data (ranging upto 150 rows) in an editable grid. The first column in the editable grid is a picker field whose suggestFunction calls an external</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: REST API backed custom picker field in an editable user grid</title><link>https://community.appian.com/thread/114840?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2023 16:55:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f11c492a-7e0d-40d0-b9d1-a2ba83354f9e</guid><dc:creator>ashwing</dc:creator><description>&lt;p&gt;Thank you! I had built something very similar to this. But, your guide is definitely very helpful. Thank you so much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: REST API backed custom picker field in an editable user grid</title><link>https://community.appian.com/thread/114835?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2023 16:28:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42b83230-6cbc-43a3-9afc-50a57c0a763f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;It depends a bit on how you return the data from the suggest function. The field &amp;quot;identifiers&amp;quot; is an ANY type. Means, that you can store a list of maps in there that can then include the actual identifier plus the display value. Check out my blog post where I describe how to allow adding new items from a custom picker.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://appian.rocks/2022/12/22/create-new-items-using-a-custom-picker/"&gt;appian.rocks/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: REST API backed custom picker field in an editable user grid</title><link>https://community.appian.com/thread/114832?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2023 15:58:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6e71a75a-5541-4653-a571-27a0536fa403</guid><dc:creator>ashwing</dc:creator><description>&lt;p&gt;Quick update - I selected the option to log integration calls. You both were right - the API won&amp;#39;t be bulk invoked when the page loads. It will be invoked only when the user starts interacting with the picker field. This still presents an interesting challenge with the selected labels.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: REST API backed custom picker field in an editable user grid</title><link>https://community.appian.com/thread/114809?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2023 13:55:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8485e525-6cac-49f7-a142-08f5f0cdb2c8</guid><dc:creator>ashwing</dc:creator><description>&lt;p&gt;Stefan - just to confirm. Will I have to make a second call to the API in the saveInto to get the display label if the data and identifier parameters in the suggestFunction don&amp;#39;t have the desired label?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: REST API backed custom picker field in an editable user grid</title><link>https://community.appian.com/thread/114807?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2023 13:54:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2946a47d-6c1a-413f-90ea-37fb8984e0c1</guid><dc:creator>ashwing</dc:creator><description>&lt;p&gt;Correct. Will it be only on interact or even when the page loads? Basically, what I am trying to figure out is the following:&lt;br /&gt;1. User clicks on &amp;quot;Edit&amp;quot; and is presented with a grid with 100 rows in an editable grid.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. On page laod, will the API underneath the suggestFunction be invoked 100 times for the 100 rows? OR another way to think about this - let&amp;#39;s say the suggestFunction is getting its information from a database call. In that instance, will it invoke the DB query 100 times?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I ask because the pickerField by default has to decide the validity of the value entered in it and my hunch is that it it will have to check with the data source if the value that was previously entered is valid&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: REST API backed custom picker field in an editable user grid</title><link>https://community.appian.com/thread/114738?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2023 05:09:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ced0042-582b-420c-870f-debbafb2e22f</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;Suggestion function will be invoked for each custom picker field when the user will interact.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: REST API backed custom picker field in an editable user grid</title><link>https://community.appian.com/thread/114726?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 20:08:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c270054-9aef-409a-9f49-49009d298863</guid><dc:creator>ashwing</dc:creator><description>&lt;p&gt;Each call returns a very small amount of data. About 7 key:value pairs. 6/7 have a max length of 10 char, one can be about 40 chars.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But, when the page loads, wont the custom picker field have to invoke the suggestFunction for all the picker fields? I was thinking that the call to the suggestFunction is how the picker is validating the data&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: REST API backed custom picker field in an editable user grid</title><link>https://community.appian.com/thread/114723?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 17:22:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e81aae88-f466-44bb-8908-69c1b8808843</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;How much data does this API return? The API will only be called as the user interacts with that picker field.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: REST API backed custom picker field in an editable user grid</title><link>https://community.appian.com/thread/114721?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 16:33:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:31bd8688-bf85-4e7a-9026-d5e8f2752ce1</guid><dc:creator>sanchitg0002</dc:creator><description>&lt;p&gt;Yes, it will be invoked for each custom picker field. Why don&amp;#39;t you save the response in a local variable outside and pass it to suggestion function?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>