Routines for daid.kb


AllAidsEvent

File Name

daid.kb

Syntax

AllAidsEvent(REF Diags: DiagnosticType);

Parameters

Diags-a record that holds all types of diagnostics

Returns

None

Side Effects

updates several global variables

Description

This event handler handles the Diagnostic dialog box.

Dialog Forms Called

daid.dfc[htn_workwithaids_content]

daid.dfc[cmn_workwithaids_content]

daid.dfc[erm_workwithaids_content]

daid.dfc[adl_workwithaids_content]

hyprtree.dfc[hypernode_content]

hyprtree.dfc[cbr_content]

daid.dfc[htn_workwithaids]

daid.dfc[cmn_workwithaids]

daid.dfc[erm_workwithaids]

daid.dfc[adl_workwithaids]

hyprtree.dfc[hypernode]

hyprtree.dfc[cbr]


DAID_CountDiags

File Name

daid.kb

Syntax

DAID_RequestStartDiagnostics(VAL pwhdl: WINDOW);

Parameters

pwhdl: parent of the diagnostic notebook

Returns

None

Side Effects

updates several global variables

Description

Pops the diagnostic notebook.

Dialog Forms Called

daid.dfc[workwithaids]

solution.dfc[desc_entry]


DAID_RequestAid

File Name

daid.kb

Syntax

DAID_RequestAid(VAL DiagContext: DIAG_MATCH_TYPE, REF Aids: CLIENT_RECORD);

Parameters

DiagContext - diagnostic context record

Aids - result from Aid lookup for DiagContext

Returns

INTEGER

Side Effects

updates several global variables

Description

A list of Diagnostic Aids are returned for DiagContext. If a failure has occurred, a negative value is returned.

Dialog Forms Called

None


DAID_RequestStartDiagnostics

File Name

daid.kb

Syntax

DAID_RequestStartDiagnostics(VAL pwhdl: WINDOW);

Parameters

pwhdl - parent of the Diagnostic dialog box

Returns

None

Side Effects

updates several global variables

Description

Opens the Diagnostic dialog box.

Dialog Forms Called

daid.dfc[all_aids]


GetEntrypoint

File Name

daid.kb

Syntax

GetEntrypoint(VAL pwhdl: WINDOW, VAL hypernodes: LIST OF DIAG_AID_REC);

Parameters

pwhdl - this window is the parent of the selected node window

Hypernodes - list of hypernodes from which to select

Returns

INTEGER

Side Effects

updates several global variables

Description

Opens the Hypernode Selection dialog box, and returns the node that was selected.

Dialog Forms Called

daid.dfc[hyper_selectnode]


GetWindowContext

File Name

daid.kb

Syntax

GetWindowContext(VAL whdl: WINDOW, VAL aid_type: INTEGER);

Parameters

whdl - current problem window

aid_type - aid type that was requested

Returns

DIAG_MATCH_TYPE

Side Effects

None

Description

whdl is searched for various values needed by a diagnostic lookup, and the returning DIAG_MATCH_TYPE is set up for a diagnostic lookup.

Dialog Forms Called

None


LoadEntryPoints

File Name

daid.kb

Syntax

LoadEntryPoints(REF Hypernodes: LIST OF DIAG_AID_REC);

Parameters

Hypernodes - a list of hypernodes either preloaded or

loaded at create time

Returns

None

Side Effects

updates several global variables

Description

If more than one hypernode was found as the result of a lookup, or none was found, a hypernode must be manually loaded. This event allows for selecting a node.

Dialog Forms Called

None


PopHotNews

File Name

daid.kb

Syntax

PopHotNews(pwhdl: WINDOW)

Parameters

pwhdl - this is the current problem window

Returns

None

Side Effects

None

Description

A HotNews lookup is performed, and if there are more than 0 matches, the diagnostic system starts.

Dialog Forms Called

None


TypeInContext

File Name

daid.kb

Syntax

TypeInContext(VAL Type: INTEGER, VAL Context: INTEGER)

Parameters

Type - aid type

Context - bitmask of all available aids

Returns

BOOLEAN

Side Effects

None

Description

If Type is included in context, TRUE is returned. Otherwise, FALSE is returned.

Dialog Forms Called

None