Hi,
we have te possibility to change the Report Language at runtime in the "onAfterGetRecord"-Trigger on the leading head table.
Most of Field-Captions and Report-Labels are translated with XLIFF - Files to the target language.
But Captions and Labels are not switched to the target language of the report at runtime, so its always necessary to create own Data-Set fields.
With BC-Version tested 2022-Wave 2, Runtime 10.0
What the request is:
- Could we have the feature that Field Captions are also translated to the target language when they are included in the Dataset with the "IncludeCaption" - Property
//column(BilltoName; "Bill-to Name")
//
// IncludeCaption = true;
//
2. Could we have the feature that all Labels from the "labels" section written to the report in target language?
//labels
//
// Headline1Lbl = 'Offer summary';
// Headline2Lbl = 'Service description';
// Headline3Lbl = 'Terms and Conditions';
// SubLine1Lbl = 'Prices and taxes';
//
3.Could we have that Global Variables from Datatype "Label" are written in the report in translation:
//var
// PlaceOfFullfillmentMainlyLbl: Label 'The work is carried out on the premises of %1 or
// affiliates.', Comment = '%1 Company Name';
so we get also the capability for dynamic Textstrings in our reports.
For me it makes no sense that i could only via an own Data-Set field like
// column(Phone_No_Cptn; FieldCaption("Phone No."))
//
to get an correct Translation in the Report.
So it will be more smooth to build Reports in Customers Language if its naceassary.
Sorry - some AL - Coding Elements removed by
We have encounter some malicious input. Please remove that and try again
Business Central Team (administrator)
Thank you for this suggestion! Currently this is not on our roadmap. We are tracking this idea and if it gathers more votes and comments we will consider it in the future. Best regards, Business Central Team