- Create new EDT
- Add EDT to new table and write below method at table level.
- static NumberSequenceReference numRefMROBulkTransferNumber()
{
return NumberSeqReference::findReference(extendedTypeNum(MROBulkTransferNumber));
}
- static NumberSequenceReference numRefMROBulkTransferNumber()
- write new class to extend existing module class
- [ExtensionOf(classStr(NumberSeqModuleMRO))]
final class NumberSeqModuleMRO_Extension
{protected void loadModule()
{
NumberSeqDatatype datatype = NumberSeqDatatype::construct();next loadModule(); // Execute the augmented original class methoddatatype.parmDatatypeId(extendedtypenum(MROBulkTransferNumber));
datatype.parmReferenceHelp(literalstr(“Number for Bulk transfer”));
datatype.parmWizardIsManual(NoYes::No);
datatype.parmWizardIsChangeDownAllowed(NoYes::No);
datatype.parmWizardIsChangeUpAllowed(NoYes::No);
datatype.parmWizardLowest(1);
datatype.parmWizardHighest(99999999);
datatype.parmSortField(82);
datatype.addParameterType(NumberSeqParameterType::DataArea, true, false);
this.create(datatype);
}}
- [ExtensionOf(classStr(NumberSeqModuleMRO))]
- Create new Runnable class(Job)
- class RunnableClass_numberSeq
{
/// <summary>
/// Runs the class with the specified arguments.
/// </summary>
/// <param name = “_args”>The specified arguments.</param>
public static void main(Args _args)
{NumberSeqModuleMRO numberSeqMod = new NumberSeqModuleMRO();
numberSeqMod.load();
}}
- class RunnableClass_numberSeq
- To go Organization Administration -> CommonForms -> Numbersequences -> Numbersequences -> Generate -> run the wizard.
- Navigate to module(MRO in my case): Setup -> Project management parameters form -> Num Seq. You will find your new numberSeq
Thursday, 12 July 2018
Number Sequence in D365
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment