chenqinghong
2024-05-07 3ec06a830367465068963156dcc1d8e522571c13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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'
}