Picklist Class |
Namespace: NetQuarry
The Picklist type exposes the following members.
| Name | Description | |
|---|---|---|
| Picklist |
standard ctor, creates a new Picklist
| |
| Picklist(String) |
Preferred constructor providing a name for the picklist in order to improve devlog warnings
and for easier debugging.
| |
| Picklist(PicklistItemInfo, IAppContext) |
Overloaded constructor, creates a new Picklist and populates it.
|
| Name | Description | |
|---|---|---|
| ComboList |
Returns a string with only the displaytext items, delimted with the pipe (|) character
| |
| Count |
Returns the number of PicklistItems in the Picklist.
| |
| DataMap | ||
| Discrim |
Gets/Sets the discriminator value
| |
| HasDiscrim |
Gets whether the picklist uses a discrim. Read-only.
| |
| Item |
This object's indexer.
| |
| ItemInfo |
Gets/Sets the picklist's PicklistItemInfo which maintains many aspects of the picklist
including the picklist's PicklistAttrs.
| |
| LateBound |
Gets whether the picklist is set up for Late Bound use. Read-only.
| |
| MaxTextLen |
Gets the MaxLength of a display text value in the list. Note that this value
is only valid after Refresh has been called.
| |
| Name |
Returns the name of the pickList.
| |
| UsesKeyClause |
Gets whether the picklist uses a late bound SQL containing a KEY clause. Read-only.
|
| Name | Description | |
|---|---|---|
| Add |
Add a PicklistItem object to the collection.
| |
| CacheName |
Generates the fully-qualified cache name for the specified picklist item.
| |
| Clear |
Clears the collection.
| |
| Clone |
Returns a copy of the Picklist.
| |
| CreateInstance |
Creates or clones the Picklist represented by the provided PicklistItemInfo object.
| |
| DisplayTextList |
Gets the delimited list of DisplayText for the items in the picklist.
| |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetAltText |
Returns the alternative text for a specified keyValue.
| |
| GetByName |
Gets the PicklistItem information for the item with the specified name.
Note that StandardPicklist items always have a name distinct from its
text that serves as a constant. This is not necessarily true for the
other picklist types.
| |
| GetDisplayText(Object, String) |
Returns the display text for a specified keyValue.
| |
| GetDisplayText(Object, String, GetListOptions) |
Returns the display text for a specified keyValue per the specified GetListOptions.
Note that you can use GetDisplayText(String, Object, String, GetListOptions) to perform a safe lookup when it is possible that
the picklist may not exist.
| |
| GetDisplayTextClip |
Returns a 'clip' string of the display text separated by the delimiter.
Note that duplicates will be not be included.
| |
| GetFirstValueMatch(String, String, Object) |
Finds the first matching item in the collection. The search always starts at the beginning of the list. And performs an exact match search.
| |
| GetFirstValueMatch(String, String, GetListOptions, Object) |
Finds the first matching item in the collection. The search always starts at the beginning of the list. And performs a starts with search,
or exact match search, as specified in opts.
Note that if IncludeDisabled is specified, a disabled item will only be matched if there are no matching enabled items.
| |
| GetFirstValueMatch(String, String, Boolean, Boolean, Object) |
Finds the first matching item in the collection. The search always starts at the beginning of the list. And performs a starts with search,
or exact match search, as specified.
Note that if allowDisabled is specified, a disabled item will only be matched if there are no matching enabled items.
| |
| GetFirstValueMatchStartsWith |
Finds the first matching item in the collection. The search always starts at the beginning of the list. And performs a starts with search.
| |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetItem |
Return a PicklistItem matching the specified key/discrim.
| |
| GetList |
Returns the IList collection of PicklistItem items per the specified options.
Note that any discrimValue comparison is case-insensitive.
| |
| GetTagString(String, String) |
Returns a 'tag' string of the picklist contents.
| |
| GetTagString(String, String, PicklistTagStringFlags) |
Returns a 'tag' string of the picklist contents per the specified PicklistTagStringFlags.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetValue |
Returns the value of the object matching the supplied display text.
| |
| HasItems |
Determines if the picklist has any items, excluding any null entry. Note that disabled and
discrimmed-out items are included.
| |
| ItemValueStatus(String, String) |
Determine the PicklistItemStatus of a value in the picklist.
| |
| ItemValueStatus(String, String, String) |
Determine the PicklistItemStatus of a value in the picklist also returning the item's displayText.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Refresh |
Populates the collection.
| |
| Sort |
Sort the picklist per the picklist's PicklistAttrs.
| |
| Sort(PicklistAttrs) |
Sort the picklist per the specified PicklistAttrs.
| |
| ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |
Picklists are of a variety of PicklistType:
For the most part, Picklists tend to have the LimitToList attribute set. This attribute means that the list has a key (hidden) and text (displayed). For example, if you had a column in a database that held an integer ID for a customer status you might create a Picklist like this:
| Key | Data |
|---|---|
| 0 | Active |
| 1 | Inactive |