<?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 to display data in record type from two tables?</title><link>https://community.appian.com/discussions/f/general/13033/how-to-display-data-in-record-type-from-two-tables</link><description>I want to display data in single record type from multiple tables</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/60079?ContentTypeID=1</link><pubDate>Fri, 07 Sep 2018 10:48:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48b64e4f-7a30-4ce2-b21d-978895b5ad66</guid><dc:creator>Preji P</dc:creator><description>Hi there,&lt;br /&gt;
As suggested by others, you can create the View of the tables(one or more) you want to pull data from, but would like to add one more important point here.&lt;br /&gt;
&lt;br /&gt;
This view should have at least one primary key column, other wise when you try to publish the data store entity it will error out and you would not able to proceed,.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58936?ContentTypeID=1</link><pubDate>Wed, 08 Aug 2018 22:29:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a7dafe21-b84b-4cbe-9d08-d2c5e8dfab35</guid><dc:creator>aloks0189</dc:creator><description>&lt;p&gt;Hi Shoaib&lt;/p&gt;
&lt;p&gt;Can you please attach the screenshot of your record configuration as well as your CDT structure so that it will be easy to understand the root cause.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58933?ContentTypeID=1</link><pubDate>Wed, 08 Aug 2018 19:42:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4fcbfb42-b6b7-4941-ac66-df02045fc54c</guid><dc:creator>hedn89</dc:creator><description>Hi Shoaib,&lt;br /&gt;
&lt;br /&gt;
can you pls upload screenshots of your query and the record definition. The error says that the index(1) is empty, which suggests that the data is empty and you are trying to pull one record from it.&lt;br /&gt;
&lt;br /&gt;
check your query rule if you&amp;#39;re getting the data or datasubset?&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58931?ContentTypeID=1</link><pubDate>Wed, 08 Aug 2018 18:55:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:220e12f8-677a-4bd0-af42-1957a16f055a</guid><dc:creator>Shoaib</dc:creator><description>HI aloks176 ,&lt;br /&gt;
Thank You very much for helping me out. I am able to get the data from the view via query(for RECORD TYPE), now I am getting this error in Record List of the Record Type&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Error Evaluating UI Expression&lt;br /&gt;
Invalid index (1) for list: valid range is empty&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Can you kindly help me fix this error?&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Shoaib&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58801?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 22:50:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d3bdd4bf-18d6-4596-9e39-371de152293c</guid><dc:creator>aloks0189</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/muhammads0001"&gt;Shoaib&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Can you please download the xsd of your CDT and check whether @entity annotation refers to the same view which you have created in DB or not.&lt;/p&gt;
&lt;p&gt;Also if this doesn&amp;#39;t work, try downloading the DDL script from Data store entity design object and check the view name it&amp;#39;s going to create and check whether this name and your view name matches or not. &lt;/p&gt;
&lt;p&gt;Also make sure, you have created the view under the same schema which is linked to your data store entity design object.&lt;/p&gt;
&lt;p&gt;Still if you are unable to resolve this issue, I recommend, please upload your CDT here as well as your View name ( AVAILABLE in DB) so that practitioner can help you to resolve this issue.&lt;/p&gt;
&lt;p&gt;Also make sure, you have defined any one of the field of your CDT field as Primary key (but not Auto Increment) otherwise, while publishing the data store it will create a column named as Id (Primary key)&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58797?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 20:42:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca0333c2-bb95-4a8e-b6d9-8b524bd45570</guid><dc:creator>Shoaib</dc:creator><description>Hi Namrata, &lt;br /&gt;
I have successfully created a view in database and a CDT for this view, but I am having trouble linking this CDT with the View. Can you please tell me how to add this View in DSE? cause when I add entity with this new CDT in DSE it creates a new table instead of linking it with the view that I have created in the Database&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58796?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 20:41:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:31887cab-dc35-48cc-bfd7-2e549732c09d</guid><dc:creator>Shoaib</dc:creator><description>Hi Sindhum, I have successfully created a view in database and a CDT for this view, but I am having trouble linking this CDT with the View. Can you please tell me how to add this View in DSE? cause when I add entity with this new CDT in DSE it creates a new table instead of linking it with the view that I have created in the Database&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58746?ContentTypeID=1</link><pubDate>Sat, 04 Aug 2018 14:09:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3a755385-ef3f-4a81-b949-107db46dc5c2</guid><dc:creator>Arpit Bhargava</dc:creator><description>There are two options to do it&lt;br /&gt;
&lt;br /&gt;
1. Create a view for the record in which you can have the join on the tables.&lt;br /&gt;
2. You can also create the Store Procedure to fetch the data for the different tables.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58738?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 19:48:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c2d48b00-a43a-42ec-8c09-9f4dd0595eb6</guid><dc:creator>Shoaib</dc:creator><description>Thank you very much everyone, I am gonna try the solution and will post an update!&lt;br /&gt;
&lt;a href="/members/sindhum950"&gt;sindhum950&lt;/a&gt;  &lt;a href="/members/sharayut"&gt;sharayut&lt;/a&gt; &lt;a href="/members/namratak356"&gt;namratak356&lt;/a&gt; &lt;a href="/members/abhishekk109"&gt;abishekk109&lt;/a&gt;  &lt;a href="/members/aratim"&gt;aratim&lt;/a&gt; &lt;a href="/members/saurabhswarajyap"&gt;saurabhswarajyap&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58711?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 09:13:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2420bb59-1935-48fb-ba27-d3cb31d68a33</guid><dc:creator>saurabhp0002</dc:creator><description>As suggested by many, View is the only option to achieve it where as we should be logical while doing so. we should always make use of relevant join to reduce the count and data. As if it has lot many user filters and &lt;a href="/discussions/f/general/tags/of" class="tag hash-tag" data-tags="of"&gt;#of&lt;/a&gt; rows in view is high, it might result in slow performance as compared to Table.&lt;br /&gt;
it is always advisable to create the record type from table and record summary can have relevant data from various tables which may result in # of transactions but better performance.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58710?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 09:11:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f40b3ec0-9a93-4a75-9189-ef47595d9367</guid><dc:creator>aratim</dc:creator><description>Hi Muhammad,&lt;br /&gt;
&lt;br /&gt;
I agree with the comment of other practitioners. Create a view with all the columns you need from 2 tables.&lt;br /&gt;
And using CDT, display the data in grid.&lt;br /&gt;
Thanks.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58705?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 07:31:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cf1dd659-9df9-4271-bd66-14f77898e4fd</guid><dc:creator>josep</dc:creator><description>Definitely as other said creating a view is that way to do it. &lt;br /&gt;
Something to note here is that when using views it is easier if you map the data using the cdt without annotations Fields as “length” or “type”.  It is better just to use the names. This is because in a view the data type is inferred and not defined&lt;br /&gt;
&lt;br /&gt;
Jose&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58701?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 06:57:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f000423b-06b9-4d56-899c-81341f7fbf78</guid><dc:creator>abishekk109</dc:creator><description>Create a relational view considering both the tables and use the view to create a record.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Abishek&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58690?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 05:35:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6cd9ab7a-eab4-48a8-bb57-b018d6adac2e</guid><dc:creator>namratak356</dc:creator><description>Hi Muhammad,&lt;br /&gt;
&lt;br /&gt;
 As suggested, you can create view in database and its corresponding cdt in Appian, Record type will point to View Datastore Entity,&lt;br /&gt;
View definition will contain data from both tables, you can make use of Analytical function in SQL if table has one to many relationship.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Namrata&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58688?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 05:11:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5a492346-c93d-448b-b3d4-e883890fa245</guid><dc:creator>sharayut</dc:creator><description>Hi Muhammad,&lt;br /&gt;
As everyone in the above comments have suggested you need a to create a view with all the columns you require from the both the tables. With the help of view you can get data and display it on you record.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58686?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 04:13:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e7b99127-beb8-45a4-a9ae-ec114214581f</guid><dc:creator>krishnau3863</dc:creator><description>Hi muhammads0001,&lt;br /&gt;
&lt;br /&gt;
                    As Fellow practitioner said you have to create a view for the selected columns from the respective tables.&lt;br /&gt;
                    For better understanding follow the below link&lt;br /&gt;
                    &lt;a href="https://docs.appian.com/suite/help/18.2/Records_Tutorial.html#create-entity-backed-records"&gt;docs.appian.com/.../Records_Tutorial.html&lt;/a&gt;&lt;br /&gt;
                    &lt;a href="https://community.appian.com/w/the-appian-playbook/191/using-database-views"&gt;community.appian.com/.../using-database-views&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Krishna&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to display data in record type from two tables?</title><link>https://community.appian.com/thread/58685?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 02:39:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8a5fa0d2-6445-4cf2-9882-2463dfeddff7</guid><dc:creator>sindhum950</dc:creator><description>Hi Muhammad,&lt;br /&gt;
&lt;br /&gt;
Please create a view in the database, which will get data from both the tables.&lt;br /&gt;
Then create a CDT for that view.&lt;br /&gt;
Then create the data store entity and use that for creating the record (Entity backed record)&lt;br /&gt;
&lt;br /&gt;
This way, the record will have the data from both the tables. Please let me know if this works.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Sindhu&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>