mibuso.com

Microsoft Business Solutions online community
It is currently Sat May 25, 2013 5:33 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [Solved] Item Reclass. Journal
PostPosted: Thu May 17, 2012 9:06 am 
Offline

Joined: Fri Jul 30, 2010 8:17 am
Posts: 227
Country: India (in)
Hi,

In std form Item Reclass. Journal, i have to flow the item's inventory field data from the item table
i used the following code on the Onvalidate() trigger and even the same code on the onaftergetcurrentrecord():

CLEAR(iteminventory);
item.RESET;
item.SETRANGE("No.","Item No.");
item.calcfields(item.Inventory);
iteminventory :=item.Inventory;

i tried using message, it shows zero at all times.


Top
 Profile E-mail  
 
 Post subject: Re: Item Reclass. Journal
PostPosted: Thu May 17, 2012 9:51 am 
Online
MVP Microsoft Dynamics NAV

Joined: Tue Sep 02, 2008 8:37 am
Posts: 4226
Location: New Delhi
Country: India (in)
Try
Code: Select all
CLEAR(iteminventory);
item.RESET;
item.SETRANGE("No.","Item No.");
IF item.FINDFIRST THEN BEGIN
  item.calcfields(item.Inventory);
  iteminventory :=item.Inventory;
END;


Or Use GET

_________________
-Mohana
http://mibuso.com/blogs/mohana
http://mohana-dynamicsnav.blogspot.in/


Top
 Profile  
 
 Post subject: Re: Item Reclass. Journal
PostPosted: Thu May 17, 2012 10:23 am 
Offline

Joined: Fri Jul 30, 2010 8:17 am
Posts: 227
Country: India (in)
Thanx Mohana
Cheers!


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: