2025 Jan 13 6:48 AM - edited 2025 Jan 13 7:38 AM
So I want to write add a code in existing fiori app called "Manage assignements" wherein a button is to be desabled after reading a input screen and if the input screen matches a particular value. This code is working in the console in inspect tab at runtime.
What we want to achive is to integrate this javascript code to the fiori app itself by default. Is it possible? What efforts are required?
(function() {
function disableButtonIfConditionMet() {
var inputElement = document.getElementById("application-DataSetMatchingAssignment-manage-component---worklist--smartFilterbar-filterItemControl_BASIC-DISP_GROUP-inner");
var buttonElement = document.getElementById("application-DataSetMatchingAssignment-manage-component---worklist--btnAssign");
if (inputElement && buttonElement) {
if (inputElement.value === "1520 (Trading Partner balance)") {
buttonElement.disabled = true;
} else {
buttonElement.disabled = false;
}
}
}
// Run the function initially
disableButtonIfConditionMet();
// Set an interval to run the function every second
setInterval(disableButtonIfConditionMet, 1000);
})();
Request clarification before answering.
search for adaption/extension projects and check whether you really want to integrate the code in this way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.