Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

Specify different SSRS report layouts

$
0
0

Hi all

We use AX and have multiple companies and therefore multiple designs of the FreeTextInvoice which are set up in print management.

I have a requirement to create 2 different layouts/designs of the FreeTextInvoice for 1 company based on the language set in the CUSTINVOICEJOUR table.

Looking at the FreeTextInvoiceController i can specify a different report format/design within the main method however I cannot see where i would get the LanguageID from?

I am fairly new to AX DEV and I have attached a snippet of the code i was expecting to create but please feel free to advise accordingly

if(curext()=="company1"
{
if(some code to get the language ID) == "en-gb"
{
controller.parmReportName(ssrsReportStr(FreeTextInvoice, ReportENGB));
controller.parmArgs(_args);
controller.parmShowDialog(false);
controller.startOperation();
}
else
{
controller.parmReportName(ssrsReportStr(FreeTextInvoice, ReportOTHER));
controller.parmArgs(_args);
controller.parmShowDialog(false);
controller.startOperation();
}
}


Viewing all articles
Browse latest Browse all 175888

Trending Articles



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