Skip to Content
0

Context Menu Items not getting manipulated on Netweaver portal

Dec 21, 2016 at 12:50 PM

97

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers