Skip to Content
avatar image
Former Member

Context Menu Items not getting manipulated on Netweaver portal

Hello Everyone,

I have a requirement where i want to hide the Items of the context menu.I found a few ways to do that both via CSS and also via scripting. Following are the links i referred

https://archive.sap.com/documents/docs/DOC-64116

https://blogs.sap.com/2015/06/25/context-menu-customizing/#respond

In the CSS technique I wrote the following code

.contextMenu #CONTEXT_MENU_drilldownBy {
	display: none  !important;
}

It's didnt work. ".contextMenu" is the css class i assigned to the context menu component.

I checked on stackover flow to see if i was making mistake in css while using ID and

Class together.But the suggestions there didint work.

http://stackoverflow.com/questions/4371733/can-i-use-div-class-and-id-together-in-css

In Scripting Technique

I added following script on start of application

CONTEXT_MENU.setItemVisible(ContextMenuItemId.DRILL_DOWN_BY_DIMENSION, false);

It is working in local mode but when executed via portal it's not working.

Kindly help me solve the issue.

Thanks & Regards,

Chinmay Swami

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers