Hii ,
I am using this code in below to add new number sequence ,and make the settings for this number sequence continues ,but when i delete the current line after create and create new line it gives my next value, i need the same value which i delete it because of i do not use it yet ,waiting for your reply , thanks
numberSequenceTable = NumberSequenceTable::find(lev_financialSupportingDocument.NumberSequenceTable);
NSR = NumberSequenceReference::findByNumberSequenceId(numberSequenceTable.RecId);
if(!NSR.RecId)
{
// commented by Hisham Alsayed
_scope = NumberSeqScopeFactory::createDefaultScope(datatype);
NSR.NumberSequenceScope = _scope.getId();
NSR.NumberSequenceDatatype = datatype.parmRecId();
NSR.NumberSequenceId = numberSequenceTable.RecId;
NSR.doInsert();
// NSR = NumberSeqReference::findReference(extendedTypeNum(SupportingDocumentType));
}
ttsBegin;
ns = NumberSeq::newGetNum(NSR);
ns.used();
Doc = ns.num();
ttsCommit;