Hi,
I'm creating new number sequence, it was succeeded but then import the EDT and the classes made it into a new environment. After successfully Build with no error, when trying to run the LoadModule class, it always give me an error :
Spend sometime to check what I probably missed when import but seems (in my knowledge so far) all is imported. May I get advice what's wrong ?
Here are the objects which I believe all there is to create new Number Sequence :
1. Create EDT : My_StatetNum
2. Create CoC, and since I want to put it into AR Parameters, extend NumberSeqModuleCustomer
[ExtensionOf(classStr(NumberSeqModuleCustomer))] final class My_NumberSeqModuleCust_Extension { protected void loadModule() { next loadModule(); NumberSeqDatatype datatypeExtend = NumberSeqDatatype::construct(); /* Setup state numbers */ datatypeExtend.parmDatatypeId(extendedtypenum(My_StateNumber)); datatypeExtend.parmReferenceHelp(literalstr("Unique key for state.")); datatypeExtend.parmWizardIsContinuous(false); datatypeExtend.parmWizardfetchAheadQty(5); datatypeExtend.parmWizardIsManual(NoYes::No); datatypeExtend.parmWizardIsChangeDownAllowed(NoYes::No); datatypeExtend.parmWizardIsChangeUpAllowed(NoYes::No); datatypeExtend.parmWizardHighest(999999); datatypeExtend.parmSortField(10000); datatypeExtend.addParameterType(NumberSeqParameterType::DataArea, true, false); this.create(datatypeExtend); } }
3. Create CoC on CustParameters table
[ExtensionOf(tableStr(CustParameters))] final class My_CustParameters_Extension { client server static NumberSequenceReference numRef_My_StateNumber() { return NumberSeqReference::findReference(extendedTypeNum(My_StateNumber)); } }
4. Create runable class for LoadModule
internal final class My_LoadNumberSeq { ////// Class entry point. The system will call this method when a designated menu /// is selected or when execution starts and this class is set as the startup class. /// /// The specified arguments. public static void main(Args _args) { NumberSeqModuleCustomer numberSeqModCust = new NumberSeqModuleCustomer(); numberSeqModCust.load(); } }
4. run this in browser
I tried to debug this runable class, and it seems the code not calling numberSeqModCust.load(); When I pressed Step into, it doesn't step in and the error raise.
Please help.