문제

In AX 2012 I want to add the year (e.g. 2011) as prefix in the ID field.

For instance I create a new customer in AX. The ID of this new customer should be like: 2013-00000123

Is it possible to set the year in the segments instead of coding this.

How can I achieve this? Thank you in advance.

도움이 되었습니까?

해결책

If the "fixed" solution proposed by Sshaheen don't suit your needs, and you really need to get a dynamic value for the year, the only suitable solution if to develop it through X++ code, in the CustTable table or class (just find where a new sequence number is obtained).

Anyway, I'll recommend using a constant value on the number sequence, as Sshaheen states.

다른 팁

The simplest way to do this would be to create a new number sequence and make two segments, one that is constant (the year 2013), and one that is alphanumeric. Then, go to the AR parameters and set Customers to your new number sequence. However, you would need to do this at the first of every year to change the constant.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top