Quantcast
Channel: Microsoft Dynamics NAV
Viewing all articles
Browse latest Browse all 64865

Forum Post: RE: Getting calculated fields value in NAV

$
0
0

hi,

you need calculate flowfields to get calculate values.

example

Codeunit 50001 TestCalcfields

Local Variables

recVendorLedgerEntry record Vendor Ledger Entry

OnRun()

recVendorLedgerEntry.GET(2551);    --> obtain record (GET is like FIND on primary key)

MESSAGE('Amount : ' + FORMAT(recVendorLedgerEntry.Amount));

--> Result 0

recVendorLedgerEntry.CALCFIELDS(Amount);  --> calculate flowfield

recVendorLedgerEntry.CALCFIELDS(Remaining Amt. (LCY)) etc. etc.  --> calculate flowfield

MESSAGE('Amount : ' + FORMAT(recVendorLedgerEntry.Amount));

--> Result "Amount value" > ex. 50.240


Viewing all articles
Browse latest Browse all 64865

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>