Navigation: ABC Library Reference > FileDropClass > FileDropClass Methods >====== AddUpdateField (specify field assignments) ====== | |
AddUpdateField( source, target )
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