| Quintiq file version 2.0 | 
| #parent: lstSubscribers_537 | 
| Response OnSelectionChanged ( | 
|   LibCal_Calendar selection | 
| ) id:Response_lstSubscribers_537_OnSelectionChanged | 
| { | 
|   #keys: '[415136.0.647401559]' | 
|   CanBindMultiple: false | 
|   DefinitionID: 'Responsedef_WebList_OnSelectionChanged' | 
|   QuillAction | 
|   { | 
|     Body: | 
|     [* | 
|       // Initialize the list by setting the checkmark for the subscribing calendars when this has not been done before. | 
|       // This should only be done when OnSelectionChanged is executed for the first time. | 
|       if( lblIsInitialized.Text() = "false" ) | 
|       { | 
|         // Get the calendars of the subscriptions. | 
|         calendars := selectset( dhEvent.Data(), LeadingParticipation.Subscription.Calendar, calendar, true, true ).Unique(); | 
|          | 
|         traverse( calendars, Elements, subscriber ) | 
|         { | 
|           lstSubscribers.ExtendCheckByKey( subscriber.Key() ); | 
|         } | 
|            | 
|         // Register that the list has been initialized. | 
|         lblIsInitialized.Text( "true" ); | 
|       } | 
|     *] | 
|     GroupServerCalls: false | 
|   } | 
| } |