Usage of Dict types in AX

Hi,

Dict types are used to manage EDT’S. They are used to fetch the properties of an EDT.
Below code helps You in finding out the label name of an EDT used to generate a Number sequence ‘Inve_77’.

static void Dicttypes(Args _args)
{
dicttype dictype;
NumberSequenceReference NumberSequenceReference;
;

select firstonly NumberSequenceReference
where NumberSequenceReference.NumberSequence == ‘Inve_77’;
if (NumberSequenceReference)
{
dictype = new dicttype(NumberSequenceReference.DataTypeId);
}
info(dictype.label());
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s