How do i create tabs in Service portal ?

Rishi23
Kilo Contributor

Hi Experts ,

 

I have small query w.r.t the tabs in Service portal . 

How do i create a tab and display records based on click . I actually need it similar to the screenshot below : 

Note: - I have used the data with instance widget to fetch the records from the required table , but just confused on the best way to create tabs . Please let me know how to create the tabs as below ( circled in yellow )

 

Appreciate your quick responses experts : Thanks in Advance .

find_real_file.png

Regards,

Rishi

 

 

1 ACCEPTED SOLUTION

Did you get a chance to review my response ? 

Do you need any further help here ?

View solution in original post

9 REPLIES 9

You can create View Here, 3 view and define that view in url parameter view=<your ViewName>

 

eg:

 

Tab 1 Link:

?table=incident&title=Incidents&page=ticket&view=<yourcustomViewName >&filter=caller_id=javascript:gs.getUserID()^active=true&enable_filter=true&show_new=true&show_keywords=true&show_breadcrumbs=true&o=number&d=desc&p=1

 

Note: Define in other two tabs as well. 

 

Make sure you add those column on your custom view related list "Lists" .

 

 

If my answer helped you, kindly mark my answer as correct.

Did you get a chance to review my response ? 

Do you need any further help here ?

Community Alums
Not applicable

Hi Rishi,

This is the step-by-step implementation:

 

https://community.servicenow.com/community?id=community_article&sys_id=09e33c6b1b2a4c10a59033f2cd4bcb90

 

Please mark my answer as Correct & Helpful, if applicable.

Thanks

Sandeep

Thanks Sandeep , 

One more help , i got the tabs created . 

But i am facing issues in displaying the fields for each tabs . 

 

I need to display fields based on state .  If i select incident Inprogress tab , then the fields must be for example - state , number , assignment group . And if i select Incident Pending tab, then the fields must be State number , Onhold reason , assignment group etc . 

find_real_file.png

 

How can we achieve this pls ? 

 

Regards,

Rishi

jrmarkel
Giga Sage

Rishi,

 

It looks like you need the tabbed data table functionality rather than tabbed form. 

Please refer to Step #34 in the article.

This will also allow you to have different actions based on the status, e.g., a "Complete" button on each data row contained in the In Progress tab.

Regards,

JRMarkel