Actually, classes allow for the same thing, and better in my opinion because it 
is easier to trace the inheritance of a class when debugging.
 
The downside of using a common class for that shared code is that if you want 
to update related records in the other tables you have to specifically query 
those rows up in your class, whereas the map takes care of it for you. 
 
I would gladly give that up for a more simplistic model. 
 
Oh - and Jim - good point in that earlier post about the Map AOT object being 
different than the map collection datatype. 

--- On Wed, 7/2/08, Malcolm Burtt <[EMAIL PROTECTED]> wrote:

From: Malcolm Burtt <[EMAIL PROTECTED]>
Subject: RE: [development-axapta] What are Maps and what's the use of them?
To: "development-axapta@yahoogroups.com" <development-axapta@yahoogroups.com>
Date: Wednesday, July 2, 2008, 12:06 AM






Hi

Maps are an abstraction layer for Tables. They allow you to place code for 
tables that have comparable functions in a single place rather than having to 
duplicate the code for each table. This makes them a powerful and very useful 
feature within AX.

For example, SalesLine and PurchLine are similar in function in that they are 
both worksheet line tables used to handle trading functions. Both tables need 
to be able to calculate total line amount, tax charges, etc. so the volume of 
code that you need to write to handle the common functions for these tables can 
be kept to a minimum by abstracting the two tables as a Map and placing the 
common code on the Map.

Regards

Malcolm Burtt
Product Development Manager
Touchstone
W: http://www.touchsto ne.co.uk<http://www.touchsto ne.co.uk/>

____________ _________ _________ __
From: development- [EMAIL PROTECTED] ps.com [development- [EMAIL PROTECTED] 
ps.com] On Behalf Of Vamsi Praneeth [vamsi_praneeth@ yahoo.com]
Sent: 29 June 2008 04:32
To: development- [EMAIL PROTECTED] ps.com
Subject: [development- axapta] What are Maps and what's the use of them?

Hello guys...I just wanna know...what actually are Maps in Dynamics AX
4.0 what are they used for? I have read in the e-books of Microsoft
but couldn't figure out what actually are those.....Can someone
explain me in detail what they are?

 














      

[Non-text portions of this message have been removed]

Reply via email to