How to link a filter condition in one page to a table in another page in UI builder?

Vivekavardhan R
Tera Contributor

Hi. How to link filter conditions in one page to a table in another page in UI builder. 

Here I have created these filters as shown in the below. In the other page I have taken a list simple (incident as a table). Here comes my task. If I select some filters in the below page, those filter conditions has to applied on that list simple in another page. Please help me with this.

find_real_file.png

find_real_file.png

2 REPLIES 2

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Unfortunately, this isn't going to be very straightforward, but I think you should be able to do something like this:

  1. Create a couple of client state parameters to hold your filter values.
  2. On each filter, use the filter applied event to copy the payload value to the client state parameter for that filter.
  3. However you're navigating from one page to the other you'll need to pass the values of the client state parameters via the url as optional params.
  4. On your target page with the list, you'll need to create optional params for each of the filter values you want to pass.
  5. On your target list page, bind those param values to the appropriate value in the filter conditions of the list component. 

sshantam
Tera Contributor

Hi Vivekavardhan,

 

Can you please tell if you got possible solution for your above query or it is not feasible as I have got a similar kind of ask?

 

Thanks,

Shreyash