- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2016 03:12 PM
I have a UI Macro called user_info that stores a bunch of g:evaluate scripts so that I can easily pull data from various tables:
<g:evaluate var="jvar_dob">
var hr = new GlideRecord('hr_profile');
hr.get('user', gs.getUserID());
hr.date_of_birth.getHTMLValue();
</g:evaluate>
In my UI Page, I tried invoking the UI Macro:
<g:macro_invoke macro="user_info" />
This worked when I was working in a global app, but now that I'm in a scoped application, this doesn't seem to work. When I paste the entire g:evaluate code in the UI Page, it works so I know my code isn't wrong. Can someone provide some insights on why the invoke statement doesn't seem to work in a scoped environment?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2016 05:26 PM
I have tested this and is working on my instance. I have called the global macro from a scoped application.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2016 05:26 PM
I have tested this and is working on my instance. I have called the global macro from a scoped application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2016 08:05 PM
Hey Abhinay, your reply lit a bulb for me. I created the UI Macro in our scoped application and it didn't work, but when I recreated it in Global and then invoked it in the scoped app, it worked great. thanks!