Skip to main content
Solved

Employee ID Auto-numbering


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.

 

View original
Did this topic help you find an answer to your question?

2 replies

Shawn Burt
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • 109 replies
  • 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) { }
}

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings