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

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

I forgot to mention: I tried view rule, very basic.. didn't seem to apply...

very simple condition based upon field value. view rule does not kick in

got it working in the meantime... there are 2 different kinds of view rules:

sysrule_view_workspace (here one NEEDs to add the workspace configuration at the bottom)

and

sysrule_view

RaghavSh
Mega Patron

@MichaelZischeck So if on native UI you pass the sysparm_view=workspace it will open the form in workspace view(not actual workspace)

Same way in the workspace if you pass the view in url , where ever the page is configured to accept view (defined in UI builder), it will open the form in same view as defined in url.

 

I dont believe we still have an option to change view from workspace manually.


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023
LinkedIn