Use dynamic functions

Use the following to select all the login IDs from a department to make a list:

select("name","operator","department",[$dept])

Use the following to select all the approvers for a certain group:

select("approvers","cm3groups","name",[$cm3group])