cancel
Showing results for 
Search instead for 
Did you mean: 

How to add custom option in context menu

Former Member
0 Kudos

Hi,

When viewing a document of a repository, can we add our own option (for example, "View In new Browser") in the context menu? And how can we configure the function when a user clicked on the option of context menu?

Thanks,

Ray

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ray,

You can add new commands in the context menu.

Read this link:

http://help.sap.com/saphelp_nw2004s/helpdata/en/98/dd48a9b4a197489a54187c99372bce/frameset.htm

Patricio.

Former Member
0 Kudos

Hi Patricio,

Thanks for your reply. I've read your linked article as well as many others, but still confused. Do you mean I need write my UICommand, add it to a Command Group then to a Collection or Resource Render, and add the render to a layout set, then assign the layout set to my folder in settings-presentation?

But I didn't see how the above change affects the context menu. Could you provide me more detailed material? Much thanks~~

Ray

Former Member
0 Kudos

Hi Ray,

Yes, you are right. This is the assignation chain:

Command->group commands->resource/collection/details->layout set->folder/KM navigation iview.

Remember, layout set is a service that you need to active on your repository.

Layout set allows you define (between other things) commands groups availables for resource, links or folders.

The context menu will have differents commands group depending reource type.

Patricio.

Answers (0)