Jump to content
Sign in to follow this  
mark.wheeler@iag.com.au

rename context menu item

Recommended Posts

Hi,

Our system is r12.1 with cumulative patch #2 (RO12848 and

RO12850) and RO11972.

My requirement is to rename the "Research..." activity to "Current Update..."

in the context menu for list_pr.htmpl. The context menu I'm referring to is

the list of activities that appear when you hover over a problem ref num in

list_pr.htmpl.

I've used the following code in sitemods.js but it renames the activity in

search lists for all ticket types. How can I rename it for list_pr.htmpl only?

function siteContextMenuitemMod(menuName, itemName)

{

if (menuName == "idDetailsMenu" && itemName == "Research...")

return "Current Update...";

}

Fyi, the usage of this function is documented in F:\Apps\CA\Unicenter ServicePlus Service Desk\sdk\scripts\sitemods.js

Thanks

Share this post


Link to post
Share on other sites
Hi,

....

I've used the following code in sitemods.js but it renames the activity in

search lists for all ticket types. How can I rename it for list_pr.htmpl only?

function siteContextMenuitemMod(menuName, itemName) 
{
if (menuName == "idDetailsMenu" && itemName == "Research...")
    return "Current Update...";
}

Add a test for propFormName:

if ( propFormName=='list_pr.htmpl' && menuName == "idDetailsMenu" && itemName == "Research...")
return "Current Update...";

Share this post


Link to post
Share on other sites

Thanks Mitu.

It doesn't work unless I prefix propFormName with "windows." as follows:

if (window.propFormName == "list_pr.htmpl" && menuName == "idDetailsMenu" && itemName == "Research...")

return "Current Update...";

I'd like to do the same thing for Activities --> Research... in detail_pr.htmpl. I tried using the same code in function siteMenuitemMod(menuName, itemName) but it doesn't work.

I then tried doing the mod in menubar_sd.htmpl but I can't make it any more granular than factory = 'cr' because it doesn't recognise factory = 'pr'.

Any ideas?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...