Updating date

Hanen_T
Member Posts: 32
Hello,
How can I keep a field date uptodate. My field is a result of calcdate(Lead Time Calculation,workdate);
I want to have at anytime the right value on this field.
Thank you #-o
How can I keep a field date uptodate. My field is a result of calcdate(Lead Time Calculation,workdate);
I want to have at anytime the right value on this field.
Thank you #-o
Technico-Functional Consultant NAV
It's all about passion of Navision World
It's all about passion of Navision World
0
Comments
-
Try by adding the below code in Item Card Form - OnAfterGetRecord() and Item Table Lead Time Calculation - OnValidate() triggers
Uptodate := CALCDATE("Lead Time Calculation",WORKDATE);
Uptodate is a Date type field in Item table0 -
mohana_cse06 wrote:Try by adding the below code in Item Card Form - OnAfterGetRecord() and Item Table Lead Time Calculation - OnValidate() triggers
Uptodate := CALCDATE("Lead Time Calculation",WORKDATE);
Uptodate is a Date type field in Item table
Simpler is just to add this as the source expression of the control. The problem is that if you get an error you wont be able to then open the form.David Singleton0 -
David Singleton wrote:mohana_cse06 wrote:Try by adding the below code in Item Card Form - OnAfterGetRecord() and Item Table Lead Time Calculation - OnValidate() triggers
Uptodate := CALCDATE("Lead Time Calculation",WORKDATE);
Uptodate is a Date type field in Item table
Simpler is just to add this as the source expression of the control. The problem is that if you get an error you wont be able to then open the form.
You are right.. :thumbsup:
and we dont need a new field also0 -
Thank you but just one more thing where will I put this Uptodate := CALCDATE("Lead Time Calculation",WORKDATE); on which trigger???
I will need this field to calculate a new field copy of invetory but wher the posting date is < my new field (Uptodate := CALCDATE("Lead Time Calculation",WORKDATE));Technico-Functional Consultant NAV
It's all about passion of Navision World0 -
It didn't work, I have the right value on the form and not on the item table :oops:Technico-Functional Consultant NAV
It's all about passion of Navision World0 -
If you want it in the Iten table then create a function in the table object and use it as it it was a read only field.
You cannot keep a real database field current. You can approximate "current" by running batch jobs, or make it current by using a function.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