Click or drag to resize

PicklistsGetDisplayText Method

For the specified picklist this method returns the display text for a specified keyValue per the specified GetListOptions if the picklist is found, otherwise a null/empty string. If the picklist is found the actual lookup is performed by GetDisplayText(Object, String, GetListOptions).

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public string GetDisplayText(
	string picklist,
	Object keyValue,
	string discrim = null,
	GetListOptions options = 
)

Parameters

picklist
Type: SystemString
The picklist to use for the lookup.
keyValue
Type: SystemObject
The key value to search for.
discrim (Optional)
Type: SystemString
The discriminator of the item to search for. If the picklist uses discrims then both key and discrim must match the item's key and discrim to be considered a match unless the IgnoreDiscrim option is specified. If that option is specified, and a key + discrim match is not found, a key-only search will be performed.
options (Optional)
Type: NetQuarryGetListOptions
Options specifying how to find the item.

Return Value

Type: String
The item's display text if found, otherwise a null/empty string.
See Also