alguidelines/content/docs/NAVPatterns/3-cal-coding-guidelines/localizability/using-optioncaptionml/index.md
2022-02-24 14:45:35 +01:00

617 B

+++ title = "Using OptionCaptionML" weight = 1380 tags = ["C/AL"] categories = ["Best Practice"] +++ The OptionCaptionML should be filled in for sourceexpression using option data types.

Bad code

{ 30 ;TextBox ;17850;0 ;150 ;423 ;Name=Selection;
SourceExpr=Selection;
DataSetFieldName=Selection }
...
Selection@1008 : 'Open,Closed,Open and Closed';
...

Good code

{ 30 ;TextBox ;17850;0 ;150 ;423 ;Name=Selection;
OptionCaptionML=ENU=Open,Closed,Open and Closed;
SourceExpr=Selection;
DataSetFieldName=Selection }
...
Selection@1008 : 'Open,Closed,Open and Closed';