Multi Language descritpion based on Customer.Languag Code

santoshkumarkoradasantoshkumarkorada Member Posts: 2
Hi,

I am having the requirement that have to show the Text constant value in different languages in report based on the "Language Code" in Customer card ( not by Windows Language Id). All ready we did with "Item Transalation Setup" but i want some standard thing , so can any one please help / suggest me on this .


Thanks In Advance,
Santhosh.

Comments

  • geordiegeordie Member Posts: 655
    If you have to show the entire report based on customer language, I suggest to run it in this way:
    ReportVar.SetParameters(...);   //In case of any parameters used
    ReportVar.LANGUAGE(Language.GetLanguageID(Customer."Language Code"));
    ReportVar.RUNMODAL;
    
  • vaprogvaprog Member Posts: 1,141
    This is standard functionality in NAV. See for instance Report 206 Sales - Invoice.

    It contains the code line
    CurrReport.LANGUAGE := Language.GetLanguageID("Language Code");
    
    which turn's on the language configured in the Sales Invoice Header, which in turn is taken from the Bill-to Customer by default.
Sign In or Register to comment.