This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Adding a context menu item

Triadian - Monday, June 27, 2011 11:51 PM:

Hi,

I added a right click context menu item on documents, I have done this by adding code to xmlui_resources.xml , htmlitemsGrid.html etc., files in the server. Is there any other way of achieving this without changing the server files? Something that can be done from the client, by changing some itemType in the TOC->Itemtypes. My intention is to make it easily deployable  using SolutionsUpgrade tool.

Any suggestions?

Regards,



Ronan - Tuesday, June 28, 2011 9:40 AM:

Hi Triadian,

Yes, what you want is called an "Action" in Innovator.

  1. Create them in Administration > Actions. Be sure to choose the right "Type", which defines which context should be usable by the Action (Will the action work on ALL documents, like for an administrative mass-update? -> use ItemType. Will the action work on one document, like for a dashboard summarizing info on one document? -> use Item)
  2. Then bind them to an ItemType in the Actions tab of any ItemType.

Also, you might want to have a look at Reports, which do similar things and offer cool XSLT processing capabilities to prettify XML data.

Tell us about your findings!

?
Ronan Jouchet - PLM Consultant, Processia Solutions



Triadian - Thursday, June 30, 2011 1:09 AM:

Hi Ronan,

 Thanks for the idea. I have successfully implemented the context menu item and its functionality. One small problem is the position of this action item in the context menu.It seems  there is a seperate group for actions which is available at the bottom most section . I am able to  change its position using sort order, but this is limited with in this group. Is it possible to  place it some where near 'Edit' or 'Print'?  If I follow the first approach (by adding code to the server files), I am able to control its position.

Regards,



Ronan - Thursday, June 30, 2011 8:36 AM:

Not that I know.



fli - Tuesday, October 25, 2011 10:28 AM:

Triadian,

What you have done, I would really like to do, especially if I could add a Submenu to a Contextmenu.

Will you please share how you did it.

Regards Christoffer