Different sys_popup per view

raulron
Kilo Expert

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.

14 REPLIES 14

Hi Drew,



my problem is not about which view a user will see. This is already sorted for us.



i refer specifically to the sys_popup view of requested items. i need it different per view. in fact, i noticed it is already different per view. the problem is i wish to edit its content per view and i cannot seem to find where i do that.



I can edit the sys_popup content globally for the sc_req_item table, but not per view. i am looking for the place to edit it per view.



to clarify, i am attaching 2 images. both taken from the same list, once in Default View and once in Inventory View. You can see that the sys_popup hover content is different, but where do i edit each of them?



Sc_req_item sys_popup content on Default View.jpg



Sc_req_item sys_popup content on Inventory View.jpg



Hope it is clear.



Thanks.


As far as I am aware all view are edited via the Personalize form layout and just using the View name drop down.   Also under System UI there is a views module that may give you some insight on which view to edit.


The preview always uses sys_popup view (or Default view if sys_popup view is absent). You can only have one sys_popup view per table.


Customizing the Reference Icon - ServiceNow Wiki



In your second screenshot, the preview displays something different, not the RITM record but some "Back-office Use" record. Is it a separate table in your instance? It looks like the reference icon behavior has been customized in your system through a UI Script or another similar method.


I don't suppose anyone has ever come up with a solution to implement a sys_popup that shows up differently depending on which list view you are looking at?   Even if only one sys_popup can be attached per table?


hi Brian,



Have you got anything on this. I am looking for similar kind of solution.



Regards,CJ