WINDOWS Live Search

To contact me for any clarifications regarding any posts / information, please mail me at arijit [dot] basu [at] gmail [dot] com

Saturday, January 6, 2007

Creating new NumberSequences in AX (Existing Modules)

Suppose you have created a new Form in CRM Module and want to set up NumberSequences on that form just like the base module from the Parameters Form.

Here is what you do:
Assume you have created a new EDT called AX_myEDT which is the PK in the Form Datasource Table.
Append \Classes\NumberSeqReference_CRM\loadModule() method and add the following code at the end

= typeId2ExtendedTypeId(typeid(AX_myEDT
)); // The new EDT you made
numRef.ConfigurationKeyId = configurationkeynum(Your Config Key
); // Any Configuration key you made
numRef.ReferenceHelp = literalstr("Your label
."); // Label you want to appear on the Parameters Form
= true;
= NoYes::No;
= NoYes::No;
= NoYes::No;
= 12; // Sorting on the Parameters Form
= 999999;

It will look like this:

Create a new Method in the SalesParameters table
\Data Dictionary\Tables\SalesParameters\Methods\ numRefSomeMethodID

static client server NumberSequenceReference numRefSomeMethodID
return NumberSeqReference::findReference(typeId2ExtendedTypeId(typeid(
Your EDT


Theres the Final Screen

Now see any base form and call the Numbersequence similarly :) .
{This was done in DAX 4.01}

No comments: