Quintiq file version 2.0
#parent: ListSalesDemand
Response OnDrawElement (
  SalesDemandBase element
) id:Response_ListSalesDemand_OnDrawElement
{
  #keys: '[124112.0.92386871]'
  Body:
  [*
    // Draw image for product & stocking point
    
    // Draw image for product
    productnode := select( element, ProductInStockingPoint_MP.Product_MP.ProductNode, node, node.SupplyChainView() = DataHolderView.Data() );
    if( not isnull( productnode ) and productnode.IconName() <> '' )
    {
      drawinfo.Image( 0, productnode.IconName() );
    }
    
    // Draw image for stockingpoint
    spnode := select( element, ProductInStockingPoint_MP.StockingPoint_MP.StockingPointNode, node, node.SupplyChainView() = DataHolderView.Data() );
    if( not isnull( spnode ) and spnode.IconName() <> '' )
    {
      drawinfo.Image( 1, spnode.IconName() );
    }
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_List_OnDrawElement'
  Precondition:
  [*
    return not isnull( DataHolderView.Data() );
  *]
}
