| Quintiq file version 2.0 | 
| #parent: ListCustomerOrders | 
| Response OnDrawElement ( | 
|   SalesDemandBase element | 
| ) id:Response_ListCustomerOrders_OnDrawElement | 
| { | 
|   #keys: '[124112.0.92386871]' | 
|   Body: | 
|   [* | 
|     // Draw image for invalid customer order, product & stocking point | 
|      | 
|     // Draw image for invalid data | 
|     if( not element.IsValidData() ) | 
|     { | 
|       drawinfo.Image( 0, 'CONSTRAINTVIOLATIONS' ); | 
|     } | 
|      | 
|     // 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( 1, 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( 2, spnode.IconName() ); | 
|     } | 
|   *] | 
|   CanBindMultiple: false | 
|   DefinitionID: 'Responsedef_List_OnDrawElement' | 
|   Precondition: | 
|   [* | 
|     return not isnull( DataHolderView.Data() ); | 
|   *] | 
| } |