<?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 can i populate a dropdown field with the database table&amp;#39;s  column values</title><link>https://community.appian.com/discussions/f/user-interface/1932/how-can-i-populate-a-dropdown-field-with-the-database-table-s-column-values</link><description>How can i populate a dropdown field with the database table&amp;#39;s column values.... OriginalPostID-96558 OriginalPostID-96558</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How can i populate a dropdown field with the database table's  column values</title><link>https://community.appian.com/thread/47600?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2017 11:29:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d3eb60f8-6c93-473c-8300-ddc9a01d29b0</guid><dc:creator>Shivam Gupta</dc:creator><description>Instead of query rule, GO with Query Entity and fetch the column content you want to fetch as it will enhance the performance of your application.&lt;br /&gt;
Suppose you have a table{categoriesOfFood, foodId}, write a expression rule to query Db using query entity.&lt;br /&gt;
and than use the expression rule in the choiceValues parameter of the a!dropDown component&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i populate a dropdown field with the database table's  column values</title><link>https://community.appian.com/thread/47597?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2017 10:26:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:06821972-278c-455c-ae72-574307059b8d</guid><dc:creator>Alok Patro</dc:creator><description>if you are specific about a column ,, Use a query entity rather than a query rule. &lt;br /&gt;
You should only use query rules when you need values of all the columns of the table.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i populate a dropdown field with the database table's  column values</title><link>https://community.appian.com/thread/47564?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 15:43:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8ab8a37b-d6ae-43a1-a8d5-5111aa16709d</guid><dc:creator>nareshc647</dc:creator><description>I agree with Jacob Grafenstein.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i populate a dropdown field with the database table's  column values</title><link>https://community.appian.com/thread/47561?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 15:06:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2050e2d9-3c2d-4036-bd16-ac337762245c</guid><dc:creator>Jacob Grafenstein</dc:creator><description>&lt;p&gt;To expand on Sathya&amp;#39;s comment, you can create a query rule that pulls a list of CDTs from the database. Within your dropdown field, set the choiceLabels to be the text values for each CDT using: &lt;br /&gt; &lt;br /&gt; index([list of CDTs], [column name], {})&lt;br /&gt; &lt;br /&gt; Set the choiceValues in a similar way. Assuming you&amp;#39;d like to store a lookup value in your database, the field in your CDT would be the primary key from the database. &lt;br /&gt; &lt;br /&gt; index([list of CDTS], [primary key field], {})&lt;br /&gt; &lt;br /&gt; Hope this helps anyone who sees this thread in the future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i populate a dropdown field with the database table's  column values</title><link>https://community.appian.com/thread/6835?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2014 18:06:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a20e160a-0951-460d-af79-62b317f1caa1</guid><dc:creator>Sathya Srinivasan</dc:creator><description>Use a query rule to fetch the data and use the dot (.) notation to query the corresponding column from the returned CDT.&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>