Skip to Content
avatar image
Former Member

Why is my customization not getting rendered for SRM UI ADD-ON 1.0?

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

srm-ui.png (21.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 11, 2017 at 08:20 AM

    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

    Add comment
    10|10000 characters needed characters exceeded