Quintiq file version 2.0
#parent: ListRole
Response OnClick (
  structured[SWF_UserInRole] selection
) id:Response_ListRole_MenuSetPrimaryUser_OnClick
{
  #keys: '[136682.0.1031967925]'
  CanBindMultiple: false
  DefinitionID => /ListRole/Responsedef_ListRole_WebMenu_OnClick
  GroupServerCalls: true
  Initiator: 'MenuSetPrimaryUser'
  Precondition:
  [*
    return not isnull( SWF_WorkflowDataset) and SWF_WorkflowDataset.GetCurrentUser().CanProcessUserInRole( feedback, selection );
  *]
  QuillAction
  {
    Body:
    [*
      // Set as primary user                  
      SWF_WorkflowDataset.Service().TR_BatchAssignPrimaryUserToRole( selection );
    *]
  }
}
