Quintiq file version 2.0
#parent: #root
Method RefreshDataHolder () id:Method_DialogEditScenarioAuthorization_RefreshDataHolder
{
  #keys: '[136682.0.1808730107]'
  Body:
  [*
    //Refresh dataholderUserGroupDefnitions
    ugs := MPDomainHandler::GetUserGroupDefinitions();
    su := selectuniquevalues(  DataHolderScenarioNode.Data(), ScenarioAuthorization, s, true, s.Name() );
    
    traverse( ugs, Elements, u, exists( su, Elements, e, e = u.Name() ) )
    {
       ugs.Remove( u);
    }
    DataHolderUserGroupDefinitions.Data( &ugs );
  *]
}
