Filter in a!facet not apply with visible is false

 Hi,

 

I Have a Record DB, and I'm using some filters with the function a!facet, only that when I put the input visible in false the facet does not work.

This is my code.

a!facet(
  name: "Usuarios",
  options: {
    a!facetOption(
      id: 1,
      name: "Analista",
      filter: a!queryFilter(
        field: "trk_usuario",
        operator: "=",
        value: loggedInUser()
      )
    ),
	a!facetOption(
      id: 2,
      name: "Supervisor",
      filter: a!queryFilter(
        field: "trk_usuario",
        operator: "<>",
        value: "aha"
      )
    )
  },
  isVisible: true(),
  defaultOption: if(
    isusermemberofgroup(loggedInUser(), cons!CR_grupoAnalista),
	"Analista",
	"Supervisor"
  )
)

 

Someone could help me??

 

Reagrds

  Discussion posts and replies are publicly visible

Parents Reply
  • Okay, then it looks like you're hitting the correct behavior for the filter, but that filter is not the correct tool for what you need. The a!facet() option is for User Filters, which are filters that your users can select in order to see only relevant records in the record list. If you want to limit the records the user is seeing without giving them the option to change it, you will need to use a Default Filter. You can find Default Filters on the Record Type configuration just above User Filters.
Children