on 2017 Aug 05 3:29 PM
Dear SMEs,
We are facing an issue with our SRM UI Add-On.
For one of the requirements, we are trying to hide a radio button, in the 'Can't Find' tab of the Shopping Cart.
We are trying to enhance the customization in the 'wi_home_assist' view, from a custom BSP application.
We have tried with the following customization code in our custom js file, in our custom BSP application:-
function custom_pre_exit(methodName, view, controller, methodSignature)
{
alert("custom");
if (view === 'wi_home_assist' && methodName === 'onInit') {
// Hide Navigation for Template
debugger;var oService = sap.ui.getCore().byId("categorygroup-1");
oService.setVisible(false);
}
function custom_post_exit(methodName, view, controller, methodSignature)
{
alert("custom");
if (view === 'wi_home_assist' && methodName === 'onInit') {
// Hide Navigation for Template
debugger;var oService = sap.ui.getCore().byId("categorygroup-1");
oService.setVisible(false);
}
We have also tried with the following implementation:
CANTFIND = function (){};
CANTFIND.prototype.CUSTOM_POST_EXIT = function (methodName, view, controller, methodSignature) {
//Code present here will executed after SAP code run
debugger;
if (view === 'wi_home_assist' && methodName === 'onInit') {
// Hide Navigation for Template
debugger;
var oService = sap.ui.getCore().byId("categorygroup-1");
oService.setVisible(false);
}
};
//Custom Pre Exit
CANTFIND.prototype.CUSTOM_PRE_EXIT = function (methodName, view, controller, methodSignature) {
//Code present here will executed after SAP code run
debugger;
if (view === 'wi_home_assist' && methodName === 'onInit') {
// Hide Navigation for Template
debugger;
var oService = sap.ui.getCore().byId("categorygroup-1");
oService.setVisible(false);
}
};
We have then maintained our custom file path in SPRO, as follows:
../../CUSTOMBSPAPP/CUSTOM.JS
But our custom code is not getting triggered, when the application is executed. Kindly let us know if any configuration have been missed from our side.
Any other pointers for this issue will be very much appreciated.
Thanks
Hi,
Please check if you have followed the same way to do the enhancement:
1830075 - User-defined fields: Preparation and use
Is it a purely custom odata service created on your own?
BR,
Ivy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.