Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method ShowOccurrences () id:Method_LibCal_gcResourceCalendars_ShowOccurrences 
 | 
{ 
 | 
  #keys: '[131094.1.1175053498]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Set the FixedFilter of ndTimeInterval according to the setting in the ActionBarPage of the gantt chart. 
 | 
    // The FixedFilter must be set to 'true' or 'false'. This can however not be done (yet?) via Quill. 
 | 
    // Workaround: use a DataHolder as FilterArgument for the NodeDefinition. Using a DataHolder of type Boolean however results in errors :-( 
 | 
    // Therefore, dhShowOccurrences is of type LibCal_CalendarRegistry, and it is filled with the CalendarRegistry-instance when 
 | 
    // btnShowOccurrences is toggled on (i.e. pressed), and cleared otherwise. 
 | 
    // In this way, showOccurrences := not isnull( dhShowOccurrences.Data() ). 
 | 
     
 | 
    registry := ifexpr( btnShowOccurrences.IsPressed(), LibCal_GlobalState.dhGlobalCalendarRegistry().Data(), 
 | 
                                                        null( LibCal_CalendarRegistry ) ); 
 | 
    dhShowOccurrences.Data( registry ); 
 | 
     
 | 
    // Show a different image when the button is pressed on or not. 
 | 
    image := ifexpr( btnShowOccurrences.IsPressed(), "CHECKEDCHECKBOX", "EMPTYCHECKBOX" ); 
 | 
    btnShowOccurrences.Image( image ); 
 | 
  *] 
 | 
} 
 |