Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

FirstOnly query property

$
0
0

Hi all

Running AX 2012 R3 CU9.

Have spent a long time with workarounds for this in various projects because I can't get the simple methods to work.

I have created a small simple query to show the problem I'm having. See below query TEE_FirstConfirmation linking SalesLine parent table with CustConfirmTrans child table :

As you can see I've selected "firstOnly" property (on both of these data sources, though I've also tried only header and only footer). But when I look at an order which has multiple CustConfirmTrans records, it's still splitting and giving me multiple CustConfirmTrans.

I need a way of selecting only the first CustConfirmTrans record - currently I use a view which fetches the first record in behaviour similar to a subquery, but that small complication magnifies into long wait times on reports with multiple similar joins.

I'm so sure there must be something simple I'm missing on such a common use case. Any help would be much appreciated

Thanks very much in advance

Luke


Viewing all articles
Browse latest Browse all 143529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>