ReasonFormTable::reasonCodeLookupMultipleAccounts Method [AX 2012]

Displays a filtered version of the Reasons lookup form to the user based on the AccountType and OffsetAccountType parameters.

client server public static void reasonCodeLookupMultipleAccounts(
    FormControl _formControl, 
    LedgerJournalACType _offsetAccountType, 
    LedgerJournalACType _accountMainType, 
   [boolean _useMainAccount, 
    boolean _useOffsetAccount, 
    LedgerJournalACType _accountType, 
    boolean _useAccountType])

Run On

Called

Parameters

_formControl
Type: FormControl Class
The form control on which the lookup will be performed.
_offsetAccountType
Type: LedgerJournalACType Enumeration
The value of the offset account type selected on the calling form.
_accountMainType
Type: LedgerJournalACType Enumeration
The value of the main account type selected on the calling form.
_useMainAccount
Type: boolean
true when an account number value has been entered on the calling form; otherwise, false. optional.
_useOffsetAccount
Type: boolean
true when an offset account number value has been entered on the calling form; otherwise false.
optional.
_accountType
Type: LedgerJournalACType Enumeration
The value of the account type selected on the calling form. optional.
_useAccountType
Type: boolean
true when an account number value has been entered on the calling form; otherwise false. optional.

This method is called when the user opens the reason code lookup form. It allows an OR clause when selecting the fields to show

Show: