How to open a form in a 'specific' view when clicking on the record from Dependency view section?

Suggy
Giga Sage

For a table we have multiple VIEWS created.

 

Requirement is that, from the Dependency view section on a form, when the user clicks on a record, it should take them to a specific view.

Ex - We have a view called as 'Architect view' on the 'Business Service' table. Now, when the user opens the Windows server record, in the Dependecy view section, upon clicking on the record, it should open the form in 'Architect View'

Suggy_0-1713026115525.png

PS - ONLY when the user clicks on the records from 'Dependency view' section, this should happen. 

And when user clicks from Table/list view, Application/module, then it should show what ever view is configured.

8 REPLIES 8

Community Alums
Not applicable

Hi @Suggy ,

I checked your problem and you test this below code, may this help you

Please create "OnLoad" Client script and add this code below

window.location="https://your_instance.service-now.com/incident.do?sys_id=-1&sysparm_view=your_view_name"

 

window.location="https://your_instance.service-now.com/incident.do?sys_id=-1&sysparm_view=your_view_name"

 

You can give view name in sysparmview

 

Please mark my answer correct and helpful if this works for you

 

Thanks and Regards

Sarthak

Thanks for replying. But that does not meet my requirements. I have updated my question with more clarity.

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Suggy ,

 

Use sysparm_view=name_of_your_view  parameter in ur URL to open the record in a specific view...


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

 

Thanks for replying. But that does not meet my requirements. I have updated my question with more clarity....