Skip to Content
0

How to Hide "Shared Button" (highlighted by RED color) from Standard FIORI application(MM_PO_APV).

Aug 01, 2017 at 09:14 AM

97

avatar image
Former Member

Hello Friends,

How to Hide "Shared Button" (highlighted by RED color) from Standard FIORI application(MM_PO_APV and MM_PR_APV).

Can you please help me.

Vijay

po.jpg (38.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

avatar image
Former Member Aug 02, 2017 at 08:35 AM
0

hey Vijay,

I think if you don't need the "Shared Button", you have to remove it from XML-View code and from controller also.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Aug 02, 2017 at 08:39 AM
0
For example, I've taken it out from my code like this
<!--<Button id="shareButton" tooltip="{i18n>shareTooltip}" icon="sap-icon://action" press="onSharePress">--> <!--<dependents>--> <!--<ActionSheet id="shareSheet" showCancelButton="true" placement="Top">--> <!--<buttons>--> <!--<Button id="shareEmail" icon="sap-icon://email" text="{i18n>shareSendEmail}" press="onShareEmailPress"/>--> <!--<Button id="shareInJam" icon="sap-icon://jam" text="{i18n>shareOnJamTitle}" press="onShareInJamPress" visible="{FLP>/isShareInJamActive}"/>--> <!--<footerbar:AddBookmarkButton id="shareTile" appData="{ path: 'detailView>/saveAsTileTitle', formatter: '.formatter.shareTileData' }"/>--> <!--</buttons>--> <!--</ActionSheet>--> <!--</dependents>--> <!--</Button>-->
and it is no longer displayedan in controller also
//onSharePress: function() {
		// 	var oShareSheet = this.byId("shareSheet");
		// 	oShareSheet.addStyleClass(this.getOwnerComponent().getContentDensityClass());
		// 	oShareSheet.openBy(this.byId("shareButton"));
		// },
Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Aug 02, 2017 at 10:09 AM
0

Hello Virginie-Laure Werb and Sharath,

Thanks for your help.

I did another way. as per blow screen shot code. i hide the share button. I think it should be fine. Am i right


capture.jpg (67.9 kB)
Share
10 |10000 characters needed characters left characters exceeded
Sharath M G Aug 02, 2017 at 08:41 AM
0

You can use the CSS to hide it. When you inspect, there will a standard-specific css class mapped to the share button. In your css, of custom theme css, hide it.

Else, use the extensibility of the view and you may find an option to modify the behavior of the control in the view extension.

Regards,

Sharath

Share
10 |10000 characters needed characters left characters exceeded