Notifications
Announcements
No record found.
public str ahmad_getEmpName(PREmployeeId _employeeId) { utcDateTime validTo = DateTimeUtil::maxValue(); utcDateTime validFrom = DateTimeUtil::minValue(); str empName; //PREmployeeId empid1 = "*" _employeeId; PREmployeeId empid1 = strRFix(_employeeId,5,'0'); while select firstOnly ValidTimeState(validFrom, validTo) prEmploymentInformation where prEmploymentInformation.EmployeeId == empid1 { empName = prEmploymentInformation.EmployeeName; } return empName; }
I want to show through single Integer employee ID have name and department also show.
Hi Fawad,
Your question is not clear.
Can you elaborate?
Thanks,
Girish S.
I want to display rawpunchesReport where in screenshot employees ID whose one integer e,g in sreenshot empId field , ID number 3 and ID number2 have not display employees Name. .
May be the employee's name is missing from the table.
Seems you are using custom table or view to get the employee details for the report.
Just open the table browser of the particular table or view and see whether employee name is there or not.
zeros padding in employeesID values
I am not able to understand your question.
Are you asking how to add 0 in the employee Id before.
Suppose if the personnel number is 3 then it should display like 0003?
If yes, then you need to add a code to add 0 in the employee id field. Refer to the below code and see whether its suit your scenario.
int strLen; strLen = strLen(tableName.PersonnelNumber); if(strLen <= 1) { tempTable.PersonnelNumber = "000" tableName.PersonnelNumber; } else { tempTable.PersonnelNumber = tableName.PersonnelNumber; }
yes but many employees ids have 00012 .
Have you tried the code which I have sent?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 664 Most Valuable Professional
André Arnaud de Cal... 522 Super User 2025 Season 2
Sohaib Cheema 303 User Group Leader