Is it possible to add search field in service portal for a table?

Sathwik1
Tera Expert

Is it possible to add search field in service portal for a table?

I am showing some list of records in the portal.. now along with these I need to add a search field.. 

1 ACCEPTED SOLUTION

Okay great ! Here are the steps to follow in inner widget

1) in HTML add this button code

find_real_file.png

2)in client script add the highlighted function

find_real_file.png

Please mark my answer correct if it worked for you

thanks

 

 

View solution in original post

18 REPLIES 18

Mohith Devatte
Tera Sage
Tera Sage

Hello @Sathwik ,

With OOB, the Keyword Search functionality is available for data table from URL definition widget and not for Data table from instance definition widget.

To enable it please follow below steps

Open your cloned data table from instance definition widget server script and paste this line 

   options.show_keywords = 'true';

under the line highlighted in below screenshot

find_real_file.png

Please mark my answer correct if it helps you

Thank you so much.. it was working.. but a small issue with this..

Consider search is empty now.. 

Now I search I added "Sathwik" and click on search.. then it was showing only sathwik records.. till here it was fine..

but immediatley after searching "sathwik" is disappearing from search button ...so user not getting option to view all records again.. so is there any option for this? till the user refreshes the page.. he can't see all the records..

@Mohith Devatte can you please help me on this one thing..........plsss

hello sathwik ,

can you send me the screenshot once ?

After opening the page.. these are the total records..

find_real_file.png

 

Now in search I typed as "Need" so short description was matched and it was showing.. perfect..

screenshot here..

find_real_file.png

 

User checked what are the records having... till here it was fine.. now user wants to see all the records... how can he see?  If I refresh the page then that filter was going out till then it was showing with filter conditions only...

Note: I make "Breadcumb" as false.. as client does not want to see it..