The CreatorCon Call for Content is officially open! Get started here.

UI Macros: user_show_incidents

audhildtuntland
Kilo Contributor

The three UI Macros "user_show_incidents" have exactly the same name but different content.

How can one differentiate between them, ie meaning how do one know which of the UI Macros are being called/used

in the attributes of a field when "ref_contributions=user_show_incidents"?

ui_macro.jpg

Which one of the UI Macros do we have to change in order to change the icon?


We've tried one by one, and all three at the same time but without any success.

Hence we are wondering whether all three of them are interrelated or run independent of each other?

Any help or advise will be highly appreciated!

/Audhild



5 REPLIES 5

coryseering
ServiceNow Employee
ServiceNow Employee

Hi Audhild,



There are three because they are each used for different media types:


Screen Shot 2015-09-02 at 10.45.22 AM.png



In this screenshot, you can see that one is specific to the tablet interface, one to UI14/UI15, and one for the old interface. Depending on which interface you are testing, you want to modify the one for that media type. If you want to cover all of the cases, edit all three.



When you are done, you may need to clear your instance cache, so any pages using these macros are rebuilt. You do this by visiting /cache.do on your instance:


https://YOURINSTANCE.service-now.com/cache.do



Then view a page where the macro is present. It should render with your changes.


Thank you so much for your reply Cory!



We figured out that these UI Macros apparently refer to another UI Macro (reference_decoration), so when changing the


image in this macro instead - it worked out!


Hi Audhild,



Great! Glad you got it sorted out.


Thanks for this - we had the exact same question and hadn't thought about checking the Media Type field