Skip to main content
akshayg0010
June 9, 2022
Question

Remove Filter on click of cancel button

  • June 9, 2022
  • 5 replies
  • 0 views

I have an interface (say A) where am filtering data then clicking on ID am going to interface(say B) where i perform some activities like edit. Upon click of submit/Cancel i am returning back to Interface A.

When I return back to interface A then all the filters that i had applied(previously on interface A) should be removed. How to Achieve this

    5 replies

    harshj0001
    June 9, 2022

    hi [mention:b1ade1a559234ce6934bfe6c73a3858c:e9ed411860ed4f2ba0265705b8793d05], can you elaborate more about your problem like filter applied on record or a grid etc

    akshayg0010
    June 9, 2022

    I have applied filter on ID field in Read Only grid..its like

    data:local!abc,

    columns{

    gridColumn( label:"ID"

    value:linkField(links:dynamicLink( label:fv!row.id, value:fv!row.id))

    )

    }

    harshj0001
    June 9, 2022

    hi [mention:b1ade1a559234ce6934bfe6c73a3858c:e9ed411860ed4f2ba0265705b8793d05],

    if the filter is applied on the record and filter's called from the record then i don't think, so filter value can be removed. But if you made custom filter into the interface and filtering the grid accordingly, then on the submit button you can pass null into the filter.

    Here is the similar example related to your problem.

    You can alternate the “value” after the form is submitted.

    let me know that this will solve your problem or not.