Skip to main content

Posts

Showing posts with the label Create a new number sequence modules

Number Sequence creation through code in axapta

Number sequence Creation Add method current form where number sequence needed NumberSeqFormHandler numberSeqFormHandler; NumberSeqFormHandler numberSeqFormHandler() { if (!numberSeqFormHandler) { numberSeqFormHandler = NumberSeqFormHandler::newForm(ProdParameters::numRefSrNo().NumberSequence,element,TableName_ds,fieldnum(TableName,SrNo)); } return numberSeqFormHandler; } public void delete() { element.numberSeqFormHandler().formMethodDataSourceDelete(); super(); } public void write() { ; ttsbegin; super(); element.numberSeqFormHandler().formMethodDataSourceWrite(); ttscommit; } void create(boolean _append = false, boolean extern = false) //If created externally { ; element.numberSeqFormHandler().formMethodDataSourceCreatePre(); super(_append); if (!extern) { element.numberSeqFormHandler().formMethodDataSourceCreate(); } //GODInstrumentCalibrationHeader.Responsibility =curuserid(); To par...