Skip to Content

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

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

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

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 02, 2017 at 08:39 AM
    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"));
    		// },
    
    Add comment
    10|10000 characters needed characters exceeded

  • Aug 02, 2017 at 10:09 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 02, 2017 at 08:41 AM

    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

    Add comment
    10|10000 characters needed characters exceeded