F1301ReadNextPreviousKey

F1301 Read Next/Previous Key

Minor Business Rule

Object Name: B1300050

Parent DLL: CMFG

Location: Client/Server

Language: C

Functional Description

Purpose

The purpose of F1301 Read Next/Previous Key is to find the next or previous key to the Table so that 
it can be displayed on the form.  This matches the F19/F20 Functionality on the AS/400 to roll to the 

next or previous key.



Setup Notes and Prerequisites


Special Logic




Technical Specification 




If Next/Previous Flag == '1', then
Select records greater than or equal to input Rate Table (RTTB)

Sort records in ascending key using RTTB, RTGR, EFTB, and NUMB

Fetch selected records until key changes

Populate data structure with new key fields

If no records found, set Error Flag = 1

Else (Next/Previous Flag == '2')

Select records less than or equal to input Rate Table (RTTB)

Sort records in descending key using RTTB, RTGR, EFTB, and NUMB

Fetch selected records until key changes

Populate data structure with new key fields

If no records found, set Error Flag = 1

End if




^

Data Structure

D1300050 - F1301 Read Next/Previous Key

Parameter NameData ItemData TypeReq/OptI/O/Both
szEquipmentRateTableRTTBcharNONENONE

A user defined code (system 13, type TB) that identifies tables of different groups of rental rates for equipment. You can set up as many 
different tables as you need for a particular organization. For example, you can set up tables for company rates, AED published rates, blue 
book rates, and so forth.

szEquipmentRateGroupRTGRcharNONENONE

A user defined code (12/C0) that identifies groups of similar pieces of equipment that are tied together for billing purposes.

jdDateBeginningEffectiveEFTBJDEDATENONENONE

The date that an address, item, transaction, or table record becomes active.  The meaning of this field differs, depending on the program.  
For example, the effective date could represent the following:    o When a change of address becomes effective.   o When a lease becomes 
effective.   o When a price becomes effective.   o When the currency exchange rate becomes effective.   o When a tax rate becomes effective. 

mnAssetItemNumberNUMBMATH_NUMERICNONENONE

An 8-digit number that uniquely identifies an asset.

cNextPreviousFlagEV01charNONENONE

1=Find Next Key
2=Find Previous Key

^

cErrorFlagEV02charNONENONE

Return '1' if error
^

Related Functions

None

Related Tables

F1301 Equipment Rates