Hello Guys, I have a question.... I need to created a report in AX 2012 R2...
I already know how to create the report and how to do everything in visual studio but each time I do it am only getting data form the first table(datasource) in the query...
These are the tables am using: USTINVOICEJOUR, CUSTTRANS, CUSTSETTLEMENT
This is the query in SQL which works fine....
SELECT [INVOICEID] ,[INVOICEACCOUNT] ,[INVOICINGNAME] ,[CUSTSETTLEMENT].DUEDATE ,[CUSTSETTLEMENT].CREATEDDATETIME ,CUSTSETTLEMENT.TRANSDATE ,CustSettlement.[SETTLEAMOUNTREPORTING] ,[INVOICEAMOUNT] ,[PAYMENT] ,[INVOICEAMOUNTMST] FROM [CUSTINVOICEJOUR] join [CUSTTRANS] ON CUSTTRANS.INVOICE=CUSTINVOICEJOUR.INVOICEID AND [CUSTTRANS].AccountNum = [CUSTINVOICEJOUR].InvoiceAccount and [CUSTTRANS].TransDate = [CUSTINVOICEJOUR].InvoiceDate and [CUSTTRANS].Voucher = [CUSTINVOICEJOUR].LedgerVoucher join CUSTSETTLEMENT on CUSTSETTLEMENT.TransCompany = [CUSTTRANS].dataAreaId and CUSTSETTLEMENT.TransRecId = [CUSTTRANS].RecId and CUSTSETTLEMENT.AccountNum = [CUSTTRANS].AccountNum WHERE [CUSTSETTLEMENT].DUEDATE = [CUSTINVOICEJOUR].DUEDATE AND [CUSTSETTLEMENT].DUEDATE between'2018-03-01 01:00:000' AND '2019-03-15 23:00:000' AND [CUSTSETTLEMENT].TRANSDATE <'2019-02-28 0:0:0' AND [CUSTINVOICEJOUR].INVOICEID LIKE 'ACP%' AND [CUSTINVOICEJOUR].INVOICEACCOUNT='110214M'
I would like for the where conditions to be dynamic where the user will then go and enter this info and the report prints according. IO know whats i get the query then dropping that in visual studio should not be a problem
Any help would be greatly appreciated if this can be achieved.
*This post is locked for comments