Different sys_popup per view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2014 06:26 AM
Hi,
i know how to customize the sys_popup for reference fields. however, a requirement came up to have different content in the sys_popup in different cases.
For example, when i look at requested items lists, on one list the popup should include some fields, on another, it should include other fields,
The main difference between those lists that i can use as an indicator is that they are defined for different views. one is the default view, and another is a view i have created.
anyone knows how this can be achieved?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2014 06:44 AM
Hi,
- The reference popup is showed based on the current record view also.
- For eg. Create a view in incident 'Mobile', also create a mobile view (change the list of fields) in configuration Item.
- Now change the view from default to mobile.
- Mouse over the CI reference icon, it would show you the mobile view instead of default view of CI
Try to have same view name for the current task and the reference record.
This way you can have multiple views of reference filed.
Regards
Viswanath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2014 06:51 AM
Hi Viswanath,
Not sure i got what you wrote. i will further explain.
we have 2 lists of requested items. each list has its own view. when you click on a record in the list, it is opened in a view with the same name of the list. Each of those views has a different content when looking at the record form.
What i am trying to achieve, is that in each of those lists, the preview popup will contain a different content. but, it is not the form's content. For example, if in view A the record form has 10 fields, i need the sys_popup to only contain 4 of those fields plus another field that is not even displayed in the form view. same goes for the list and forms in view B.
Hope I am clearer now.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2014 03:32 AM
Anyone has an idea how this can be done?
Here's what i noticed so far - when i look at a hover popup content in a list from sc_req_item table, the content of the popup changes when i choose different views to display the list. so, there is a "per view" sys_popup view, which is great for my needs. the only problem is, i cannot find anywhere in the system where can i edit this content per view.
any help will be much appreciated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2014 04:06 AM
Have you tried using a GetViewName function to see if you can force a specific view that you have created?
See here for sample
http://wiki.servicenow.com/index.php?title=Useful_User_Scripts