Number Sequence
Create EDT
..........................................................................
Write Code in Module Class - Load module method
datatype.parmDatatypeId(extendedtypenum(NumSeqId));
datatype.parmReferenceHelp(literalstr(" Num seq ID "));
datatype.parmWizardIsContinuous(true);
datatype.parmWizardIsManual(NoYes::No);
datatype.parmWizardIsChangeDownAllowed(NoYes::No);
datatype.parmWizardIsChangeUpAllowed(NoYes::No);
datatype.parmWizardHighest(999999);
datatype.parmSortField(4);
datatype.addParameterType(NumberSeqParameterType::DataArea, true, false);
this.create(datatype);
....................................................................................
Run Job to
static void Job1(Args _args)
{
NumberSeqModuleM numberSeqModuleM = new NumberSeqModuleM();
;
NumberSeqModuleM.load();
info("done");
}
........................................................................................
Write new method in ModuleParameter Table
public static client server NumberSequenceReference numRefNumSeqId()
{
return NumberSeqReference::findReference(extendedTypeNum(NumSeqId));
}
.........................................................................................
DataSource - method
public void create(boolean _append = false)
{
super(_append);
NumSeq.Id = NumberSeq::newGetNum(MParameter::numRefNumSeqId(),true).num();
}
Create EDT
..........................................................................
Write Code in Module Class - Load module method
datatype.parmDatatypeId(extendedtypenum(NumSeqId));
datatype.parmReferenceHelp(literalstr(" Num seq ID "));
datatype.parmWizardIsContinuous(true);
datatype.parmWizardIsManual(NoYes::No);
datatype.parmWizardIsChangeDownAllowed(NoYes::No);
datatype.parmWizardIsChangeUpAllowed(NoYes::No);
datatype.parmWizardHighest(999999);
datatype.parmSortField(4);
datatype.addParameterType(NumberSeqParameterType::DataArea, true, false);
this.create(datatype);
....................................................................................
Run Job to
static void Job1(Args _args)
{
NumberSeqModuleM numberSeqModuleM = new NumberSeqModuleM();
;
NumberSeqModuleM.load();
info("done");
}
........................................................................................
Write new method in ModuleParameter Table
public static client server NumberSequenceReference numRefNumSeqId()
{
return NumberSeqReference::findReference(extendedTypeNum(NumSeqId));
}
.........................................................................................
DataSource - method
public void create(boolean _append = false)
{
super(_append);
NumSeq.Id = NumberSeq::newGetNum(MParameter::numRefNumSeqId(),true).num();
}