How can we store the flow field value into normal fieldvalue

uttar_nag
Member Posts: 19
I added one field named remaining amount2 in customer ledger entry table. I want to store value of remaining amount which is flow field to remaining amount2 normal field.It is possible or not?
0
Comments
-
Why would you need to do this? The simplest answer is no - although if you added the field you could fill it in during some sort of routine, but that would be highly inefficient.
Remember if you are in code, just do CALCFIELDS and you will have access to the value in the field.
CLE.GET(entry number here);
MESSAGE(FORMAT("Remaining Amount")); //this shows 0
CLE.CALCFIELDS("Remaining Amount");
MESSAGE(FORMAT("Remaining Amount")); //this shows the actual amount0 -
where i write the code?. I want when sales order Post,after posting it will automatically refelected on customer ledger entry remaining amount fieldwhich is normal field.0
-
hi,
Check it in codeunit 80 Sales-Post.
Regards,Experience Makes Man Perfect....
Rajesh Patel0 -
i added the code in sales post where mentioned CustLedgEntry.calcfield(Amount) in on Run(). But after posting remaining amount flow field value not reflected in Remaining amount2 normal field. Please kindly checkit.
wriiten the code in follwing:
CustLedgEntry.GET("Entry No.");
CustLedgEntry.CALCFIELDS("Remaining Amount");
CustLedgEntry."Remaining Amt2":= "Remaining Amount";
MESSAGE('%1',CustLedgEntry."Remaining Amt2");
CustLedgEntry.update;0 -
I would think this:
CustLedgEntry.GET("Entry No.");
CustLedgEntry.CALCFIELDS("Remaining Amount");
CustLedgEntry."Remaining Amt2":= CustLedgEntry."Remaining Amount";
MESSAGE('%1',CustLedgEntry."Remaining Amt2");
CustLedgEntry.MODIFY;0 -
This code is not working in Sales post. Please kindly help me to solve this problem.0
-
Darte I ask for more information (like what the message box says), or if anything is stored in the field?0
-
uttar_nag wrote:I added one field named remaining amount2 in customer ledger entry table. I want to store value of remaining amount which is flow field to remaining amount2 normal field.It is possible or not?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions