You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

In the runtime you are able to define the formatting of attributes in a language specific manner. This is done using value formats. These value formats are by default available to use:

Data TypeNameFormat
Booleandefault-boolean-formattrue,on;false,off
Booleandefault-boolean-format-nl-NLtrue,on,ja;false,off,nee
Numberdefault-number-format-dot-2d#0.00
Numberdefault-number-format-dot-4d#0.0000
Numberdefault-number-format-dot-2d-nl-NL#0.00
Numberdefault-number-format-dot-2d-nl-NL#0.0000
Datedefault-date-formatyyyy-MM-dd
Datedefault-date-format-nl-NLdd-MM-yyyy
DateTimedefault-datetime-formatyyyy-MM-dd HH:mm:ss
DateTimedefault-datetime-format-nl-NLdd-MM-yyyy HH:mm:ss
Percentagedefault-percentage-format-dot-2d#0.00
Percentagedefault-percentage-format-dot-2d-nl-NL#0.00
Currencydefault-currency-format-dot-2d#0.00
Currencydefault-currency-format-dot-2d-nl-NL#0.00
Integerdefault-integer-format#0
Integerdefault-integer-format-nl-NL#0

The above value formats can be applied per data type per language inside the language-formats.properties inside the config location.

The following settings are used out of the box:

integer=default-integer-format
number=default-number-format-dot-4d
currency=default-currency-format-dot-2d
percentage=default-percentage-format-dot-2d
date=default-date-format
datetime=default-datetime-format
boolean=default-boolean-format

integer.nl-NL=default-integer-format-nl-NL
number.nl-NL=default-number-format-dot-4d-nl-NL
currency.nl-NL=default-currency-format-dot-2d-nl-NL
percentage.nl-NL=default-percentage-format-dot-2d-nl-NL
date.nl-NL=default-date-format-nl-NL
datetime.nl-NL=default-datetime-format-nl-NL
boolean.nl-NL=default-boolean-format-nl-NL

Creating your own format

Next to the defaults that are provided out-of-the-box, you are able to create your own language formats as well. To do this, create an own format in the Globals section. You can use the name of this global format now as well inside the language-formats.properties file.

As the settings inside the language-formats.properties are a global setting for all projects, this causes problems for projects that do not have this global format defined. We therefore advise to define this format in each project, possibly by creating your own library.
  • No labels