PdsComdPricingTemplateCopy::validateOnServer Method [AX 2012]

Validates that the source and destination IDs are valid values for a copy process between templates.

server protected static boolean validateOnServer(PdsComdPricingTemplateId _copyFrom, PdsComdPricingTemplateId _copyTo)

Run On

Server

Parameters

_copyFrom
Type: PdsComdPricingTemplateId Extended Data Type
The ID of the template to copy from.
_copyTo
Type: PdsComdPricingTemplateId Extended Data Type
The ID of the template to copy to.

Return Value

Type: boolean
true if the values are correct; otherwise, false.

Validation is composed of three checks:

  1. Value is not empty

  2. Source and target IDs are not the same

  3. Source template has data available

  4. Target template is empty and accepts data

Show: