<?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>Fetch details in Interface from database</title><link>https://community.appian.com/discussions/f/user-interface/19309/fetch-details-in-interface-from-database</link><description>I am trying to fetch details in Interface for displaying purpose from database. I don&amp;#39;t know where am missing something. If someone can help. I have called the CDT as RI. 
 
 a!textField( label: &amp;quot;Address&amp;quot;, labelPosition: &amp;quot;JUSTIFIED&amp;quot;, value: ri!CompanyInformation</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Fetch details in Interface from database</title><link>https://community.appian.com/thread/75652?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2020 02:05:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:43ae69fc-9460-48ba-93c0-4df74e350af0</guid><dc:creator>legotx</dc:creator><description>&lt;p&gt;What is the error? You need to provide the error or the output in order for us to visualize what the problem is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetch details in Interface from database</title><link>https://community.appian.com/thread/75590?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2020 06:22:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e7c30a3-0702-4b02-9358-edb897ab6d02</guid><dc:creator>akshayg0006</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetch details in Interface from database</title><link>https://community.appian.com/thread/75589?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2020 06:22:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:93e83db0-d549-4313-9b52-c6bf4b2066ac</guid><dc:creator>akshayg0006</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetch details in Interface from database</title><link>https://community.appian.com/thread/75559?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 15:01:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7f2ff4b6-e7b0-4e21-84cd-be099a917246</guid><dc:creator>GauravSingh</dc:creator><description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Just have a look on these topics you will get to know how u can fetch data from DB and store it in a localVariable. And then using that local variable u can display the data in grid.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Query_Recipes.html"&gt;https://docs.appian.com/suite/help/19.1/Query_Recipes.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Grid_Tutorial.html"&gt;https://docs.appian.com/suite/help/19.1/Grid_Tutorial.htm&lt;/a&gt;l&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetch details in Interface from database</title><link>https://community.appian.com/thread/75551?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 07:02:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ec9a6f1-aeee-446c-82aa-775f3d98bae4</guid><dc:creator>Ashwin </dc:creator><description>&lt;p&gt;In your RI you have mapped a CDT so you need to i=enter values into RI to show the values on form&amp;nbsp;&lt;/p&gt;
&lt;p&gt;else you can use expression rule to fetch the data from DB and use that rule into interface and call that in a local variable and then print it&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;example:-&lt;/p&gt;
&lt;p&gt;load(&lt;/p&gt;
&lt;p&gt;local!data: rule!name if the expression rule&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;a!textField(&lt;/span&gt;&lt;br /&gt;&lt;span&gt;label: &amp;quot;Address&amp;quot;,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;labelPosition: &amp;quot;JUSTIFIED&amp;quot;,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;value: localdata.Address,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;saveInto: localdata.Address,,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;refreshAfter: &amp;quot;UNFOCUS&amp;quot;,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;readonly: true,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;validations: {}&lt;/span&gt;&lt;br /&gt;&lt;span&gt;),&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;try this&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetch details in Interface from database</title><link>https://community.appian.com/thread/75549?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 20:49:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:beab514f-6943-4353-89ec-2eeb4380589b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I can&amp;#39;t really tell what you&amp;#39;ve tried, but you need to query the data from the database within Appian before you can display it on a form.&amp;nbsp; If the form is to be used in a process model, a typical way to do this is to query the data into a Process Variable and then pass that information into the interface as a Rule Input (ri!) variable.&amp;nbsp; Another way would be to query the data directly on your form, into a local variable.&amp;nbsp; It all depends on what you&amp;#39;re trying to do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>