Introduction


The status of the data between Vault and the ERP system can be displayed in the BomWindow.

The icon on the left ("Name" column) shows the status of the BOM-Header while the icon on the right ("Status" column) side shows the status of the BomRow.


The status of the BOMs and their BomRows can be modified during the "Check" and "Transfer" operations. The same applies to the according Items in the "Items" tab.


Updating States

function Check-Boms($boms) {
    foreach($bom in $boms) {
        $bom |Update-BomWindowEntity -Status Error
    }
}



  • For BomRows, the same commandlet can be used on the $row object.
function Check-Boms($boms) {
    foreach($bom in $boms) {
        foreach($row in $bom.Children) {
            $row | Update-BomWindowEntity -Status Unknown
        }
    }
}



Updating Tooltips


  • The Tooltips for BOM-Headers and BomRows can be displayed by hovering the mouse over the corresponding status icon.
function Check-Boms($boms) {
    foreach($bom in $boms) {
        $bom | Update-BomWindowEntity -Status 'New' -ToolTip "BomHeader Tooltip"
        foreach($row in $bom.Children){
                $row | Update-BomWindowEntity -Status 'Different' -ToolTip "BomRow Tooltip"
        }
    }
}



Possible States


  • In order to mark the BomRow as "Identical" between Vault and ERP, set its status to identical:
function Check-Boms($boms) {
    foreach($bom in $boms) {
        foreach($row in $bom.Children) {
            $row | Update-BomWindowEntity -Status Identical -Tooltip "The Row is identical in ERP!"
        }
    }
}



  • BomRows marked as "New" do not exist on the ERP side and will be added when clicking "Transfer"
function Check-Boms($boms) {
    foreach($bom in $boms) {
        foreach($row in $bom.Children) {
            $row | Update-BomWindowEntity -Status New -Tooltip "The Row will be added to the BOM in ERP!"
        }
    }
}



  • BomRows marked as "Remove" do not exist on Vault side and will be removed when clicking "Transfer"
function Check-Boms($boms) {
    foreach($bom in $boms) {
        foreach($row in $bom.Children) {
            $row | Update-BomWindowEntity -Status Remove -Tooltip "The Row will be removed from the BOM in ERP"
        }
    }
}



  • BomRows that are different between Vault and ERP can be marked as "Different" and will be updated on ERP side
function Check-Boms($boms) {
    foreach($bom in $boms) {
        foreach($row in $bom.Children) {
            $row | Update-BomWindowEntity -Status Different -Tooltip "Position is different!`r`nVault:'31'`r`nERP:'13'"
        }
    }
}



  • When failures occur during the "Check" operation on the ERP side, the according BomRows can be marked as "Error"
function Check-Boms($boms) {
    foreach($bom in $boms) {
        foreach($row in $bom.Children) {
            $row | Update-BomWindowEntity -Status Error -Tooltip "The row cannot be added to ERP!" 
        }
    }
}



See Also