>The tables link but I get duplicates when I run the query in a Report.
>I get EMPLID listed 3 times, it was 4 but I place a group by on Parent Table hence now 3.
In AX troubleshooting reports could be difficult. My advise would be to check the datasources for each section group in your report. BTW the purpose of the *GROUP BY* option in the report query is there to allow you to apply aggregate functions on the sected datasource.
>I use an INNERJOIN. Does anyone know how to do a select distinct (sort of speak)?
In X++ there is no DISTINCT, but you can use group by instead.
I guess you wouldn't need/miss DISTINCT most of the time.
>I have a method NumberOfMaxWorkHours under HRMPartyEmployeeRelationsh
>How can i call this for an employee from ReportHelper.cs?
You need the Dynamics AX .Net Business Connector for this.
If you already have it, you need to add a reference to the Microsoft.Dynamics.Busines
See the code example below.
Regards,
QK
Main Topics
Browse All Topics





by: AuswayPosted on 2009-10-06 at 23:26:42ID: 25512592
Hello,
ip table in AOT.
I have a method NumberOfMaxWorkHours under HRMPartyEmployeeRelationsh
How can i call this for an employee from ReportHelper.cs?
Thanks in anticipation