<?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>How do I default a dropdown field in a editable grid (SAIL)</title><link>https://community.appian.com/discussions/f/process/11745/how-do-i-default-a-dropdown-field-in-a-editable-grid-sail</link><description>I have an editable grid in SAIL (v16.2). One of the columns has a dropdown field. I need to setup a default &amp;quot;East US&amp;quot; in the dropdown field in the grid. When the &amp;#39;Add Items&amp;#39; is clicked the column with the dropdown need to default with &amp;quot;East US&amp;quot; for each</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How do I default a dropdown field in a editable grid (SAIL)</title><link>https://community.appian.com/thread/52291?ContentTypeID=1</link><pubDate>Tue, 06 Feb 2018 07:59:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48e8b5c0-33e0-4cc6-bc61-cb3815d6423c</guid><dc:creator>smriti p0001</dc:creator><description>yes I agree when you add row you need to strore value&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I default a dropdown field in a editable grid (SAIL)</title><link>https://community.appian.com/thread/51920?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 13:37:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dba8aa1c-01d7-4664-8e57-a95ac72988b9</guid><dc:creator>Shyam Bommakanti</dc:creator><description>I recommend solution provided by &lt;a href="/members/justinw59"&gt;Justin Watts&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
One other way is you can conditionally set the value in the a!dropdownField(), if null default to value of East US. The limitation is this only sets the display value for the UI and doesn&amp;#39;t actually save in to the destination variable.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I default a dropdown field in a editable grid (SAIL)</title><link>https://community.appian.com/thread/51915?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 09:31:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5cf261b-1c82-4b23-a008-5712b6e04534</guid><dc:creator>TJ</dc:creator><description>Yes as suggested by Justin Watts when you click on Add New Row you need to store value in CDT.fieldName for that particular index.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I default a dropdown field in a editable grid (SAIL)</title><link>https://community.appian.com/thread/51895?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2018 16:25:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f2792d25-2d2f-4dc6-a01b-a371c7ccdb80</guid><dc:creator>Justin Watts</dc:creator><description>When you add new items, you should be calling a expression to create a new item (CDT, for example) and appending to list which is 1:1 with your rows.&lt;br /&gt;
&lt;br /&gt;
Then, when you create that new row item, you would need to set the dropdown value to whatever value you need. So, when the grid renders all available rows, the a!dropdownField value attribute per row will already be prepopulated.&lt;br /&gt;
&lt;br /&gt;
Using CDTs as an example, if my addRowLink is defined to append a new CDT to a CDT array representing my rows as something like:&lt;br /&gt;
&lt;br /&gt;
a!dynamicLink(saveInto:a!save(myRowCDT,append(myRowCDT, newRowItem))&lt;br /&gt;
&lt;br /&gt;
Then newRowItem would be defined with a type constructor as something like type!yourRowCDT(dropdownValue:&amp;quot;East US&amp;quot;...).&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>