Export form option is not available for ITIL users in New York

Riaz3
Giga Expert

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?

find_real_file.png

Thanks

 

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

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) &amp;&amp; ${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) &amp;&amp; ${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!

View solution in original post

9 REPLIES 9

Allen Andreas
Administrator
Administrator

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) &amp;&amp; ${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) &amp;&amp; ${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!

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

 

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!

joedumond
Tera Contributor

I cant get this to work