PurchReqAuthorizationOperatingUnit::operatingUnitLookup Method
Provides a custom lookup for the OMOperatingUnit records that are of the specified OMOperatingUnitType type.
Syntax
client server public static OMOperatingUnit operatingUnitLookup(
FormReferenceControl _formReferenceControl,
OMOperatingUnitType _type,
[DirPartyName _name])
Run On
Called
Parameters
- _formReferenceControl
Type: FormReferenceControl Class
The FormReferenceControl for which the lookup that is being created by this method is servicing.
- _type
Type: OMOperatingUnitType Enumeration
An OMOperatingUnitType value that indicates what type discriminator to use to filter the OMOperatingUnit table.
- _name
Type: DirPartyName Extended Data Type
A string that specifies a user-entered name that is ambiguous and must be resolved by the lookup; optional.
Return Value
Type: OMOperatingUnit Table
An OMOperatingUnit record that the user selected.
Remarks
This lookup helper method also assists in resolving duplicate names when surrogate key replacement cannot do so automatically.