Retrieve Help Text (QUHRHLPT) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The Retrieve Help Text (QUHRHLPT) API lets you generate an Extensible Markup Language (XML) source listing of the help identifiers in a panel group or menu object. The QUHRHLPT API returns the XML source in UTF-8 (CCSID 1208). You can use the QUHRHLPT API to generate XML source representing the help text as defined in help identifiers in UIM panel groups or menus.

The QUHRHLPT API returns information in one format.

Special consideration: The text for the UIM LINK tag will be displayed, but there will be no link generated in the XML source.


Authorities and Locks

Help Panel Group/Menu Authority
*READ
Help Panel Group/Menu Library Authority
*EXECUTE
Imported Help Panel Group Authority
*READ
Imported Help Panel Group Library Authority
*EXECUTE

Required Parameter Group

Receiver variable
INPUT; CHAR(*)

The variable that is to receive the information requested. For the format of the structure, see Format of the Receiver Variable.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable. If the length is larger than the size of the receiver variable, the results may be unpredictable. The minimum length is 8 bytes.

Format name
INPUT; CHAR(8)

The format of the information returned for the help identifiers that are requested. The following format name must be used:

For details about the formats, see Format of the Receiver Variable.

Help identifiers to be retrieved
INPUT; Array(*) of (*)

An array of help identifiers to be formatted. The list can contain up to 2000 items. For the format of the structure, see Format of Help Identifiers to Be Retrieved.

Number of help identifiers
INPUT; BINARY(4)

The number of help identifer names passed in on the help identifiers to be retrieved parameter.

Help identifier text
OUTPUT; Char(*)

The variable that is to receive the generated Xml output. The information returned potentially could be very large. In this case, a user space with the auto-extendable attribute set may act as a better choice for a receiver variable. For further information about using a user space, see User spaces. For the format of the structure, see Format of Help Identifier Text. If the variable is not large enough, no data may be returned.

Length of help identifier text
INPUT; BINARY(4)

The length of the help identifier text parameter. If the length specified is larger than the size of the parameter, the results may be undesirable. The minimum length is 8 bytes.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter. If this parameter is omitted, diagnostic and escape messages are issued to the application.


Format of the Receiver Variable

The receiver variable contains:

For detailed descriptions of each field in the header section, see Field Descriptions.

RHLP0100



Help Identifier Entries



Field Descriptions

Bytes available. The number of bytes of information available to be returned.

Bytes returned. The number of bytes of information returned.

Format name. The format name that was passed to this API.

Help identifier anchor name. The name of the anchor within the help document.

Help identifier found. A one-character field indicating the status of the help ID when the caller selects the help identifiers to be retrieved. The possible values are:

If none of the requested help identifiers are found, the API will also signal a CPF6E3B escape message.

Help identifier name. The name specified on the NAME attribute of a :HELP. tag in the panel group or menu object.

Number of entries. The number of entries being returned in the list data section.

Object library name. The library containing the panel group or menu object in which the help identifier was found.

Object name. A 10-character name used to identify the panel group or menu object in which the help identifier was found.

Object type. The type of the object in which the help identifier was found.

Offset to help identifiers. The offset from the start of the receiver variable to the first help identifier.

Reserved. An ignored field.

Size of each entry. The size of each entry in bytes in the list data section.


Format of Help Identifiers to Be Retrieved

The following information is accepted as input. For detailed descriptions of the fields in the table, see Field Descriptions.



Field Descriptions

Help identifier name. The name specified on the NAME attribute of a :HELP. tag in the panel group or menu object. The name must be specified using uppercase, alphabetic characters.

Object library name. The library containing the panel group or menu object in which the help identifier was found. As input, this value must be in uppercase letters. You can use these special values for the library name:

Object name. A 10-character name used to identify the panel group or menu object in which the help identifier was found. As input, this value must be in uppercase letters.

Object type. The type of the object in which the help identifier was found. This value must be *PNLGRP or *MENU.

Reserved. This field should be set to blanks.


Format of the Help Identifier Text

The following is a description of the data in the help identifier text parameter.



Field Descriptions

Bytes available. The number of bytes of information available to be returned.

Bytes returned. The number of bytes of information returned.

Data. The UIM online help formatted in Xml. This information contains:

Each formatted help identifier contains a <div> tag representing the help identifier being formatted, such as:

Error Messages



API introduced: V5R1

[ Back to top | User Interface Manager APIs | APIs by category ]