cancel
Showing results for 
Search instead for 
Did you mean: 

List Report V4 - Hide Copy action button

I311295
Associate
Associate
0 Kudos

Hi Colleagues,

        We implemented list report V4 application and application displays "Copy" action. How can we hide the copy button ? We tried enablePaste as false in manifest.json but that didn't solve the issue.

 
"tableSettings": {
"type": "ResponsiveTable",
"enablePaste": false
}
 
I311295_0-1709100591446.png

 

View Entire Topic
Edrilan_Berisha
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

 

I cannot see any action named "Copy" on your screenshot. What do you mean?

The property enablePaste refers to the shortcut ctrl+V (when you copied something using ctrl+C).

So it's not related to copy.

Yes with some breakout coding like this:

var oCopyButton = this.getView().byId(	
"<ID_OF_THE_COPY_BUTTON>");
oCopyButton.setVisible(false);

 

Best,

Edrilan Berisha

SAP S/4HANA Cloud Financials Development

I311295
Associate
Associate
0 Kudos
In attached screen, icon showing next to "Reprocess" button is Copy button which is introduced by List Report V4 template by default. I would like to hide default "Copy icon" button in our application.
Edrilan_Berisha
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi @I311295, see my updated answer. You can set the visibility of the button by simply using the setVisible() method.