How to dynamically set value on a default or user filter on Record Type?

Certified Senior Developer

Hi,

I'm trying to access a RecordType I've created in an interface.

To do this, I've created my Gridfield and added all the RecordType columns. I did the same with index.
Now, that the grid is well displayed, is there any way to set the value of default filters or user filters?

or enable/disable one of them please?

I find it hard to imagine that my RecordType grid can be filtered only by a manual user action... I hope not.

Any help would be greatly appreciated.

Regards

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Shikha

    Thank you,

    Yes I can add/remove a user filter, and then use the "Manage my filters" functionalityy to save a default filter value... but i don't see any way to set a default value filter programatically (without using "Manage my filters") of a Recordtype based GridField.


    Maybe could you send me a code example if you succeeded to do it ?

Children