Get a view name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2011 02:14 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2011 03:03 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-30-2011 04:53 AM
Are you trying to determine, within a client script, what view of a form is in use?
Or something else?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2011 05:23 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2024 04:52 AM
For finding the views for the particular table:
- Open the context menu in the list view and check the view defined to the table
- 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