Description: Returns a requested column from the latest applicable BDP row for the current object, product and effective time read from the current record.
Calling convention: BDPField("BDPEntryName": String, "ProductEntryName": String, "TimeEntryName": String, "CustomFieldName": String)
Parameters:
BDPEntryName: entry identifying the BDP definition.
ProductEntryName: entry containing Product_ID.
TimeEntryName: entry containing the effective timestamp.
CustomFieldName: trusted BDP column name inserted directly into the SELECT list.
Returns: Selected field as a Variant, or NULL when no applicable row or field value exists. NULL CustomFieldName and a missing current DBForm can leave the result undefined.
Availability: Default; requires a current object and record. CustomFieldName must be a trusted existing column.
Example:
Currency := BDPField("NominalRate", "Product", "StartTime", "CURRENCY");