Show users list in portal with search option

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2022 09:37 PM
Hi Team ,
We have a requirement to show list of users (changes based on logged in user profile) in portal and allow users to search within the list. We also would like to redirect to user profile when they click any user record on the list.
Do we have any OOB widget we can take reference from ?
Any input on this would be much appreciated.
Thanks,
Fedrick

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2022 02:21 AM
Thanks for the response
I tried widget "Data Table from URL Definition_" but is it possible to set the table by default? currently it asks you to select the table from list!
I tried other widget "Data Table from Instance Definition" and modified the script to show search icon but my only concern is below
Currently I have added conditions like active= true and other known filters but the requirement is to show the users based on logged in user.
is it possible for me to call a script include (returns user sys_id's) in the filter ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2022 03:44 AM
Hello
If you have used data table from instance definition you must have edited server script to show the search right ?
then do one thing remove the filter and other filter which you gave in the instance options which is active=true
and do a glide record to user table apply your query and get the records and use getEncodedQuery method and assign that to data.filter variable this will automatically apply the filter
ultimately you need to get your query dynamically by gliding the user table and apply your logic based on logged in user and then push all your users in array and then in the filter you can say "sys_idIN"+array and assign this to data.filter
Please mark my answer correct if it helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2022 07:02 AM