bdev.Address Validation API
The bdev.Address Validation API codeunit object is providing the Address Validation and Address Completion functionalities and allows other extensions to integrate.
Properties
Property | Value |
---|---|
Object Type | Codeunit |
Object Subtype | Normal |
Object ID | 5523600 |
Accessibility Level | Public |
Procedures
Validate()
Validate and auto-complete a address given in the validation buffer.
Syntax
[Boolean] := Validate(address: Record "bdev.Address Validation Buffer" temporary, var validatedAddress: Record "bdev.Address Validation Buffer" temporary)
Parameters
address
Type: Record “bdev.Address Validation Buffer”
Temporary “bdev.Address Validation Buffer” record containing the address data to validate.
validatedAddress
Type: Record “bdev.Address Validation Buffer”
Temporary “bdev.Address Validation Buffer” record containing the validated or completed address data.
Return
Boolean
False if an runtime error occurred. Otherwise true.
Validate()
Validate and auto-complete a Contact address.
Syntax
Validate(var contact: Record Contact)
Parameters
contact
Type: Record Contact
Contact record to validate.
Validate()
Validate and auto-complete a Customer address.
Syntax
Validate(var customer: Record Customer)
Parameters
customer
Type: Record Customer
Customer record to validate.
Validate()
Validate and auto-complete a Vendor address.
Syntax
Validate(var vendor: Record Vendor)
Parameters
vendor
Type: Record Vendor
Vendor record to validate.
Validate()
Validate and auto-complete a alternative address.
Syntax
Validate(var altAddress: Record "Alternative Address")
Parameters
altAddress
Type: Record “Alternative Address”
“Alternative Address” record to validate.
Validate()
Validate and auto-complete a order address.
Syntax
Validate(var orderAddress: Record "Order Address")
Parameters
orderAddress
Type: Record “Order Address”
“Order Address” record to validate.
Validate()
Validate and auto-complete a ship-to address.
Syntax
Validate(var shipToAddress: Record "Ship-To Address")
Parameters
shipToAddress
Type: Record “Ship-To Address”
“Ship-To Address” record to validate.
AddressValidationEnabled()
Test whether the address validation is enabled for the specific table or not.
Syntax
[Boolean] := AddressValidationEnabled(tableNo: Integer)
Parameters
tableNo
Type: Integer
Object ID of the database table.
Return
Boolean
True, if address validation is enabled. Otherwise false.
GetValidationBuffer()
Fill the validation buffer table with Contact record data.
Syntax
GetValidationBuffer(contact: Record Contact, var buffer: Record "bdev.Address Validation Buffer" temporary)
Parameters
contact
Type: Record Contact
Contact record to validate the address with.
buffer
Type: Record “bdev.Address Validation Buffer”
Temporary “bdev.Address Validation Buffer” record to be filled with the table data.
GetValidationBuffer()
Fill the validation buffer table with Customer record data.
Syntax
GetValidationBuffer(customer: Record Customer, var buffer: Record "bdev.Address Validation Buffer" temporary)
Parameters
customer
Type: Record Customer
Customer record to validate the address with.
buffer
Type: Record “bdev.Address Validation Buffer”
Temporary “bdev.Address Validation Buffer” record to be filled with the table data.
GetValidationBuffer()
Fill the validation buffer table with Vendor record data.
Syntax
GetValidationBuffer(vendor: Record Vendor, var buffer: Record "bdev.Address Validation Buffer" temporary)
Parameters
vendor
Type: Record Vendor
Vendor record to validate the address with.
buffer
Type: Record “bdev.Address Validation Buffer”
Temporary “bdev.Address Validation Buffer” record to be filled with the table data.
GetValidationBuffer()
Fill the validation buffer table with Alternative Address record data.
Syntax
GetValidationBuffer(altAddress: Record "Alternative Address", var buffer: Record "bdev.Address Validation Buffer" temporary)
Parameters
altAddress
Type: Record “Alternative Address”
Alternative Address record to validate the address with.
buffer
Type: Record “bdev.Address Validation Buffer”
Temporary “bdev.Address Validation Buffer” record to be filled with the table data.
SetHideAddressSelection()
Sets to hide or show (default) the address validation selection if mutliple addresses where received.
Syntax
SetHideAddressSelection(value: Boolean)
Parameters
value
Type: Boolean
New value to set for HideAddressSelection