<?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>Displaying data from two different CDT&amp;#39;s in a single grid</title><link>https://community.appian.com/discussions/f/user-interface/24657/displaying-data-from-two-different-cdt-s-in-a-single-grid</link><description>I am working on a questionnaire application in which a question can be set as a parent and it can have multiple child questions. 
 I have created two different tables, one to hold parent questions and the other one to hold child questions. Also, I have</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Displaying data from two different CDT's in a single grid</title><link>https://community.appian.com/thread/95329?ContentTypeID=1</link><pubDate>Fri, 20 May 2022 11:54:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ef53184-fdad-4d08-b83c-d81f73a6db43</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;looks like ,its difficult in the same editable grid. but you can manage two editable grids side by side. one for parent and&amp;nbsp; one for child&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Displaying data from two different CDT's in a single grid</title><link>https://community.appian.com/thread/95320?ContentTypeID=1</link><pubDate>Fri, 20 May 2022 09:26:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:67e70332-91c7-4b48-a65b-f73f16b9ed19</guid><dc:creator>Ram Kumar Narayanasamy</dc:creator><description>&lt;p&gt;Hi Gopal,&lt;/p&gt;
&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;Yes, I have configured foreign key relationship between the tables.&lt;/p&gt;
&lt;p&gt;Currently, I am fetching parent questions from table to a local variable and child questions to a different local variable.&lt;/p&gt;
&lt;p&gt;I am displaying all parent questions using foreach in a grid layout and currently it gets displayed as below. Since both child and parent questions are of two different CDT&amp;#39;s, I am unable to&amp;nbsp;combine them both in a single foreach and display it in a single grid layout.&lt;/p&gt;
&lt;p&gt;S.No | Question &lt;br /&gt;1.&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Parent Question 1&lt;br /&gt;2.&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; Parent Question 2&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s say for example, Question 1 has two child questions, I want it to be displayed as below&lt;/p&gt;
&lt;p&gt;S.No | Question &lt;br /&gt;1.&amp;nbsp; &amp;nbsp; &amp;nbsp; | Parent Questions 1&lt;br /&gt;1.1&amp;nbsp; &amp;nbsp; | Child Question1 of Parent 1&lt;br /&gt;1.2&amp;nbsp; &amp;nbsp; | Child Question 2 of Parent 1&lt;br /&gt;2.&amp;nbsp; &amp;nbsp; &amp;nbsp; | Parent Question 2&lt;/p&gt;
&lt;p&gt;Please let me know if this can be achieved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Displaying data from two different CDT's in a single grid</title><link>https://community.appian.com/thread/95315?ContentTypeID=1</link><pubDate>Fri, 20 May 2022 07:52:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e285fddb-ee72-4428-a063-c272b942eabe</guid><dc:creator>GopalK</dc:creator><description>&lt;p&gt;Hi Ram, have you configured foreign key between these two tables? If yes then query your child table in a local variable. And when you are showing parent table questions ,there you can filter out child questions based on parent id from child table output data. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>