There are many case when users want to change the language of reports based on various factor.
For example. Users want to change the language of report based on Customer, Vendor, Sales order or Purchase order.
This can be done easily by writing one line of code.
You can write below line in AX 2012 in Controller class.
this.parmReportContract().parmRdlContract().parmLanguageId("Language Id");
You can write below line in Dynamics 365 F&O in Controller class.
this.parmReportContract().parmRdlContract().parmLabelLanguageId("Language Id");
There are many examples in the system where you can which is best place and method to write above code based on your requirement.
You can refer standard classes mentioned in the screenshot

Leave a Reply