ToString
4 min
tostring function converts any type of input value to text form like a string syntax tostring(text,precision) enabled for for a description of the business object categories, see notes on "enabled for" docid\ u26v9fecfs6ilwa0 pvjd business object category yes/no business rules before save rules yes business rules calculation rules (after save, with or without also recalculate on load) yes business rules calculation rules (before save or always, without also recalculate on load) yes business rules calculation rules (before save or always, with recalculate on load) yes business rules editing rules yes business rules initialization rules yes business rules read only rules yes business rules required rules yes business rules validation rules yes client expressions yes object permissions yes services yes ldap yes mobile yes quick actions (except ui quick actions) yes ui quick actions yes reports yes search/dashboard without field references yes search/dashboard with field references yes parameters parameter description text the value to convert to a text value precision (optional) the number of decimal places returned if the text parameter is a number or a currency the application ignores the precision parameter for values that are not a number or currency the maximum precision for numbers is up to 15 digits in total (including digits before and after the decimal point) values exceeding this limit result in an incorrect number return value string text value if the text parameter is a text value, returns the text unchanged example $(tostring(createddatetime)) this returns the text value of the createddatetime field $(tostring(price, 2)) this returns a currency value to two decimal places an example is 3 45 usd
