User Tools

Site Tools


addupdatefield_specify_field_assignments_.htm
Navigation:  ABC Library Reference > FileDropClass > FileDropClass Methods >====== AddUpdateField (specify field assignments) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

AddUpdateField( source, target )

blk2blue.jpg

AddUpdateField Identifies a source field and its corresponding target or destination field.
source The fully qualified label of the field to copy from when the end user selects a filedrop list item.
target The fully qualified label of the field to copy to when the end user selects a filedrop list item.

The AddUpdateField method identifies a source field and its corresponding target or destination field that receives the source field's contents when the end user selects a filedrop list item.

You may call the AddUpdateField multiple times to accomplish multiple field assignments on end user selection.

Implementation:

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

The TakeEvent method performs the specified copy.

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)

See Also:     TakeEvent

addupdatefield_specify_field_assignments_.htm.txt · Last modified: 2021/04/15 15:56 by 127.0.0.1