Page "Customer Card"
Provides detailed view and management of an individual customer's master data.
Properties
| Name | Value |
|---|---|
| Caption | Customer Card |
| PageType | Card |
| RefreshOnActivate | True |
| SourceTable | Table Microsoft.Sales.Customer.Customer |
| AdditionalSearchTerms | Customer Profile, Client Details, Buyer Information, Customer Data, Customer View, Client Profile, Customer Detail, Client Info |
| AboutTitle | About customer details |
| AboutText | With the **Customer Card** you manage information about a customer and specify the terms of business, such as payment terms, prices and discounts. From here you can also drill down on past and ongoing sales activity. |
Methods
RunReport
Runs the specified report filtered to a single customer.
procedure RunReport(ReportNumber: Integer; CustomerNumber: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| ReportNumber | Integer |
The ID of the report to run. |
| CustomerNumber | Code[20] |
The customer number to filter the report. |
Events
OnAfterActivateFields
Raised after activating the fields on the customer card.
[IntegrationEvent(True,False)]
local procedure OnAfterActivateFields(var Customer: Record Customer)
Parameters
| Name | Type | Description |
|---|---|---|
| Customer | Table Microsoft.Sales.Customer.Customer |
The customer record. |
OnAfterOnOpenPage
Raised after opening the customer card page.
[IntegrationEvent(True,False)]
local procedure OnAfterOnOpenPage(var Customer: Record Customer; xCustomer: Record Customer)
Parameters
| Name | Type | Description |
|---|---|---|
| Customer | Table Microsoft.Sales.Customer.Customer |
The current customer record. |
| xCustomer | Table Microsoft.Sales.Customer.Customer |
The previous customer record. |
OnBeforeCreateCustomerFromTemplate
Raised before creating a customer from a template.
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateCustomerFromTemplate(var NewMode: Boolean; var Customer: Record Customer)
Parameters
| Name | Type | Description |
|---|---|---|
| NewMode | Boolean |
Indicates whether the page is in new mode. |
| Customer | Table Microsoft.Sales.Customer.Customer |
The customer record to be created. |
OnBeforeGetSalesPricesAndSalesLineDisc
Raised before loading sales prices and line discounts.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetSalesPricesAndSalesLineDisc(var LoadOnDemand: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| LoadOnDemand | Boolean |
Set to control whether prices load on demand. |
OnCreateCustomerFromTemplateOnBeforeCurrPageUpdate
Raised before updating the current page after creating a customer from template.
[IntegrationEvent(False,False)]
local procedure OnCreateCustomerFromTemplateOnBeforeCurrPageUpdate(var Customer: Record Customer)
Parameters
| Name | Type | Description |
|---|---|---|
| Customer | Table Microsoft.Sales.Customer.Customer |
The newly created customer record. |
OnBeforeOnOpenPage
Raised before opening the customer card page.
[IntegrationEvent(True,False)]
local procedure OnBeforeOnOpenPage(var Customer: Record Customer)
Parameters
| Name | Type | Description |
|---|---|---|
| Customer | Table Microsoft.Sales.Customer.Customer |
The customer record. |
OnBeforeStartBackgroundCalculations
Raised before starting background calculations on the customer card.
[IntegrationEvent(True,False)]
local procedure OnBeforeStartBackgroundCalculations(var Customer: Record Customer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| Customer | Table Microsoft.Sales.Customer.Customer |
The customer record. |
| IsHandled | Boolean |
Set to true to skip background calculations. |