Skip to main content
Answer

Employee ID Auto-numbering

  • April 21, 2022
  • 2 replies
  • 475 views

Is there a way to auto-number employee ID’s? I looked through Numbering Sequences and Employee Classes Preferences without luck. 

I’d like the person setting up new employees not have to find the last number to assign the sequential one after that.

Best answer by Shawn Burt

I think you are looking for the Segmented Key for employee and confirm the numbering id setup too
the key needs to be AutoNumber and the seq needs to have manual numbering turned off. As the images show the employee setup is all manual.

 

2 replies

Shawn Burt
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • Answer
  • April 21, 2022

I think you are looking for the Segmented Key for employee and confirm the numbering id setup too
the key needs to be AutoNumber and the seq needs to have manual numbering turned off. As the images show the employee setup is all manual.

 


Leonardo Justiniano
Jr Varsity II
Forum|alt.badge.img+4

Hi @vhaase 

Assuming you have the Numbering Sequence already defined and set somewhere (XX Setup Screen), adding the numbering attribute would work

 public class EmployeeMaint_Extension : PXGraphExtension<EmployeeMaint>
{

[PXMergeAttributes(Method = MergeMethod.Merge)]
[AutoNumber(typeof(Search<XXSetupExt.usrEmployeeNumbering>), typeof(AccessInfo.businessDate))]
protected void _(Events.CacheAttached<EPEmployee.acctCD> e) { }
}