Quintiq file version 2.0
#parent: SplitterWnd/ButtonUnassignAll
Response OnClick () id:Response_SplitterWnd_ButtonUnassignAll_OnClick
{
  #keys: '[11660.0.328033272]'
  Body:
  [*
    // Unassign all
    allscenarioauth := selectset( Dialog.Data(),
                                  ScenarioAuthorization,
                                  sa,
                                  true );
    
    Dialog.UnassignUserGroup( allscenarioauth );
    
    Dialog.RefreshAllUserGroups();
  *]
  DefinitionID => /SplitterWnd/Responsedef_SplitterWnd_ButtonUnassignAll_OnClick
  Precondition:
  [*
    return counter( Dialog.Data(), ScenarioAuthorization, aut, not aut.IsAdministrator() ) > 0;
  *]
}
