PurchTotalsSummaryController::setValidFlag Method [AX 2012]

Sets the summary record's IsValid flag only if the new value is different from the one already stored.

NoteNote

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


  Microsoft Dynamics AX 2012 R3
          server private static void setValidFlag(
            PurchId _purchId, 
            TableId _tableId, 
           [boolean _isValid, 
            Common _purchSummary])

  Microsoft Dynamics AX 2012 R2 (SYS)
          server private static void setValidFlag(
            PurchId _purchId, 
            TableId _tableId, 
           [boolean _isValid, 
            Common _purchSummary])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          server private static void setValidFlag(
            PurchId _purchId, 
            TableId _tableId, 
           [boolean _isValid])

  Microsoft Dynamics AX 2012 (FPK)
          server private static void setValidFlag(
            PurchId _purchId, 
            TableId _tableId, 
           [boolean _isValid])

Run On

Server

Parameters

_purchId
Type: PurchId Extended Data Type
Purchase order id for which to update the record
_tableId
Type: TableId Extended Data Type
Table id of the summary table
_isValid
Type: boolean
Value for the IsValid flag
_purchSummary
Type: Common Table
PurchTotalsSummary or PurchEncumbranceSummary table whose record needs to be updated
Show: