<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/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>Can&amp;#39;t map query elements in tree grid view</title><link>https://www.aras.com/community/f/development/6490/can-t-map-query-elements-in-tree-grid-view</link><description>Hi, 
 I have been trying to solve a problem I have with using the tree grid views. I can&amp;#39;t seem to map certain elements. I wanted to make a recursive tree grid view based on a relation to a poly item where both poly sources had a relationship to the poly</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Can't map query elements in tree grid view</title><link>https://www.aras.com/community/thread/3840?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 06:55:41 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:d4f92ad2-151a-4954-85fe-8c49b5cdde3b</guid><dc:creator>RickP</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately it didn&amp;#39;t work for me, it seems like it made one of the items &amp;quot;jump&amp;quot; out of its place in the structure instead. Since my programming experience is limited, I don&amp;#39;t know if I have any useful suggestions to offer.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Rick&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/3/pastedimage1572418366510v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't map query elements in tree grid view</title><link>https://www.aras.com/community/thread/3834?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2019 16:11:51 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:aeae87a5-015e-459e-a4a0-ca31701871bc</guid><dc:creator>Alexander Burkhardt</dc:creator><description>&lt;p&gt;Hi Rick,&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve encountered the same issue and implemented a possible fix for this. I&amp;#39;ve not tested it completely but it looks good so far (=&lt;br /&gt;Could you test the fix on a development environment and check if it solves your problem?&lt;br /&gt;&lt;br /&gt;Two code tree files have to be modified to enable the tree grid view editor to map multiple elements pointing to the same recursion starting point (the files are from an ootb aras innovtor 11 sp 14 installation):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;\Innovator\Client\Modules\aras.innovator.TreeGridView\Scripts\Configurator\Models\QueryDefinition\QueryReferenceModel.js&lt;/strong&gt;&lt;br /&gt;Here I added a setter to the already existing getter for the property &lt;em&gt;parentRefId&lt;/em&gt; on &lt;em&gt;QueryReferenceModel&amp;nbsp;&lt;/em&gt;object as shown below:&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/3/pastedimage1572364488144v1.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;\Innovator\Client\Modules\aras.innovator.TreeGridView\Scripts\Configurator\DataLayer\BranchBuilder.js&lt;/strong&gt;&lt;br /&gt;Here is the main fix. The&amp;nbsp;&lt;em&gt;parentRefId&lt;/em&gt; property from&amp;nbsp;&lt;em&gt;recQueryReference&lt;/em&gt; object is not always the same as the &lt;em&gt;_queryItemRefId&lt;/em&gt; property from &lt;em&gt;lowLevelTreeRow&lt;/em&gt; object. This is caused by storing the query items in a dictionary where the key is the refId to the recursion query element. So when the first recursion is mapped, everything is fine, but if another recursion will be defined to the same recursion source object the dictionary will return the wrong query item:&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/3/pastedimage1572365411616v2.png" /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Let me know, if you have further&amp;nbsp;questions or suggestions on this!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Alex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>