Created
March 7, 2013 08:53
-
-
Save tommykakashi/5106563 to your computer and use it in GitHub Desktop.
Find() method in X++
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static HMEmployee find(HMEmployeeId employeeId, | |
boolean _forUpdate = false) | |
{ | |
HMEmployee employeeTable; | |
if (employeeId) | |
{ | |
if (_forUpdate) | |
{ | |
employeeTable.selectForUpdate (_forUpdate); | |
} | |
employeeTable.selectLocked (_forUpdate); | |
select firstonly employeeTable | |
where employeeTable.EmployeeId == employeeId; | |
} | |
return employeeTable; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment