Share via


InventMovement::setAutoReserving Method [AX 2012]

Sets and checks the auto-reserving peoperty.

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
          client server public static boolean setAutoReserving(Common _buffer, [boolean _showDialog])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client public static boolean setAutoReserving(Common _buffer)

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client public static boolean setAutoReserving(Common _buffer)

  Microsoft Dynamics AX 2012 (FPK)
          client public static boolean setAutoReserving(Common _buffer)

  Microsoft Dynamics AX 2012 (SYS)
          client public static boolean setAutoReserving(Common _buffer)

Run On

Called

Parameters

  • _buffer
    Type: Common Table
    The salesLine table buffer, purchline table buffer, and so on.
  • _showDialog
    Type: boolean
    The boolean which indicates whether dialog or warning should be shown if auto reservation is not possible.

Return Value

Type: boolean
An inventMovement object.

Remarks

This method is called from the SalesTableForm class when you enter a new sales line. If the quantity that is entered must be reserved, the method checks for the available inventory. If inventory is not found and if it's set to show dialog, the method returns the InventOnHandCheckReserve dialog box to the user. From here, the user can change the quantity on the order line or ignore the dialog box and continue.

See Also

Reference

InventMovement Class