<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Custom Query report problem (Thread)</title><description>&#xD;
I can't use select inside select in my query!&#xD;
&#xD;
    As an example:  select   R.name as NAME,   R.DESCRIPTION,             (select E.name         from  SpiraTestEntities.R_CustomListValues as E           join SpiraTestEntities.R_Incidents as A on A.PROJECT_ID = E.PROJECT_ID           where A.CUST_03 = cast(E.CUSTOM_PROPERTY_VALUE_ID as string) and E.CUSTOM_PROPERTY_LIST_ID = 11) as AREA    from SpiraTestEntities.R_Incidents as R   where R.PROJECT_GROUP_ID = ${ProjectGroupId}     This query gives AREA as  System.Data.Query.ResultAssembly.BridgeDataReader and all other fields as they should.   Both selects work when not combined.   I have to make a query with 2 of these selects inside a select to get values in place of IDs.      How is one suposed to get actual values into a report when using multiple custom fields? </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spiratest/issues-questions/1254.aspx</link><item><guid isPermaLink="false">threadId=1254</guid><author>Teemu Karvinen (teemu.karvinen@s-factory.fi)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">reporting</category><title>Custom Query report problem</title><description>&#xD;
I can't use select inside select in my query!&#xD;
&#xD;
    As an example:  select   R.name as NAME,   R.DESCRIPTION,             (select E.name         from  SpiraTestEntities.R_CustomListValues as E           join SpiraTestEntities.R_Incidents as A on A.PROJECT_ID = E.PROJECT_ID           where A.CUST_03 = cast(E.CUSTOM_PROPERTY_VALUE_ID as string) and E.CUSTOM_PROPERTY_LIST_ID = 11) as AREA    from SpiraTestEntities.R_Incidents as R   where R.PROJECT_GROUP_ID = ${ProjectGroupId}     This query gives AREA as  System.Data.Query.ResultAssembly.BridgeDataReader and all other fields as they should.   Both selects work when not combined.   I have to make a query with 2 of these selects inside a select to get values in place of IDs.      How is one suposed to get actual values into a report when using multiple custom fields? </description><pubDate>Fri, 17 Jul 2015 07:07:22 -0400</pubDate><a10:updated>2015-07-27T09:40:35-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1254.aspx</link></item><item><guid isPermaLink="false">messageId=2249</guid><author>David J (adam.sandman+support@inflectra.com)</author><title>&#xD;
Hi Teemu  I would use a join rather than sub-select as illustrated here:  https://www.inflectra.co</title><description>&#xD;
Hi Teemu  I would use a join rather than sub-select as illustrated here:  https://www.inflectra.com/Support/KnowledgeBase/KB74.aspx   Regards  Adam &#xD;
&#xD;
</description><pubDate>Tue, 21 Jul 2015 14:43:19 -0400</pubDate><a10:updated>2015-07-21T14:43:19-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1254.aspx#reply2249</link></item><item><guid isPermaLink="false">messageId=2251</guid><author>Teemu Karvinen (teemu.karvinen@s-factory.fi)</author><title>&#xD;
Thanks!&#xD;
&#xD;
    I got it working with join. </title><description>&#xD;
Thanks!&#xD;
&#xD;
    I got it working with join. </description><pubDate>Wed, 22 Jul 2015 05:24:44 -0400</pubDate><a10:updated>2015-07-22T05:24:44-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1254.aspx#reply2251</link></item><item><guid isPermaLink="false">messageId=2257</guid><author>Teemu Karvinen (teemu.karvinen@s-factory.fi)</author><title>Hi!    I can't get project name in top of my report to change to project group name.  Is that possib</title><description>Hi!    I can't get project name in top of my report to change to project group name.  Is that possible?     I tryed to edit Standard Section like this:                Project Group  :                       but I don't know where this select is so it could be edited. Is there something I should change in 'match="/ProjectData/Project"'?    </description><pubDate>Mon, 27 Jul 2015 09:40:35 -0400</pubDate><a10:updated>2015-07-27T09:40:35-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1254.aspx#reply2257</link></item></channel></rss>