Routines for rctg_wdb.kb


GetNewNodeName

File Name

rctg_wdb.kb

Syntax

GetNewNodeName(VAL s:string): STRING IS

Parameters

w - Current window

s - string

Returns

String

Side Effects

None

Description

This routine returns a new category code for the given change category.

Dialog Forms Called

rmod.dfc[addform]


InsertChangeCategoryRec

File Name

rctg_wdb.kb

Syntax

InsertChangeCategoryRec( VAL InTran: BOOLEAN, REF catRec: CATEGORY_REC ): INTEGER IS

Parameters

w - Current window

InTran - Boolean descriving if DB is already in a transaction

catRec - category record

Returns

Integer

Side Effects

None

Description

This routine inserts a new change category record.

Dialog Forms Called

None


R_FindNextCategoryName

File Name

rctg_wdb.kb

Syntax

R_FindNextCategoryName( REF current_category: STRING, REF current_description: STRING ) IS

Parameters

current_category - change category code

current_description - change category description

Returns

Nothing

Side Effects

Updates the category code and description if it finds that this category code is not unique.

Description

This routine determines if this category code already exists in the the database. If it does, then this copy is modified by prefixing the text "Copy [##] of ", where "##" is a numeric value. The description is also prefixed with this same string.

Dialog Forms Called

None


R_InqNewNameEvent

File Name

rctg_wdb.kb

Syntax

R_InqNewNameEvent( REF BSR: R_CATEGORY_REC ) IS

Parameters

BSR - State record

Returns

Nothing;

Side Effects

None

Description

This routine allows user to enter a new category code for a duplicate category.

Dialog Forms Called

None


UpdateChangeCategoryRec

File Name

rctg_wdb.kb

Syntax

UpdateChangeCategoryRec( VAL InTran: BOOLEAN, REF BeforeRec: CATEGORY_REC REF AfterRec: CATEGORY_REC): INTEGER IS

Parameters

InTran - Boolean descriving if DB is already in a transaction

BeforeRec - beginning instance data of the record

AfterRec - modified record

Returns

Integer

Side Effects

None

Description

This routine updates a given change category record.

Dialog Forms Called

None