Record Filter List

Certified Associate Developer

Used a!RecordFilterList in a record type. It is working fine but a default dropdown option "any" is coming, want to remove it is there any way?

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to Harshit Bumb (Appyzie)

    Sure Harshit sharing the code, 

    a!recordFilterList(
    name: "Sort By",
    options: a!forEach(
    items: { "My Cases", "All Cases" },
    expression: a!recordFilterListOption(
    id: fv!index,
    name: fv!item,
    filter: if(
    fv!index=1,
    a!queryFilter(
    field: 'recordType!{2e997135-ee8a-4fd5-871c-ae8aed18427c}VCMS Workflow Record.relationships.{486f2016-d3fb-4f08-b9e5-0b5bfff29690}workflowCase.fields.{f70e18eb-e2b4-4239-8e75-75355532945c}caseownerid',
    operator: "=",
    value: rule!VCMS_EXP_getUserIdForUserFilter()
    ),
    null()
    )
    ),

    ),
    defaultOption: "My Cases",
    allowMultipleSelections: false().
    )

Children