on 2018 Feb 27 6:48 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
11 | |
10 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.