Hi,
I have an uneditable master table and new records must be inserted only through New Button.
A dialog box is called in new button\clicked method. Dialog has two string fields, (Name and Description).
After the fields are set and clicked OK,
I have to insert the record in the master table.
ttsBegin;;
WorkStation.clear();
WorkStation.initValue();
WorkStation.StationName = dlgStationName.value();
WorkStation.WSDescription = dlgDescription.value();
numberseqId = NumberSeqReference::findReference(ExtendedTypeNum(SMCStationId)).numberSequenceId;
numberSeq = NumberSeq::newGetNumFromId(numberseqId);
WorkStation.StationId = numberSeq.num();
if(WorkStation.validatewrite());
WorkStation.insert();
ttscommit;
But if the validation is throwing error, the numberseq created is not reverting back.
Could someone explain me how to revert the numberseq?
Thanks,
Lakshmi