clsHelpTextCollection¶
clsHelpTextCollection retrieves every clsHelpText record for one application code, running the same master/detail join as the single-entry lookup but filtered on application code alone. It is notable for inheriting the non-generic clsBusinessCollectionBase rather than the generic clsBusinessCollection(Of T) used elsewhere in the packaged set, which may reflect an older framework generation.**
Purpose¶
- Retrieves and holds every help-text record for a given application code, one
clsHelpTextper matching row, using the same master/detail join as the single-entry retrieval. (BR-AJAX-018) - Supports lookup of a specific entry within the collection by either ordinal index or reference key value, via overloaded
Item/Containsmembers. - Enforces read-only access at the collection level in the same manner as
clsHelpText: all write-shape SQL properties on itsCriteriathrow.
Context¶
- Namespace:
SAIF.Presentation.Web.Controls.V2.AJAX - Assembly/package:
SAIF.Presentation.Web.Controls.AJAX.Infragistics111(packaged inSAIF.BOF.Presentation.Web.Infragistics111) - Base class:
clsBusinessCollectionBase— the non-generic collection base class fromSAIF.Framework(packageSAIF.BOF.Framework), unlike the genericclsBusinessCollection(Of T)used by some sibling packaged libraries.* - Nested
Criteriaclass implementsIBusinessCriteria(SAIF.Framework) and suppliesRetrieveSQL(SQL IDSQL-HELP-RETRIEVE-ALL), filtered by application code only.
Public members¶
| Member | Signature | Purpose |
|---|---|---|
Item |
Default ReadOnly Property Item(index As Integer) As clsHelpText |
Returns the help-text entry at the given ordinal position |
Item |
Default ReadOnly Property Item(referenceKeyValue As String) As clsHelpText |
Returns the help-text entry matching the given reference key value |
CurrentItem |
ReadOnly Property CurrentItem As clsHelpText |
The entry at the collection's current cursor position |
Contains |
Overloads Function Contains(referenceKeyValue As String) As Boolean |
Reports whether an entry with the given reference key value exists in the collection |
GetHelpTexts |
Shared Function GetHelpTexts(dpi As IDataPortalInfo, applicationCode As String) As clsHelpTextCollection |
Factory that constructs the Criteria and calls RetrieveObject to load every matching record |
Behavioral notes¶
- Result handling casts the data-portal result to an
IDataReaderand loads oneclsHelpTextper row via a privateFill, mirroring the single-entry retrieval's mapping logic. - Because the join and column mapping are identical to
clsHelpText's single-entry retrieval, an application code with no help entries yields an empty collection rather than an error.*
Constraints and usage notes¶
- All SQL access is fully parameterized (
:ApplicationCodeonly); no string concatenation of caller-supplied values into SQL occurs in this class. - This collection is read-only end to end:
Criteria.CreateSQL,InsertSQL,UpdateSQL, andDeleteSQLall throwApplicationException(BOC.Messages.InvalidSQLProperty)if invoked.
Related documentation¶
- Index
- Overview
- Architecture
- Business rules
- Operations and processes
- Database tables
- SQL catalog
- API reference
Note: Statements marked with
*were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with**could not be confirmed; treat as unknown until verified.
Sources¶
SAIF.Presentation.Web.Controls.AJAX.Infragistics111/clsHelpTextCollection.vb