- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2017 06:23 AM
Hello everyone
I've been trying to find out if I can access the code that defines the reference icon preview button. I have a requirement to develop something to display some caller info, without actually leaving the incident record. Now because of some limitations I can't add it to the popup_view, so I decided to do a new UI Macro.
The UI Macro onclick works fine, I used GlideDialogWindow and I can load the info. The thing is GlideDialogWindow loads a new window and kind of fuzzes out the rest of the page in the background. I was looking to do something more similar to the behaviour the reference icon preview has (loading the info on small window, on mouse over, without fuzzing out the rest of the page, and closing the window when the mouse leaves the button).
Is this achievable? Is there a way to see the code that is doing this for reference fields?
Thank you,
Jose Valente
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2017 04:26 AM
Try something like this, it worked for me...
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<script>
<a id="test_id" onmousemove="g_popup_manager.enqueue(event, '', 'my_test_ui_page.do', '', 600)" onmouseout="g_popup_manager.destroypopDiv()" >hover here</a>
</j:jelly>
The result:
And again, being an unpublished API, I have no idea what the future may hold for it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2017 04:26 AM
Try something like this, it worked for me...
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<script>
<a id="test_id" onmousemove="g_popup_manager.enqueue(event, '', 'my_test_ui_page.do', '', 600)" onmouseout="g_popup_manager.destroypopDiv()" >hover here</a>
</j:jelly>
The result:
And again, being an unpublished API, I have no idea what the future may hold for it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2017 04:52 AM
Hello Joe,
This works! Exactly how I want it. I've marked the correct answer. Thank you so much for you help.
Best Regards,
Jose Valente

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2017 05:06 AM
Great! In the event you want it to be more 'sticky' with a close like the other type the following sort of works. There is some timing weirdness with the way I have it but probably can be refined:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<script>
<script>
function myAddClose() {
g_popup_manager.addClose(g_popup_manager.getActivePopup())
}
</script>
<a id="test_id" onmousemove="g_popup_manager.enqueue(event, '', 'my_test_ui_page.do', '', 600); setTimeout(myAddClose, 1500);" >hover here</a>
</j:jelly>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2017 05:27 AM
That's ok, I'll adjust later if necessary. Something weird that I noticed is when I hover on it, right-clicking on the incident top form gets disabled, meaning I can't for instance Right Rlick>Save, or Right-Click>Copy URL, etc.
Is this happening on your instance as well?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2017 05:30 AM
Yes, that's the behavior in my instance as well, but is also consistent with the reference icon if I hold down shift to make the window sticky. So I think that is intentional.