Quintiq file version 2.0
#parent: PanelAssignedButtons/ButtonUnassignedAll_646
Response OnClick () id:Response_PanelAssignedButtons_ButtonUnassignedAll_OnClick
{
  #keys: '[136682.0.1808720932]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    return counter( DataHolderScenarioNode.Data(), ScenarioAuthorization, aut, not aut.IsAdministrator() ) > 0;
  *]
  QuillAction
  {
    Body:
    [*
      // Unassign all
      allscenarioauth := selectset( DataHolderScenarioNode.Data(),
                                    ScenarioAuthorization,
                                    sa,
                                    true );
      
      Form.UnassignUserGroup( allscenarioauth );
      Form.RefreshDataHolder();
    *]
    GroupServerCalls: false
  }
}
