Skip to main content
hema.mathivathanan
Employee
May 8, 2023 1:27 PM UTC
Solved

Apply a default filter in a grid

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. 

    stefanhelzle0001
    Brainy
    May 8, 2023 2:28 PM UTC

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

    7 replies

    stefanhelzle0001
    Brainy
    May 8, 2023 1:45 PM UTC

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

    hema.mathivathanan
    Employee
    May 8, 2023 1:52 PM UTC

    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 2:04 PM UTC