Routines for probapi.kb


CreateProblemWindow

File Name

probapi.kb

Syntax

CreateProblemWindow

Parameters

whdl: WINDOW - current Call Registration or PSN

Returns

None

Side Effects

None

Description

Adds whdl as the current Problem Window in the global list of Problem windows.

Dialog Forms Called

None


DestroyProblemWindow

File Name

probapi.kb

Syntax

DestroyProblemWindow

Parameters

whdl: WINDOW - current Call Registration or PSN

Returns

None

Side Effects

None

Description

Removes whdl from the global list of Problem windows.

Dialog Forms Called

None


DoProblemInquiry

File Name

probapi.kb

Syntax

boolRet:= DoProblemInquiry;

Parameters

None

Returns

BOOLEAN - TRUE if the Problem Inquiry should be

displayed.

Side Effects

None

Description

This function will return TRUE if the Problem Inquiry window should be displayed once Work With Problem has been selected.

Dialog Forms Called

None


DoTransferInquiry

File Name

probapi.kb

Syntax

boolRet:= DoTransferInquiry;

Parameters

None

Returns

BOOLEAN - TRUE if the Transfer Inquiry should be

displayed.

Side Effects

None

Description

This function will return TRUE if the Transfer Inquiry window should be displayed once Work With Transfer has been selected.

Dialog Forms Called

None


GetNextProblemId

File Name

probapi.kb

Syntax

GetNextProblemId ( problem_id );

Parameters

STRING - Next available problem ID

Returns

Nothing

Side Effects

None

Description

This function returns the next available Problem ID. If the application has pre-fetched an id, that ID is returned and the previous value is nulled out.

Dialog Forms Called

None


GiveProblemWindowFocus

File Name

probapi.kb

Syntax

GiveProblemWindowFocus

Parameters

whdl: WINDOW - current Call Registration or PSN

Returns

None

Side Effects

None

Description

Sets whdl as the current Problem Window in the global list of Problem windows.

Dialog Forms Called

None


InquireProblems

File Name

probapi.kb

Syntax

intRet:= InquireProblems ( msgWindow, ProblemRec, doInquiryProcess, allowSelect, doWorkWithProcess );

Parameters

WINDOW - Message Window or the direct parent to this

window.

ProblemRecord - The reference parameter that will accept

the Problem information if one is selected.

BOOLEAN - Display and process the Problem Inquiry screen

BOOLEAN - Allow a record to be selected from the Work

with process

BOOLEAN - Display and process the Problems Work with

Screen

BOOLEAN - Display Work with Window in a Modal fashion

Returns

INTEGER - Last return value from the dialog creation

process. It the Work with screen is displayed

will return the value from the DlgCreate() else

will return the value from the Inquiry

DlgBox().

Side Effects

None

Description

This function is used to display and process the Problem Inquiry and Problem Work with screens. If the Inquiry flag is TRUE will process the Inquiry and create a SQL search string based on the values entered. If the Work with flag is TRUE will display the Work with screen with either all the Problems ( Inquiry flag = FALSE ) or a list of Problems matching the search criteria entered in the Inquiry screen ( Inquiry flag = TRUE ). If the user is allowed to select values then the ProblemRecord will be populated with the Problem information selected by the user.

Dialog Forms Called

None


ProblemInquiryEvent

File Name

probapi.kb

Syntax

ProblemInquiryEvent ( REF probData: ProblemRecord )

Parameters

probData: ProblemRecord

Returns

None

Side Effects

None

Description

Event Handler for the Problem Inquiry dialog.

Dialog Forms Called

None