Axapta 如何创建数字序列多公司?

Axapta 如何创建数字序列多公司?,axapta,dynamics-ax-2012,x++,sequences,number-sequence,Axapta,Dynamics Ax 2012,X++,Sequences,Number Sequence,我需要创建一个自定义的数字序列,但另一个要求是有一个多公司的数字序列 我知道如何创建一个简单的序列,我使用了这个。 可以在公司中创建数字序列,启动 工作 static void loadNumSeqCustDemo(Args _args) { //define the class variable NumberSeqModuleCustomer seqMod = new NumberSeqModuleCustomer(); //load the number seque

我需要创建一个自定义的数字序列,但另一个要求是有一个多公司的数字序列

我知道如何创建一个简单的序列,我使用了这个。 可以在公司中创建数字序列,启动

工作

static void loadNumSeqCustDemo(Args _args)
{
    //define the class variable
    NumberSeqModuleCustomer seqMod = new NumberSeqModuleCustomer();

    //load the number sequences that were not generated
    seqMod.load();
}
并且以后可以在所有公司使用相同的编号顺序。有可能吗? 当我以by形式创建新记录时,我需要获得一个新的数字序列元素

谢谢你的建议

享受吧

看看怎么做

在“范围参数”选项卡上,选择编号序列的共享范围

初始化数字序列时,不要调用
addParameterType
。 通常:

取而代之的是:

this.create(datatype);

我在网上找到了这个。

谢谢,工作顺利。我希望您能理解,我为AX 2012中共享的编号序列插入了另一个参考。
this.create(datatype);