
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 12:11 PM
Hello,
On the New York version, the Export from a form UI Action does not seem to be available for ITIL users.
Does anyone know how this can be enabled again?
Thanks
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 03:43 PM
Hi,
I was interested in this myself after reading your question and did notice on New York you are right, it's hidden from ITIL now.
So...this is controlled in the UI Macro: context_form_header
and basically you'll want to look around line 19, and you'll see this:
<g2:evaluate var="jvar_context_menu_export_pdf" expression="gs.hasRightsTo('ui/context_menu.export_pdf/read', null) && ${ref}.canRead()" />
So what you can do is comment this out (so you still have it), but then add a new entry for this menu option that looks for ITIL, like so:
<g2:evaluate var="jvar_context_menu_export_pdf" expression="gs.hasRole('itil')" />
<!--<g2:evaluate var="jvar_context_menu_export_pdf" expression="gs.hasRightsTo('ui/context_menu.export_pdf/read', null) && ${ref}.canRead()" />-->
So we have the new entry...and then we have the commented out previous entry.
Then just save and profit!
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 03:43 PM
Hi,
I was interested in this myself after reading your question and did notice on New York you are right, it's hidden from ITIL now.
So...this is controlled in the UI Macro: context_form_header
and basically you'll want to look around line 19, and you'll see this:
<g2:evaluate var="jvar_context_menu_export_pdf" expression="gs.hasRightsTo('ui/context_menu.export_pdf/read', null) && ${ref}.canRead()" />
So what you can do is comment this out (so you still have it), but then add a new entry for this menu option that looks for ITIL, like so:
<g2:evaluate var="jvar_context_menu_export_pdf" expression="gs.hasRole('itil')" />
<!--<g2:evaluate var="jvar_context_menu_export_pdf" expression="gs.hasRightsTo('ui/context_menu.export_pdf/read', null) && ${ref}.canRead()" />-->
So we have the new entry...and then we have the commented out previous entry.
Then just save and profit!
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2019 12:32 AM
Hi Allen,
Very well spotted 🙂 Good old jelly as well....
This worked perfectly, thank you.
One thing though, how do you comment out on jelly?
Thanks
Riaz

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2019 05:22 AM
It's shown above, see the second line, which is commented out (basically same way you would HTML):
<!-- before the code and then --> on the end.
Please mark as Helpful as well. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2019 08:03 AM
I cant get this to work