Interface BBjMappingAction::getType
Description
In BBj 8.0 and higher, this method returns a numeric constant indicating the type of MappingAction.
Syntax
Return Value |
Method |
int |
getType() |
Parameters
None.
Return Values
Returns the following:
ERROR_MAPPING_ACTION
FORMAT_MAPPING_ACTION
Example
GOSUB SetupRecordSets
action! = UserRS!.createFormatMappingAction("[LocationCode={0}].")
? "type: ",action!.getType()
? "format: ",action!.getFormat()
end
SetupRecordSets:
UserRS! = BBJAPI().createMemoryRecordSet("NAME:C(100*=10),LOCATION:C(1)")
Data! = UserRS!.getEmptyRecordData()
Data!.setFieldValue("NAME", "John Doe")
Data!.setFieldValue("LOCATION", "1")
UserRS!.insert(Data!)
Data! = UserRS!.getEmptyRecordData()
Data!.setFieldValue("NAME", "Jane Smith")
Data!.setFieldValue("LOCATION", "3")
UserRS!.insert(Data!)
Data! = UserRS!.getEmptyRecordData()
Data!.setFieldValue("NAME", "Jane Doe")
Data!.setFieldValue("LOCATION", "2")
UserRS!.insert(Data!)
Data! = UserRS!.getEmptyRecordData()
Data!.setFieldValue("NAME", "Dr Droopy")
Data!.setFieldValue("LOCATION", "0")
UserRS!.insert(Data!)
return
See Also
Working with RecordSet Mappings
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.