Hi Folks,
How to create the new numberseq with Out disturb the existing class In ax2012.
1) Create the new Class extends with NumberSeqApplicationModule
class Sample extends NumberSeqApplicationModule
{
}
2) Override the Loadmodule method()
protected void loadModule()
{
NumberSeqDatatype datatype = NumberSeqDatatype::construct();
/* Setup application numbers */
datatype.parmDatatypeId(extendedtypenum(EDT));
datatype.parmReferenceHelp(literalstr("Sample"));
datatype.parmReferenceLabel(literalstr("Sample"));
datatype.parmWizardIsContinuous(true);
datatype.parmWizardIsManual(NoYes::No);
datatype.parmWizardIsChangeDownAllowed(NoYes::No);
datatype.parmWizardIsChangeUpAllowed(NoYes::No);
datatype.parmWizardHighest(999999);
datatype.parmSortField(1);
datatype.addParameterType(NumberSeqParameterType::DataArea, true, false);
this.create(datatype);
}
3) Select the numberseq for perticular form
public NumberSeqModule numberSeqModule()
{
return NumberSeqModule::RetailParameters;
}
4) Goto Organisation and administration Module generate the numberseq in normal process.
Thanks
Happy Daxing..
How to create the new numberseq with Out disturb the existing class In ax2012.
1) Create the new Class extends with NumberSeqApplicationModule
class Sample extends NumberSeqApplicationModule
{
}
2) Override the Loadmodule method()
protected void loadModule()
{
NumberSeqDatatype datatype = NumberSeqDatatype::construct();
/* Setup application numbers */
datatype.parmDatatypeId(extendedtypenum(EDT));
datatype.parmReferenceHelp(literalstr("Sample"));
datatype.parmReferenceLabel(literalstr("Sample"));
datatype.parmWizardIsContinuous(true);
datatype.parmWizardIsManual(NoYes::No);
datatype.parmWizardIsChangeDownAllowed(NoYes::No);
datatype.parmWizardIsChangeUpAllowed(NoYes::No);
datatype.parmWizardHighest(999999);
datatype.parmSortField(1);
datatype.addParameterType(NumberSeqParameterType::DataArea, true, false);
this.create(datatype);
}
3) Select the numberseq for perticular form
public NumberSeqModule numberSeqModule()
{
return NumberSeqModule::RetailParameters;
}
4) Goto Organisation and administration Module generate the numberseq in normal process.
Thanks
Happy Daxing..
No comments:
Post a Comment