Get a view name

rpepperdine
Kilo Contributor

Hi All,

Does anyone know if there is any documentation for the js-object "view"?
I can only find references to .startsWith and you can do a compare like view == 'ess', but I simply want to get the view-name.

Thanks in advance
Rachel

6 REPLIES 6

Rajiv5
Kilo Explorer

Halow
For the view name you have to navigate to System UI->Views module. In this table you can get the name of each views available in the SNC.


Not applicable

Are you trying to determine, within a client script, what view of a form is in use?

Or something else?


Ivan Martez
ServiceNow Employee
ServiceNow Employee

On the client side, this should help you along.
http://wiki.service-now.com/index.php?title=Client_Scripts#Show_or_Hide_an_Action_Button_depending_on_the_view_of_the_form

On the server side, this should help as well
http://wiki.service-now.com/index.php?title=Restrict_Form_Views_by_Role


MaharajanT
Tera Contributor

For finding the views for the particular table:

  1. Open the context menu in the list view and check the view defined to the table
    MaharajanT_0-1716983308375.png
  2. Navigate to sys_ui_view table and find the system name for the views that are listed in the table list.
    Example: 'ess' is the system name for 'self service' view

Mark as helpful, if it's useful.

Thanks,
Maharajan