AddField (specify display fields) 

Top  Previous  Next

 

AddField( filefield, queuefield )

AddField

Identifies the corresponding FILE and QUEUE fields for a filedrop list column.

filefield

The fully qualified label of the FILE field. The filefield is the original source of the filedrop LIST's data.

queuefield

The fully qualified label of the corresponding QUEUE field. The queuefield is loaded from the filefield, and is the immediate source of the filedrop LIST's data.

The AddField method identifies the corresponding FILE and QUEUE fields for a filedrop list column. You must call AddField for each column displayed in the filedrop list.

You may also use the AddField method to display memory variables by specifying a variable label as the filefield parameter.

Implementation:

The AddField method uses the FieldPairsClass to manage the specified field pairs.

Example:

CODE

StFD.Init(?CLI:StCode,StateQ.Pos,StateView,StateQ,Relate:States,ThisWindow)

StFD.Q &= StateQ

StFD.AddSortOrder(StCodeKey)

StFD.AddField(STFile:StCode,StFD.Q.StCode)

StFD.AddField(STFile:StName,StFD.Q.StName)

StFD.AddUpdateField(STFile:StCode,CLI:StCode)