Skip to content

SQL-002: Retrieve help text list by application code

This statement retrieves every help entry for an application code by joining APPLICATION_HELP_MASTER to APPLICATION_HELP_DETAIL on the reference key value, filtered by application code only. It backs clsHelpTextCollection.GetHelpTexts, which loads one clsHelpText per matching row.

Classification

Field Value
SQL ID SQL-002
Operation type Read
Execution method Inline SQL (VB & _ string concatenation)
Database Oracle
Schema [unqualified]**
Command type Text
Business object clsHelpTextCollection
Criteria property RetrieveSQL
Lifecycle method BeforeRetrieve / AfterRetrieve

Parameters

Parameter Direction Type Max length Description
:ApplicationCode Input String 5 Application code whose entire help-text set is loaded; supplied to clsHelpTextCollection.GetHelpTexts(dpi, inApplicationCode). Bound in BeforeRetrieve via DataRequest.AddParm("ApplicationCode", MyCriteria.ApplicationCode, 5).

Tables

Table Access Columns used
APPLICATION_HELP_MASTER SELECT, JOIN APPLICATION_CODE, REFERENCE_KEY_DESCR, REFERENCE_KEY_VALUE
APPLICATION_HELP_DETAIL SELECT, JOIN HELP_TEXT, REFERENCE_KEY_VALUE

Sample SQL

-- Retrieve all help entries for an application code
Select
  APPLICATION_HELP_MASTER.APPLICATION_CODE as ApplicationCode,
  APPLICATION_HELP_MASTER.REFERENCE_KEY_DESCR as ReferenceKeyDescription,
  APPLICATION_HELP_MASTER.REFERENCE_KEY_VALUE as ReferenceKeyValue,
  APPLICATION_HELP_DETAIL.HELP_TEXT as HelpText
From
  APPLICATION_HELP_MASTER,
  APPLICATION_HELP_DETAIL
Where
  APPLICATION_HELP_MASTER.REFERENCE_KEY_VALUE = APPLICATION_HELP_DETAIL.REFERENCE_KEY_VALUE
  AND APPLICATION_HELP_MASTER.APPLICATION_CODE = :ApplicationCode

Operations and processes

Business rules

Sources

  • SAIF.Presentation.Web.Controls.AJAX.Infragistics111/clsHelpTextCollection.vb