Routines for loc_wwdb.kb


InsertLocRec

File Name

loc_wwdb.kb

Syntax

InsertLocRec(VAL InTran: BOOLEAN, REF InsertRec: LocationRec): INTEGER

Parameters

InTran - flag to indicate if currently in transaction or not

InsertRec - location record to insert into database

Returns

Integer

Side Effects

None

Description

This function inserts the location record.

Dialog Forms Called

None


UpdateLocRec

File Name

loc_wwdb.kb

Syntax

UpdateLocRec(VAL InTran: BOOLEAN, REF BeforeRec: LocationRec, REF AfterRec: LocationRec): INTEGER

Parameters

InTran: Flag to indicate if currently in transaction or not

BeforeRec: Record before changes made

AfterRec: Record after changes made

Returns

Return code from database transaction

Side Effects

None

Description

This function updates the location record based on the location_id. It updates the database record which is supposed to look like BeforeRec and update it to look like AfterRec.

Dialog Forms Called

None