group filter

Hey guys,

In my Application have the all users Group, with in it, supervisors and developers group.

I also have a datatype with input name assignTo as type text or user

I created an interface with a rule input, i want to able to assign a task to a developer and supervisors and show the task and show two readonly grids  with supervisors and developers  with the assignTo task was created.

I think i need to use a filter for the all users group and filter the developers group and supervisors group. The problem is how do i make sure i get the right data from the assignTo rule input.

Here are my localvariables in my interface:

local!userDevelopers: if(
    a!isNullOrEmpty(a!groupsByName("TEST Developers")),
    null,
    {
      a!groupMembers(
        group: a!groupsByName("TEST Developers"),
        memberType: "USER"
      ).data
    }
  ),
  local!userSupervisors: if(
    a!isNullOrEmpty(a!groupsByName("TEST Supervisors")),
    null,
    {
      a!groupMembers(
        group: a!groupsByName("TEST Supervisors"),
        memberType: "USER"
      ).data
    }
  ),
    local!usersData: a!forEach(
    items: {local!userDevelopers, local!userSupervisors},
    expression: a!map(
      userFullName: rule!DAP_DR_UserFullName(fv!item),
      email: user(fv!item, "email"),
    )
  ),

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data