PdsCatchWeight::validateNonCWItemId Method [AX 2012]

Validates that the given control, bound to an ItemId field, contains an item ID of an item that is not catch weight enabled.

client server public static boolean validateNonCWItemId(FormStringControl _control, [ItemId _previousValue])

Run On

Called

Parameters

_control
Type: FormStringControl Class
The control to validate.
_previousValue
Type: ItemId Extended Data Type
The previous value of the control, that will be restored in case validation fails.

Return Value

Type: boolean
false if the control contains the ID of a catch weight enabled item; otherwise, true (even if the item does not exist).

If the control contains a catch weight enabled item, the field is restored to the previous value.

Show: