Hi there. I'm having my first experiences with C/SIDE.
I'm trying to make an CodeUnit that only reads values from a table (21 Cust. Ledger Entry) and sends it by email.
All is working ok, I read some fields and put them into a text string without problems.
EmailBody := 'Document: ' + UPPERCASE(SalesLedger."Document No.") +
'Date: ' + FORMAT(SalesLedger."Posting Date") +
'Customer: ' + SalesLedger."Customer No." +
'Remaining amount:' + FORMAT(SalesLedger."Remaining Amount",0,'<Integer><Decimals,3>');
The problem is with the field "Remaing Amount". Is a decimal typer field which ALWAYS returns 0. Same thing happens with "Amount" field.
However, if I run this table from Development Enviroment this both fields have numeric values (money).
I've tried almost any value with the FORMAT() function without success.
Could you help me???
Thanks in advance.
Answers
That did the trick!
I haven't realised it was a calculated field. Thanks very much