Quintiq file version 2.0
#parent: lstListEntities
Response OnClick (
  structured[SubsetEntityInOptimizerPuzzleWip] selection
) id:Response_lstListEntities_MenuExcludeEntities_OnClick
{
  #keys: '[146140.1.684813259]'
  CanBindMultiple: false
  DefinitionID => /lstListEntities/Responsedef_lstListEntities_WebMenu_OnClick
  Initiator: 'MenuExcludeEntities'
  Precondition:
  [*
    // Get entity list of selection subsetEntityOptimizerPuzzleWIP
    entityList := selectset( selection,
                             Elements.Entity,
                             entity,
                             true );
    
    return DataHolderOptimizerPuzzleWIP.Data().CanIncludeExcludeEntity( feedback, entityList, OptimizerPuzzleBase::StatusIcon_Uncheck() );
  *]
  QuillAction
  {
    Body:
    [*
      // Exclude the entity
      
      // Get entity list of selection subsetEntityOptimizerPuzzleWIP
      entityList := selectset( selection,
                               Elements.Entity,
                               entity,
                               true );
      
      Form.IncludeExcludeEntities( entityList, false );
    *]
    GroupServerCalls: false
  }
}
