<?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>Need help with AML query to connect two independent ItemTypes via referencing item</title><link>https://www.aras.com/community/f/development/55351/need-help-with-aml-query-to-connect-two-independent-itemtypes-via-referencing-item</link><description>Hi community, 
 I am working on an AML query but cannot find a proper solution. It contains a lot of custom ItemTypes, but technically the query would work similar like this: 
 
 START--------&amp;gt; Part ---------------------&amp;gt; Part BOM -------------------</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Need help with AML query to connect two independent ItemTypes via referencing item</title><link>https://www.aras.com/community/thread/10740?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 15:55:40 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:16fa5ccf-d2f6-4101-aff1-82f663969981</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Happy new year! If Aras doesn&amp;acute;t have any plans for 2026 yet - we would also need drill down reports on top of the reporting service (with and without federated data).&lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f60e.svg" title="Sunglasses"&gt;&amp;#x1f60e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Use case: The report shows a diagram with various measurement values. Some values ​​may not be within the specified limits.&amp;nbsp;Users shall be able to click the specific value in the diagram and it opens the digital twin item so they can see the complete data and history of the DUT.&lt;/p&gt;
&lt;p&gt;Important: In best case Aras allows admins to specify by them selves what happens when clicking the element (e.g. just show some additional information&amp;nbsp;inside a tooltip AND/OR&amp;nbsp;provide a link to&amp;nbsp;a specific item).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Basically we are right now work on the practical implementation of what Aras described in the last view blogs regarding digital twins :).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt;: I noticed that I mixed up the term &amp;quot;drilldown reports&amp;quot; with something else. Right now we mainly want to have more interactive diagrams. When I look at the current Innovator Report Service engine, I even have some ideas how to do it.&amp;nbsp;&lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f601.svg" title="Grin"&gt;&amp;#x1f601;&lt;/span&gt; &lt;br /&gt;I just share these kind of&amp;nbsp;ideas so they maybe inspire Aras&amp;nbsp;for even better ideas of what to do with the data. Working with digital twin data was never part of our roadmap. And now it&amp;acute;s the most requested feature.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help with AML query to connect two independent ItemTypes via referencing item</title><link>https://www.aras.com/community/thread/10714?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 14:22:55 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:3d5f5c41-aa64-4d1d-acc1-4d44bdd7031a</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi Eli,&lt;/p&gt;
&lt;p&gt;here some update: The warehouse view was a big hit and people love it! In the meantime a second use case showed up and I identified a scenario where Federated Data in Query Definitions will become EPIC.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-&amp;gt; &lt;strong&gt;Use Federated Data with the new Reporting Feature and show diagrams with federated data in the Dashboard!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Use case:&lt;/p&gt;
&lt;p&gt;Let&amp;acute;s assume we produce electronic products, and each device is tested after manufacturing. The testing process involves various methods, with voltage and current measurements being commonly included. Typically there is&amp;nbsp;a department responsible for these tests, which plans the tests and analyzes the results. For this purpose, there is dedicated hardware and software.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the phase of production ramp-up, additional stakeholders are interested in the test data as it provides valuable insights into the process and ensures everything is running as expected. Monitoring and analyzing the data closely allows any potential issues to be identified and resolved early, optimizing the production process.&lt;br /&gt;But not everybody has access to the test software and database so using federation to display test certain data in Innovator is an elegant solution.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I got the following request: &amp;#39;Please provide this and that data so I can export an Excel file and generate charts.&amp;#39;&lt;/p&gt;
&lt;p&gt;Yeah, the classic Excel approach.&lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f602.svg" title="Joy"&gt;&amp;#x1f602;&lt;/span&gt;&amp;nbsp;Of course, this is not how we handle it. Excel is not ideal because it only provides a snapshot of the data, lacks real-time monitoring, is prone to human error&amp;nbsp;and struggles with large datasets.&lt;/p&gt;
&lt;p&gt;One solution is to provide&amp;nbsp;some&amp;nbsp;diagrams and reports directly from the SQL Report Server. This works fine and people are happy. Of course the MS SQL Report Server only offers&amp;nbsp;&lt;span&gt;limited access control as it doesn&amp;acute;t honor the permission system of Innovator. But Query Definitions do!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This leads us to the new Aras Reporting features. The possibility to display charts in the dashboard would be the icing on the cake, cause people can have an instant live view to data of interest.&amp;nbsp;&lt;/span&gt;&lt;span&gt;In the simplest case, they just want to know how many&amp;nbsp;products have been tested&amp;nbsp;and how quickly. In other cases, they may need to monitor a specific component. These kind of view are perfect for&amp;nbsp; users who don&amp;#39;t primarily work in the testing department, but still need certain data, such as quality managers, engineers, product managers, manufacturing planning,...&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So if Aras don&amp;rsquo;t have any plans for 2025 yet - go for it! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help with AML query to connect two independent ItemTypes via referencing item</title><link>https://www.aras.com/community/thread/10661?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2024 17:49:32 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:a8546496-25c7-4234-88e9-25a1f6774d4b</guid><dc:creator>Eli Donahue</dc:creator><description>&lt;p&gt;I can check with the PM and architect for QD to see if we have any info to share. Using federated data in QD&amp;rsquo;s certainly sounds like a helpful use case.&lt;/p&gt;
&lt;p&gt;PS: &amp;ldquo;We have an item property at home&amp;rdquo; gave me a good laugh &lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f606.svg" title="Laughing"&gt;&amp;#x1f606;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help with AML query to connect two independent ItemTypes via referencing item</title><link>https://www.aras.com/community/thread/10660?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2024 17:09:08 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:60455ffa-bb00-477f-9894-d72e68fabe2f</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;I made some progress. I solved the original use case by making an additional SQL view. Not my favorite solution, but this way I was able to read the data with a much simpler AML query.&lt;/p&gt;
&lt;p&gt;But this topic is still a rabbit hole regarding the query definition.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I so far didn&amp;acute;t succeed in using my federated ItemType inside&amp;nbsp;a QD.&amp;nbsp;Even if I create a completely new QD with just the Federated ItemType I get the &amp;quot;&lt;span&gt;&amp;lt;faultstring&amp;gt;Item attribute &amp;#39;itemTypeName&amp;#39; not set !&amp;lt;/faultstring&amp;gt;&amp;quot; error message.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And I think I know the reason. QDs work different than the Grid. Right know my federation onGet query is optimized for the classic &amp;quot;Grid - Relationship - Form&amp;quot; trinity.&amp;nbsp;But QDs work different, as they support more additional functionality like levels and reverse properties. My Federated ItemType cannot work, cause it doesn&amp;#39;t provide the data that a QD needs. I right now just return the regular item structure but QDs works a lot with references.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="/community/members/eli_5f00_donahue"&gt;Eli Donahue&lt;/a&gt;&amp;nbsp;Do you know if there is any information of the basic data structure a Query Definition uses when pulling data? It&amp;acute;s not an important topic right now, but I see a lot of fun use cases for these kind of queries.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help with AML query to connect two independent ItemTypes via referencing item</title><link>https://www.aras.com/community/thread/10649?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2024 13:22:50 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:291bf8c3-6cf0-41ef-9608-a14873673549</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi Eli,&lt;/p&gt;
&lt;p&gt;thanks for the ideas! I made some progress and at the same time you opened Pandora&amp;#39;s&amp;nbsp;box.&lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f602.svg" title="Joy"&gt;&amp;#x1f602;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The original idea was that I reuse my custom &amp;quot;all-purpose-all-in-one view&amp;quot;.&amp;nbsp;It&amp;acute;s a single Method that renders the result of an AML query to a simple table in a pop-up window. See following example. It uses a AML query to collect all documents hidden in the multiple BOM levels:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/community/resized-image/__size/640x480/__key/communityserver-discussions-components-files/3/pastedimage1731924537788v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;That&amp;acute;s why I asked for the plain AML query - cause I wanted to use the same building technique to &amp;quot;save time&amp;quot; (worked well so far&lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f604.svg" title="Smile"&gt;&amp;#x1f604;&lt;/span&gt;).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As this kind of rendering is basically a simplified&amp;nbsp;QD/TGV clone, there is of course nothing wrong with using the original QD/TGV combo. The resulting view is basically the same and QDs can deal with referencing items. Perfect!&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Quote:&amp;nbsp;Out of curiosity - do you have any constraints preventing you from using a Query Definition in this scenario?&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;There were none - before I tested it. In my environment it doesn&amp;#39;t work, but it&amp;acute;s not the fault of Innovator. It&amp;acute;s my federated data that I pull via an onGet query.&lt;/p&gt;
&lt;p&gt;My current federation solution is optimized to display federated data in the client (including grid relevant functionality like filter options, paging, etc.). See:&amp;nbsp;&lt;a href="https://www.aras.com/community/f/development/38238/best-way-to-highlight-fully-federated-data-in-grids-and-views"&gt;Best way to highlight (fully) federated data in grids and views?&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now I learned that my federated data isn&amp;#39;t perfect enough for AML queries. My &amp;quot;crafted&amp;quot; item properties&amp;nbsp;mainly consist&amp;nbsp;of id and keyed_name. With id and keyed_name they work as clickable links in grid and Forms, but they doesn&amp;#39;t work in QDs.&lt;br /&gt;I think we can tell the reason when we look a the data structure of similar ItemTypes (like Manufacturer Part with the Manufacturer item property). Typically item properties use a bit more data:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/community/resized-image/__size/640x480/__key/communityserver-discussions-components-files/3/pastedimage1731929392106v4.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am right now a bit unsure of what to do.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Use an&amp;nbsp;additional server Method (as you suggested)&lt;br /&gt;- Rework my federation solution so I can use QD?&lt;br /&gt;- Make an additional federated view that already contains all the data?&lt;br /&gt;-&amp;nbsp;I also got some ideas from another community member that I don&amp;acute;t need to over engineer everything and there is nothing wrong in using more than one AML query to get the data.&lt;/p&gt;
&lt;p&gt;I think I&amp;#39;ll let the problem sit for a while and hope it resolves itself.&amp;nbsp; It&amp;acute;s a fun challenge, but it&amp;acute;s just there because my users are spoiled. In the past people would have been totally fine&amp;nbsp;with an SSRS report for this kind of view.&lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f602.svg" title="Joy"&gt;&amp;#x1f602;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: In QD I right now get following error message when testing the query:&amp;nbsp;&lt;span&gt; &amp;lt;faultstring&amp;gt;Item attribute &amp;#39;itemTypeName&amp;#39; not set !&amp;lt;/faultstring&amp;gt; . In only appear when my custom federated ItemType is included. For testing purposes I added various additional attributes, but couldn&amp;acute;t get rid of the error message.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help with AML query to connect two independent ItemTypes via referencing item</title><link>https://www.aras.com/community/thread/10643?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 13:57:16 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:678cc0a4-e5b5-47c6-8da6-eee6dbd5b559</guid><dc:creator>Eli Donahue</dc:creator><description>&lt;p&gt;Hi Angela,&lt;/p&gt;
&lt;p&gt;AML itself doesn&amp;rsquo;t really have the joining capability you&amp;rsquo;d need here. A query definition would probably be the simplest approach to this type of query.&lt;/p&gt;
&lt;p&gt;If you can&amp;rsquo;t use a QD in this scenario, I&amp;rsquo;d try creating a custom server method to use as an AML action.&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&amp;lt;Item type=&amp;ldquo;Part&amp;rdquo; action=&amp;ldquo;GetBomWarehouseData&amp;rdquo; id=&amp;ldquo;...&amp;rdquo; /&amp;gt;&lt;/pre&gt;
&lt;p&gt;That approach would enable you to include any additional you need in the AML response.&lt;/p&gt;
&lt;p&gt;Out of curiosity - do you have any constraints preventing you from using a Query Definition in this scenario?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>