SQL-001: Retrieve help text by application code and reference key¶
This statement retrieves a single help entry — its reference-key description and free-text help body — by joining APPLICATION_HELP_MASTER to APPLICATION_HELP_DETAIL on the reference key value, filtered by application code and reference key value. It backs clsHelpText.GetHelpText, which feeds the HoverHelp control's content.
Application code identifying the owning application; supplied to clsHelpText.GetHelpText(dpi, inApplicationCode, inReferenceKeyValue). Bound in BeforeRetrieve via DataRequest.AddParm("ApplicationCode", MyCriteria.ApplicationCode, 5).
:ReferenceKeyValue
Input
String
40
Reference key identifying the specific help entry (typically a control/field key). Bound in BeforeRetrieve via DataRequest.AddParm("ReferenceKeyValue", MyCriteria.ReferenceKeyValue, 40).
-- Retrieve one help entry by application code and reference keySelectAPPLICATION_HELP_MASTER.APPLICATION_CODEasApplicationCode,APPLICATION_HELP_MASTER.REFERENCE_KEY_DESCRasReferenceKeyDescription,APPLICATION_HELP_MASTER.REFERENCE_KEY_VALUEasReferenceKeyValue,APPLICATION_HELP_DETAIL.HELP_TEXTasHelpTextFromAPPLICATION_HELP_MASTER,APPLICATION_HELP_DETAILWhereAPPLICATION_HELP_MASTER.REFERENCE_KEY_VALUE=APPLICATION_HELP_DETAIL.REFERENCE_KEY_VALUEANDAPPLICATION_HELP_MASTER.APPLICATION_CODE=:ApplicationCodeANDAPPLICATION_HELP_MASTER.REFERENCE_KEY_VALUE=:ReferenceKeyValue