Apply filter on "Data Table from URL Definition" widget?

aryandelhi
Kilo Contributor

Is it possible to apply filter on "Data Table from URL Definition" widget in ServicePortal.

For example, display only logged-in user's results.

Thanks!

1 ACCEPTED SOLUTION

chiragbagdai
Mega Expert

Hi Arayn,



Have you tried adding "&filter=active=true^opened_byDYNAMIC90d1921e5f510100a9ad2572f2b477fe" condition in the URL ?



I believe you can access below attributes by just adding them in the URL of page:



['table','field_list','filter','order_by', 'order_direction','order']



Regards,


Chirag


View solution in original post

6 REPLIES 6

larstange
Mega Sage

Hi



The short answer in NO.



If you look in the widget code, the first line of the server script removes the filter option, and its not added again further down on the code.


You will need to make your own version, that maps the filter option to a parameter from the page url.


find_real_file.png


same in my version (Jakarta)

I just removed filter from line 2 to be able to pass filter parameters

chiragbagdai
Mega Expert

Hi Arayn,



Have you tried adding "&filter=active=true^opened_byDYNAMIC90d1921e5f510100a9ad2572f2b477fe" condition in the URL ?



I believe you can access below attributes by just adding them in the URL of page:



['table','field_list','filter','order_by', 'order_direction','order']



Regards,


Chirag


Hi Chirag,



Filters can also be applied on "Widget Instance", so adding it to URL will be done automatically.



Can you please provide an example of using "field_list" in URL?



Thanks!