mibuso.com

Microsoft Business Solutions online community
It is currently Tue May 21, 2013 9:29 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Add field from another Table.
PostPosted: Wed Apr 11, 2012 11:24 am 
Offline

Joined: Tue Mar 27, 2012 9:06 am
Posts: 47
Location: New Delhi
Country: India (in)
I have to display a field named inventory in the Indent Line. The main table used is indent line but the Inventory value is present in another table named : ITEM. How can i use that Inventory value from Item table in the Indent Line.? plz suggest ? same problem with main table indent line & the value of field which i have to use heere is available in the other table named : Value entry. field name : Cost per unit. how to display cost per unit in indent line..i guesed i m lacking in checking the primary keys , but which one to make primary ? & how to select it from C/al symbol menu..plz .describe..

Thanks

Rajeev


Top
 Profile E-mail  
 
 Post subject: Re: Add field from another Table.
PostPosted: Wed Apr 11, 2012 11:33 am 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Sep 02, 2008 8:37 am
Posts: 4224
Location: New Delhi
Country: India (in)
Can you tell us what did you try till now?

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


Top
 Profile  
 
 Post subject: Re: Add field from another Table.
PostPosted: Wed Apr 11, 2012 11:56 am 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Aug 14, 2001 7:01 am
Posts: 5315
Location: Prague
Country: Czech Republic (cz)
rranjanerp wrote:
I have to display a field named inventory in the Indent Line. The main table used is indent line but the Inventory value is present in another table named : ITEM. How can i use that Inventory value from Item table in the Indent Line.? plz suggest ? same problem with main table indent line & the value of field which i have to use heere is available in the other table named : Value entry. field name : Cost per unit. how to display cost per unit in indent line..i guesed i m lacking in checking the primary keys , but which one to make primary ? & how to select it from C/al symbol menu..plz .describe..

Thanks

Rajeev



Try something like
Code: Select all
IF Item.get("item No.") then begin
  item.calcfields(inventory);
end else
  clear(item);

Message('Inventory value is %1',item.inventory);

_________________
David Singleton
Dynamics NAV Freelancer
Dynamics Book
Go-Live International


Top
 Profile E-mail WWW  
 
 Post subject: Re: Add field from another Table.
PostPosted: Thu Apr 12, 2012 3:04 pm 
Offline

Joined: Tue Oct 04, 2011 10:26 am
Posts: 94
Country: Belgium (be)
using a calcfield seems logical in this situation


Top
 Profile E-mail  
 
 Post subject: Re: Add field from another Table.
PostPosted: Thu Apr 12, 2012 3:24 pm 
Offline
MVP Microsoft Dynamics NAV

Joined: Tue Aug 14, 2001 7:01 am
Posts: 5315
Location: Prague
Country: Czech Republic (cz)
Resender wrote:
using a calcfield seems logical in this situation


Yes definitely a good option.

_________________
David Singleton
Dynamics NAV Freelancer
Dynamics Book
Go-Live International


Top
 Profile E-mail WWW  
 
 Post subject: Re: Add field from another Table.
PostPosted: Fri Apr 13, 2012 7:33 am 
Offline

Joined: Tue Mar 27, 2012 9:06 am
Posts: 47
Location: New Delhi
Country: India (in)
THANKS A LOT ..

IT WORKS FINE..I WAS USING SumIndex...


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 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: