adding filter option to a widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2023 12:31 AM
Hi,
I'm trying to add a filtering option to the data table widget in my service portal.
What I mean by filtering option is that I want the users to be able to create and add filters to the widget just like they can in an ordinary table in the back-office.
do you have any idea how such a thing could be done? I would really appreciate the help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2023 12:58 AM
HI @Snow Tomcal ,
I trust you are doing great.
To add a filtering option to the data table widget in your Service Portal, you can follow these steps:
Create a new widget or modify the existing data table widget to include the filtering functionality.
Add an input field or dropdown menu where users can enter or select the filter criteria. This will allow them to define the filtering conditions.
Retrieve the user-entered filter criteria from the input field or dropdown menu.
Use the retrieved filter criteria to construct a query to fetch the filtered data from the backend.
Display the filtered data in the data table widget based on the user-defined filters.
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi