Quintiq file version 2.0
#parent: lstParticipations
Response OnClick (
  LibCal_Participation selection
) id:Response_lstParticipations_mnuNewEvent_OnClick
{
  #keys: '[131094.0.1109706947]'
  Body:
  [*
    // Participation; create a new event.
    event := LibCal_GlobalState.CreateEvent( this, selection.Calendar(), selection.Event().EventCategory() );
    
    if( not isnull( event ) )
    {
      lstParticipations.SelectByKey( event.LeadingParticipation().Key() );
    }
  *]
  CanBindMultiple: false
  DefinitionID => /lstParticipations/Responsedef_lstParticipations_Menu_OnClick
  Initiator: 'mnuNewEvent'
}
