Following below code show how we can get continuous number from the number sequences in Microsoft dynamics ax 2012.
SL_PositionReqNum positionReqNum;
SysLastValue nextNumSeq;
ttsBegin;
positionReqNum = NumberSeq::newGetNumFromId(NumberSeqReference::findReference(extendedTypeNum(SL_PositionReqNum)).NumberSequenceId).num();
ttsCommit;
return positionReqNum;
SL_PositionReqNum positionReqNum;
SysLastValue nextNumSeq;
ttsBegin;
positionReqNum = NumberSeq::newGetNumFromId(NumberSeqReference::findReference(extendedTypeNum(SL_PositionReqNum)).NumberSequenceId).num();
ttsCommit;
return positionReqNum;
hi i am new to ax, and i am looking for the code to get the number sequence for a column in a report like (1,2,3,4...) can you tell me the x++ code for that.
ReplyDeleteThanks
Priya
Yeah sure!!! @priya Narula
Deleteyou can reference one of my blog which have all the nesscary details on your question. check the mention link below:
https://360dynamics.blogspot.com/2018/02/ssrs-report-serial-number-in-report.html