Skip to main content
hema.mathivathanan
May 8, 2023
Solved

Apply a default filter in a grid

  • May 8, 2023
  • 7 replies
  • 0 views

Hi, 

I have a read only grid, which has various filters. For one of my filter, I have the different stages (New, In progress, Done). 
When the grid is viewed from the front end, I want to initially filter out the stage ( Done) and show the remaining stages.

In that case, when a user want to see the "Done" records, they can cancel out the filter.

Can someone help here. 

    Best answer by stefanhelzle0001

    Please check the documentation again. It uses the names of the filters for selecting default options.

    7 replies

    stefanhelzle0001
    Brainy
    May 8, 2023

    That would be a normal user filter defined in the record, with a default set to hide the done ones.

    hema.mathivathanan
    May 8, 2023

    I am using an expression for my filter. In that case, under default option parameter in a!recordFilterList, how should I define it. 
    Should I mention like below, so that it shows only the new and in progress ones and filter outs the done records?
    defaultoption: and("new","in progress"). 

    stefanhelzle0001
    Brainy
    May 8, 2023