Usually we can use the code like this :
//number sequence MRIS
NumberSeq num;
;
num = NumberSeq::newGetNum(InventParameters::[method for Sequence number]);
it can be work if the continuous cekbox, in Sequence number master is false.
but fi the continuous cekbox, in Sequence number master is True, the system will give a message "System does not support setup 'continuous' of number sequence"
so you need to put ttsbegin and ttscommit on your codes :
NumberSeq num;
Sampletable sampletable;
;
ttsbegin;
num = NumberSeq::newGetNum(InventParameters::[method for Sequence number]);
sampletable.clear();
sampletable.number = num.num();
sampletable.insert();
ttscommit;
Tidak ada komentar:
Posting Komentar