SBX - Search With Button

SBX - Forum Post Title

How to create new number sequence for new company? - Ax 2012

Microsoft Dynamics AX Forum

Jhon Edmar Tarlac asked a question on 13 Jul 2018 4:29 AM
My Badges

Question Status

Suggested Answer

Hi Experts,

I have question regarding on number sequence.

In the image above shows the number sequence in four(4) different companies

We create that  sequence a couple of months ago using this tutorial NumberSquence.

Now this month we add new company as shown the highlighted in the image above.

I thought it will create new one if i run the again the Jobs, but its not.

Can you help us on how will i do this?

Thank you in advance. 

Reply
ievgen Miroshnikov responded on 13 Jul 2018 4:39 AM
Suggested Answer

Did you try to run generate wizard again ? But for 1 number sequence would be easier just manually add it. Also your number sequence looks strange you have only 3 numbers, so you limited your self to 999 records.

Reply
Anton Venter responded on 13 Jul 2018 4:41 AM
My Badges

Which jobs? Can you post them on the forum? Maybe they are company specific.

Reply
Jhon Edmar Tarlac responded on 13 Jul 2018 4:58 AM
My Badges

Hi ievgen,

Tnx for the reply.

Yes i try to run the generate wizards and it not showing there.

Its just a reason code and we minimize that, therefore we set only 999

Reply
Jhon Edmar Tarlac responded on 13 Jul 2018 5:00 AM
My Badges
Here is my CLASS.

class NumberSeqModuleDRRep extends NumberSeqApplicationModule { } protected void loadModule() { NumberSeqDatatype datatype = NumberSeqDatatype::construct(); // Setup Salesorder numbers datatype.parmDatatypeId(extendedTypeNum(DRRepNumSeq)); datatype.parmReferenceLabel(literalStr("DRRep")); datatype.parmReferenceHelp(literalStr("Unique code for DR Reprint Setup")); datatype.parmWizardIsContinuous(true); datatype.parmWizardIsManual(NoYes::No); datatype.parmWizardIsChangeDownAllowed(NoYes::No); datatype.parmWizardIsChangeUpAllowed(NoYes::No); datatype.parmWizardHighest(999); datatype.parmSortField(1); datatype.addParameterType(NumberSeqParameterType::DataArea, true, false); this.create(datatype); } public NumberSeqModule numberSeqModule() { return NumberSeqModule::Reason; }

and this is the jobs. 

static void DRReasonNumSequence(Args _args)
{
    NumberSeqModuleDRRep numSeqMod = new NumberSeqModuleDRRep();
    numSeqMod.load();
}
Reply
ievgen Miroshnikov responded on 13 Jul 2018 5:09 AM

Did you run wizard/job in new company?

Reply
Jhon Edmar Tarlac responded on 13 Jul 2018 5:24 AM
My Badges

Yes.

Reply
ievgen Miroshnikov responded on 13 Jul 2018 4:39 AM
Suggested Answer

Did you try to run generate wizard again ? But for 1 number sequence would be easier just manually add it. Also your number sequence looks strange you have only 3 numbers, so you limited your self to 999 records.

Reply

SBX - Two Col Forum

SBX - Migrated JS