Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Workspace and Views

MichaelZischeck
Kilo Sage

Interesting thing:

On the old platform you can use a view to display different fields in a form and/or list

MichaelZischeck_0-1760946549965.png

Until now I believed: on workspace: you only have the workspace view (as defined in the page properties sys_ux_page_property)

 

Now I figured: you can display views using different views in the sys_ux_list.

Unfortunately the defined view in sys_ux_list is not honored when opening the record.

 

BUT (this is what I finally figured out), it IS possible to add /params/views/viewname to honor a view (ie. show different fields etc.)

 

I have, more than, one use case where i'd like to give a user the "choice" to switch a view. 

 

I know I could achiev this somehow by adding to the URL /params/views/viewname.

 

but wouldn't it be nice, if the view given to the  sys_ux_list would be honored?

 

how do you guys deal with such issues? do you have solutions?

 

best regards

 

Michael

1 ACCEPTED SOLUTION

SupriyaWaghmode
Kilo Sage
Kilo Sage

Hello @MichaelZischeck ,

 

This will resolve by Workspace View Rules. How to create it and more details mentioned on below link- 

https://www.servicenow.com/community/next-experience-articles/how-to-create-a-workspace-experience-v...

 

Please mark "Accepted as solution" if resolves your question & mark  "Helpful" to understand the issue.

 

Thanks & Regards ,

Supriya Waghmode |ServiceNow Consultant

View solution in original post

6 REPLIES 6

actually... you can create an action which adds /params/views/viewname to the URL like:

top.window.location = top.window.location + '/params/views/viewname';
 
this will change the view of the record "on demand"  (no view rule required). It indeed "overrides" the view rule even

Kieran Anson
Kilo Patron

Workspace view rules have been mentioned already which are much more flexible than core UI view rules.

 

Users can switch views, but it'll depend on your platform version and whether you're using the newer single record page

 

KieranAnson_0-1760950145975.png