Quintiq file version 2.0
#parent: ListGroup
Response OnDrawElement (SCK_Group element) id:Response_ListGroup_OnDrawElement
{
  #keys: '[132254.0.38774750]'
  Body:
  [*
    // Draw images for violations of conditions
    // The dialog is not part of a view and image attributes are not supported in column definitions
    // There for these images can not be implemnented as image attributes.
    
    idx := 0;
    
    // Draw WINDOW_WARNING icon when group needs a view but no one is defined
    if  (   element.NeedsViewToOpen()
        and not (   element.HasViewToOpen() 
                and exists( ApplicationScope, ViewManager.GlobalCategories.AllViews, view
                          , view.Name() = element.ViewNameToOpen() )
                )             
        )
    {
      drawinfo.Image( idx, "WINDOW_WARNING" );
      idx++;
    }
    
    // Generate binding on trigger to make images update when view names change
    if ( isnull( DataHolderTriggerOnDraw.Data() ) ) {}
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_List_OnDrawElement'
}
