For some reason or another the format above is not working whenever a variable is extracted for a record. If for example we have a decimal field let's say amount and a decimal variable, the format works in the variable but completely ignores it in the field.
Does anyone have any idea of the source of this issue?
I' have recently seen this in reports when I tried to limit the use of DecimalPlaces.
If you are using "table"."field" as SourceExpr the fields property overrides the setting of DecimalPlaces of the TextBox. But if I use +"table"."field" as SourceExpr I'm able to control.
It might be the same for the Format setting in the TextBox.
(all in the properties of the textbox)
Regards
Dan Lindström NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer) MBSP Developer for Microsoft Dynamics NAV 2009
Great, it has worked perfectly. The only remaining issue which i have is that I would like to place a variable instead of the euro symbol in the format. Below you will find the current format.
<Sign>€<Integer Thousand><Decimals>
How should it be written to insert a variable instead of the euro sign?
Comments
FORMAT(var,0,'<Sign>$<Integer Thousand><Decimals>');
try
FORMAT(var,0,'<Sign>'+signvariable+'<Integer Thousand><Decimals>');
should work
Dan Lindström
NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
MBSP Developer for Microsoft Dynamics NAV 2009
Use CONVERTSTR after FORMAT (if better way will not be found)
For some reason or another the format above is not working whenever a variable is extracted for a record. If for example we have a decimal field let's say amount and a decimal variable, the format works in the variable but completely ignores it in the field.
Does anyone have any idea of the source of this issue?
If you are using "table"."field" as SourceExpr the fields property overrides the setting of DecimalPlaces of the TextBox. But if I use +"table"."field" as SourceExpr I'm able to control.
It might be the same for the Format setting in the TextBox.
(all in the properties of the textbox)
Dan Lindström
NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
MBSP Developer for Microsoft Dynamics NAV 2009
Great, it has worked perfectly. The only remaining issue which i have is that I would like to place a variable instead of the euro symbol in the format. Below you will find the current format.
<Sign>€<Integer Thousand><Decimals>
How should it be written to insert a variable instead of the euro sign?