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
Request clarification before answering.
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:
Hope that helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.