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
Code
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
Code
Parameters
contact
Type: Record Contact
Contact record to validate.
Validate()
Validate and auto-complete a Customer address.
Syntax
Code
Parameters
customer
Type: Record Customer
Customer record to validate.
Validate()
Validate and auto-complete a Vendor address.
Syntax
Code
Parameters
vendor
Type: Record Vendor
Vendor record to validate.
Validate()
Validate and auto-complete a alternative address.
Syntax
Code
Parameters
altAddress
Type: Record "Alternative Address"
"Alternative Address" record to validate.
Validate()
Validate and auto-complete a order address.
Syntax
Code
Parameters
orderAddress
Type: Record "Order Address"
"Order Address" record to validate.
Validate()
Validate and auto-complete a ship-to address.
Syntax
Code
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
Code
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
Code
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
Code
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
Code
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
Code
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
Code
Parameters
value
Type: Boolean
New value to set for HideAddressSelection


