cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Cloud MyInbox footer customization

Shilpakrishna
Participant
0 Likes
935

Hello,

How do I hide the "Show Log" button in SAP Cloud MyInbox? I want to make the "Show Log" button visible for few tasks and not for few.

The below line of code works for custom actions but not for "Claim" and "Show Log" .

startupParameters.inboxAPI.removeAction("Claim");

Thanks,

Shilpa

Accepted Solutions (1)

Accepted Solutions (1)

Archana
Product and Topic Expert
Product and Topic Expert
0 Likes

You cannot hide 'Show Log' button for the User Task but you can choose not to show the logs by checking the option while modelling the user task:

https://help.sap.com/viewer/f85276c5069a429fa37d1cd352785c25/Cloud/en-US/5e058cf1333b4e18bfa6431a52e...

Hope that helps.

Answers (1)

Answers (1)

smarchesini
SAP Champion
SAP Champion
0 Likes

I solved like this and it's working (hidding the Claim button):

onAfterRendering() {
        var hideButtonWithClaimText = function () {
          var button = $("button:contains('Claim')");

          if (button.length > 0) {
            button.hide();
          } else {
            // If the button is not found, check again after a short delay
            setTimeout(hideButtonWithClaimText, 100); // 100ms delay
          }
        }

        // Start the process by calling the function
        hideButtonWithClaimText();
      }

Not soo elegant but it's working fine