<?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>Display data from database view into interface</title><link>https://community.appian.com/discussions/f/new-to-appian/28889/display-data-from-database-view-into-interface</link><description>Hi Team, 
 
 How do we display the database view data in the interface. What all related components do we need to create, like to retrieve data from table we create datatype and expression rule etc?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Display data from database view into interface</title><link>https://community.appian.com/thread/113882?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2023 12:23:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ede863f5-a0a7-4d17-92ec-0fd15487dcb5</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Amazing. Please consider verifying the answer so anyone else facing the same problem can directly look at the working solution&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display data from database view into interface</title><link>https://community.appian.com/thread/113881?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2023 12:21:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b69e0229-c78e-4681-b4d6-cf6da7bde978</guid><dc:creator>Purvaja</dc:creator><description>&lt;p&gt;Thank you &lt;/p&gt;
&lt;p&gt;Created the PK column and this is resolved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display data from database view into interface</title><link>https://community.appian.com/thread/113879?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2023 12:08:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a79e091e-f243-4b02-bbb2-2a9d1342e5cf</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Every CDT-mapped table/view has to have a primary key column or a unique column that can be treated as a primary key column. You need to alter the view definition to include a new incremental int column that you&amp;#39;ll treat as a PK column.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display data from database view into interface</title><link>https://community.appian.com/thread/113877?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2023 12:03:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68036ff7-0414-427f-9f1c-625660036ab3</guid><dc:creator>Purvaja</dc:creator><description>&lt;p&gt;It is saying &amp;quot;a_id&amp;quot; is missing&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The data source schema does not match the type mappings: Schema-validation: missing column [a_id] in table [`View name`]&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Steps performed:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. Created a view&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Created a CDT with the DB view.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. Now, trying to add this CDT to the Datastore. It is giving the above error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you please help here.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="display:none;" id="highlighter--hover-tools"&gt;
&lt;div id="highlighter--hover-tools--container"&gt;
&lt;div class="highlighter--icon highlighter--icon-copy" title="Copy"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-change-color" title="Change Color"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-delete" title="Delete"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display data from database view into interface</title><link>https://community.appian.com/thread/113876?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2023 11:58:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2b861684-fa8b-4c57-88d1-f7f149c7d26d</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;That is probably because the field names or something do not matches. You can click on the &amp;quot;More info&amp;quot; link towards the end of the line to understand what is wrong.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display data from database view into interface</title><link>https://community.appian.com/thread/113875?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2023 11:56:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cfea56d4-0f74-4999-b53a-6ea2d4deb080</guid><dc:creator>Purvaja</dc:creator><description>&lt;p&gt;When we are adding the CDT that we have created from the DB view to the data store, it is showing as create to the table in the data store.&lt;/p&gt;
&lt;p&gt;Can you please tell what to do here?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="display:none;" id="highlighter--hover-tools"&gt;
&lt;div id="highlighter--hover-tools--container"&gt;
&lt;div class="highlighter--icon highlighter--icon-copy" title="Copy"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-change-color" title="Change Color"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-delete" title="Delete"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display data from database view into interface</title><link>https://community.appian.com/thread/113872?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2023 11:49:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0a268c71-cec9-49ba-a0cb-7204608059da</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Add it to the DataStore, and create a constant that points to the newly added DSE. Create an expression rule and use a!queryEntity() function to query the data and finally use the ER in an interface to show the data in a grid.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display data from database view into interface</title><link>https://community.appian.com/thread/113870?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2023 11:33:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee1fa264-5125-4803-b085-b00538d90bc2</guid><dc:creator>Purvaja</dc:creator><description>&lt;p&gt;Thank you,&amp;nbsp;that CDT should be add it to the data store?&lt;/p&gt;
&lt;p&gt;How do we mention the entity in the expression rule?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="display:none;" id="highlighter--hover-tools"&gt;
&lt;div id="highlighter--hover-tools--container"&gt;
&lt;div class="highlighter--icon highlighter--icon-copy" title="Copy"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-change-color" title="Change Color"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-delete" title="Delete"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="display:none;" id="highlighter--hover-tools"&gt;
&lt;div id="highlighter--hover-tools--container"&gt;
&lt;div class="highlighter--icon highlighter--icon-copy" title="Copy"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-change-color" title="Change Color"&gt;&lt;/div&gt;
&lt;div class="highlighter--icon highlighter--icon-delete" title="Delete"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display data from database view into interface</title><link>https://community.appian.com/thread/113869?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2023 11:32:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f1328f4-8cc4-4b12-84a1-dad8e9c1cf41</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span class="user-name"&gt;&lt;a class="internal-link view-user-profile" href="/members/purvajab0002"&gt;Purvaja&lt;/a&gt;,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="user-name"&gt;You will need a CDT, Expression rule that queries your data and an Interface. If you just want to display your data with no particular UI requirements, you can use a read only grid. You can use records as well but there might be a sync issue since you will be using view.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>