Share via


CatProcurementCache::getREDsForPreview Method

Gets all the possible combinations of the requisitioner, employer, and department for a catalog preview purpose.

Syntax

client server public static container getREDsForPreview([UserId _userId])

Run On

Called

Parameters

  • _userId
    Type: UserId Extended Data Type
    The user ID of the corresponding originator from which to get the requisitioner data.

Return Value

Type: container
A container.

Remarks

The following list explains the contents of the container:

  1. The first element in the container is the CatProcurementErrorCode enumeration value that indicates what error has caused the resulting data to differ from the expected values.

  2. The second element is the HcmWorker record ID for the given user.

  3. The third element is also a container:

    The first element is the HcmWorker record ID of the requisitioner.

    The second element is the CompanyInfo (employer) record ID of the requisitioner.

    The third element is the OMOperatingUnit (department) record-ID of the requisitioner.

    The fourth element is the DirPerson (person) name of the requisitioner.

    The fifth element is the CompanyInfo (employer) data area of the requisitioner.

    The sixth element is the OMOperatingUnit (department) name of the requisitioner.

The return value has the first element so that the caller (EP code) can get all the needed data in one trip to the server.

See Also

Reference

CatProcurementCache Table