Group by Functionality Service Portal Table

F_bio Gon_alves
Tera Expert

Hi SNC,

Can we have the group by functionality we see on back-end Tables on Service Portal Table Widgets?

I have done some research and I have found this code "data.groupBy(field_name_here)". I tried to add it to my Server Code on the Table Widget, but I could not detect any changes on the Table Widget. At least, the records were not separately grouped as happens on back-end tables, with the extend and collapse functionalities.

Any ideas on how to add these functionalities of group the records on a Service Portal's Table Widget by a given field and also be able to expand and collapse each on of the sub-groups resultant from that group by?

Thanks in advance,

Fábio Gonçalves

2 REPLIES 2

Ct111
Giga Sage

Hi check the below link

https://community.servicenow.com/community?id=community_question&sys_id=790bcbaddb5cdbc01dcaf3231f9619f4

 

Let me know if it helps.

 

Mark my ANSWER as CORRECT and HELPFUL if it helpd.

theBeastMaster
Mega Guru

Hi Fábio,

 

Were you able to fix this?