How to add "Sort Icon" on the table header and sorting to do be done when clicked on it in service portal

Raghu Ram Y
Kilo Sage

How to add "Sort Icon" on the table header and sorting to do be done when clicked on it in service portal.

Attaching the screenshot below.

find_real_file.png

@Ankur Bawiskar @Pranav Bhagat 

1 ACCEPTED SOLUTION

Pranav Bhagat
Kilo Sage
Check this https://codepen.io/anon/pen/fjkcg

View solution in original post

2 REPLIES 2

Pranav Bhagat
Kilo Sage
Check this https://codepen.io/anon/pen/fjkcg

shloke04
Kilo Patron

Hi,

Are you using a custom widget here to display the list of records from say Task table?

If the intention is to display list of records then why not utilize the OOB Data Driven widget which has the sorting capability already built OOB and offers lot more features as well.

Please see the steps below on how to utilize Data Driven widget as shown below:

1) Navigate to Page module under Service portal Application menu as shown below:

find_real_file.png

Now open the page where you need to add the widget to display the data, I have created a new page in my custom scope as shown below:

Click on Open in Designer as shown below after opening your Page record:

find_real_file.png

Now add this widget in the container where you need to add "Data Table from Instance Definition"

find_real_file.png

Now once this widget is added, Navigate to widget module and open this widget as shown below: "Data Table from Instance Definition"

find_real_file.png

find_real_file.png

After opening the widget record scroll down to "Instance" related list as shown below:

find_real_file.png

Now open the record where title is blank and select your table Name i.e. Remote Table Name with fields as shown below:

find_real_file.png

Once this is done, Navigate to your portal page and result are as you need:

Result:

find_real_file.png

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke