MainAccount.checkForPosting Method

Checks whether the current record is valid for posting.

Syntax

Note

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.

  Microsoft Dynamics AX 2012 R3
          public boolean checkForPosting(
           [LedgerPostingType _postingType, 
            boolean _isMandatory, 
            boolean _validateIsBlockedForManualEntry, 
            boolean _checkUser, 
            LedgerPostingMessageLog _ledgerPostingMessageCollection])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public boolean checkForPosting(
           [LedgerPostingType _postingType, 
            boolean _isMandatory, 
            boolean _validateIsBlockedForManualEntry, 
            boolean _checkUser])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public boolean checkForPosting(
           [LedgerPostingType _postingType, 
            boolean _isMandatory, 
            boolean _validateIsBlockedForManualEntry, 
            boolean _checkUser])

  Microsoft Dynamics AX 2012 (FPK)
          public boolean checkForPosting(
           [LedgerPostingType _postingType, 
            boolean _isMandatory, 
            boolean _validateIsBlockedForManualEntry, 
            boolean _checkUser])

  Microsoft Dynamics AX 2012 (SYS)
          public boolean checkForPosting(
           [LedgerPostingType _postingType, 
            boolean _isMandatory, 
            boolean _validateIsBlockedForManualEntry, 
            boolean _checkUser])

Run On

Called

Parameters

  • _isMandatory
    Type: boolean
    true if it is mandatory; otherwise, false.
  • _validateIsBlockedForManualEntry
    Type: boolean
    true to validate whether it is blocked for manual entry; otherwise, false.
  • _checkUser
    Type: boolean
    true to check the user; otherwise, false.

Return Value

Type: boolean
true if the current record is valid for posting; otherwise, false.

See Also

Reference

MainAccount Table