static void tutorial_NumberSequenceJob(Args _args)
{
// AX 2012 Number Sequence, X++
// Only for sequences marked as continuous
// ---------------------------------------
NumberSequenceReference nsRef;
NumberSeqScope scope;
ProductReceiptId receipt;
scope = NumberSeqScopeFactory::createDataAreaScope(curext());
nsRef = NumberSeqReference::findReference(extendedTypeNum(VendAccount), scope);
if (nsRef)
{
receipt = NumberSeq::newGetNum( nsRef ).num();
}
info(strFmt("New Supplier Id is '%1'", receipt));
}
miércoles, 5 de septiembre de 2012
AX 2012 Number Sequence, X++
It's feels like having to learn all of this stuff over again. Here is a brief overview, and there is a white paper available as well, for AX 2012.
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario