Share via


ProjPostCostJournal.checkTrans Method [AX 2012]

Checks that the mandatory transaction fields contain values.

Syntax

public boolean checkTrans([boolean throwerror])

Run On

Server

Parameters

  • throwerror
    Type: boolean
    Indicates whether an error should be thrown when a validation fails. May be set to nullNothingnullptrunita null reference (Nothing in Visual Basic). The default value is true; optional.

Return Value

Type: boolean
true if the basic fields contain values. The following fields are checked by this routine:

  • Project ID

  • Category ID

  • Currency ID for Sales

  • Transaction Date

Remarks

The throwerror parameter is not used in this method and is provided for extending the functionality through an override method. This method will call the checkFailed method for all checked fields that do not contain a valid value.

See Also

Reference

ProjPostCostJournal Class