limj
2023-10-24 93652435728de839582440eefd5122c281181d35
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
Quintiq file version 2.0
#parent: lstSubscribers
Response OnClickElement (
  LibCal_Calendar element
) id:Response_lstSubscribers_OnClickElement
{
  #keys: '[131094.0.1184457669]'
  Body:
  [*
    // Toggle the participation of the calendar.
    selection := construct( LibCal_Calendars );
    selection.Add( element );
    
    Dialog.ToggleSubscription( selection );
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_List_OnClickElement'
  Precondition:
  [*
    // Only execute when clicked on the CheckBox image (16x16 pixels) in list,
    // and the element is not the current calendar (cannot uncheck self).
    return x < 16
           and element <> dhLeadingParticipation.Data().Calendar();
  *]
}