Hello Nav Experts!
I am unable to update current datetime in a filed in Item table.
I have created new field "Last modifed date time" in Item Table. If any changes or created any record in sales price table the new field should update current date time.
Manually In Retail Item card if I changed sales price related filed it is updating the current date time, but while import data through Mapping (Form 8601 standard) it is not updating the current datetime.
My code as follows:
Item.GET("Item No.");
Item."Last DateTime Modified" := CURRENTDATETIME;
Item.MODIFY;
Can any Expert suggest how to solve this problem ??
Anil Kumar Korada
Technical Consultant
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks for quick response!
Code is place in on Modify of Sales Price table.
Technical Consultant
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks a lot!
If I want to validate in Sales Price table or Item table then where I should write code??
If that field totally blank then I can able to update the field with current datetime through Mapping form.
But I am unable to blank that field, If any value is existing, I hv already tried with 0DT, but not working??
Technical Consultant
Take it as small exercise... it is not hard... ;-)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
But existing Mapping functiionlaity should not be distrib for this customization, Have to do what ever customization in Item or Sales Price table. Can you plese help me where to write the code??
Technical Consultant
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks for excellect support!
I will try for complicated way. Thanks for made the problem more clear.
Technical Consultant