clsHelpTextCollection¶
clsHelpTextCollection is a public class in SAIF.Business that inherits clsBusinessCollectionBase and retrieves application help-text entries for a single application code.
Purpose¶
- Holds
clsHelpTextitems with typed lookup by index and by reference-key value. - Retrieves help-text rows by joining
APPLICATION_HELP_MASTERandAPPLICATION_HELP_DETAILon reference-key value. - Provides collection-level membership checks and a typed
CurrentItemview.
Context¶
- Namespace:
SAIF.Business - Assembly/package:
SAIF.Business
Public members¶
| Member | Signature | Purpose |
|---|---|---|
Item |
Default Public ReadOnly Property Item(ByVal Index As Integer) As clsHelpText |
Returns the help-text item at the specified collection index. |
Item |
Default Public ReadOnly Property Item(ByVal inReferenceKeyValue As String) As clsHelpText |
Returns the first help-text item whose ReferenceKeyValue matches the supplied key, or Nothing when no match exists. |
CurrentItem |
Public Shadows ReadOnly Property CurrentItem() As clsHelpText |
Returns the current collection item cast to clsHelpText. |
Contains |
Public Overloads Function Contains(ByVal inHelpText As clsHelpText) As Boolean |
Returns whether an equal clsHelpText object exists in the collection. |
Contains |
Public Overloads Function Contains(ByVal inReferenceKeyValue As String) As Boolean |
Returns whether any item in the collection has the supplied reference-key value. |
GetHelpTexts |
Public Shared Function GetHelpTexts(ByVal inDataportal As IDataPortalInfo, ByVal inApplicationCode As String) As clsHelpTextCollection |
Retrieves all help-text entries for the supplied application code. |
Behavioral notes¶
BeforeRetrieveusesMyCriteria.RetrieveSQL, setsCommandType.Text, and bindsApplicationCodewith length 5.AfterRetrievereads each row from the returnedIDataReader, creates aclsHelpText, loads it, and adds it to the collection.GetHelpTextsconstructs aCriteriawith the provided application code and retrieves the collection throughDataAccessLayer.RetrieveObject.- The constructor enables edit, remove, sort, and find behavior and sets
Managed = True. - This source file uses
ReferenceKeyValueas the string key for lookup and containment checks.
Constraints and usage notes¶
- The constructor is
Protected; callers obtain instances throughGetHelpTexts. - The criteria object supports retrieval only: its
CreateSQL,DeleteSQL,InsertSQL, andUpdateSQLmembers throwApplicationException. - This page documents only members declared on
clsHelpTextCollection; inherited collection behavior comes fromclsBusinessCollectionBase.
Sources¶
Business\SAIF.Business\clsHelpTextCollection.vb