HOW TO DEVELOP A NEW “PARAMETERS FORM” IN CASE OF NEW MODULE DEVELOPED IN AX.

Hi,

How to develop a new “Parameters form” in case of New Module developed in AX.We go through it by considering an example of creating the new module as Payroll.So now we will create the Payroll Parameters setup form for the payroll module.Initially create a Parameters table for the Module, the naming convention should be the Module name followed by Parameter as in this case it is PayrollParameters table….and need to have the fields accordingly what is required in the Parameters table.Set the following properties for the parameter table as…
Create a parameter form by considering the PayrollParameters and NumberSequenceReference as data sources. And set the following properties for the data source in the form level as
First thing is that there shouldn’t be any provision to create the record in the parameters form. The record in the Parameters should be by default and it can be updated as per the functionality requiredSo when creating the new company in the Axapta, the parameters form should have the default values.To have the default values in the parameters we need to have the following code in the  table  level of find() of PayrollParameters tables .

static PayrollParameters find(boolean _forupdate = false)

{    

    PayrollParameters  parameter;

    if (_forupdate)    parameter.selectForUpdate(_forupdate);
    select firstonly parameter        index Key        where parameter.Key == 0;
    if (!parameter &&      !parameter.isTmp())    

    {        

    Company::createParameter(parameter);       

     NumberSeqReference::construct(Payrol    lParameters::numberSeqModule()).load();    

    }
    return parameter;

}

Note: Call this method in the form (Corresponding parameters form) init() method.

Advertisements

2 thoughts on “HOW TO DEVELOP A NEW “PARAMETERS FORM” IN CASE OF NEW MODULE DEVELOPED IN AX.

  1. Pingback: HOW TO DEVELOP A NEW “PARAMETERS FORM” IN CASE OF NEW MODULE DEVELOPED IN AX. - Microsoft Dynamics AX Community

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