Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3576

My Account Extension issue

$
0
0

Hi,

 

I am extending the Standard CRM Transactional Application (My Account).In the very first view (S2.view.xml), on click of filter some of the fields need to be removed.

Please find below the screenshot of the view and filters marked as red need to be removed.

I tried the following code for this purpose , but its not reflected.

 

Component.js

customizing : {

  "sap.ui.controllerExtensions" : {

                                        "cus.crm.myaccounts.view.S2" : {

                                                    controllerName : "cus.crm.myaccounts.z_seaco_acc_ext.view.S2Custom",

                                                                                       },

                                                  }

 

                                                   },

"sap.ui.viewReplacements" : {

                                   "cus.crm.myaccounts.view.S2" : {

                                               viewName : "cus.crm.myaccounts.z_seaco_acc_ext.view.S2Custom",

                                               type : "XML"

                                               },

}                                             

},

 

S2Custom.controller.js

onBindingChange : function() {

    var title = undefined,

    selectedKey = this.getView().getModel("config").getProperty("/selectedKey");

    switch (selectedKey){

    case "MyAccount":

    title = "MY_ACCOUNT_TITLE";

    break;

    /*case "MyIndividual":

    title = "MY_INDIVIDUAL_ACCOUNT_TITLE";

    break;

    case "MyCorporate":

    title = "MY_CORPORATE_ACCOUNT_TITLE";

    break;

    case "MyGroup":

    title = "MY_ACCOUNT_GROUP_TITLE";

    break;*/

    case "All":

    title = "ALL_ACCOUNTS_TITLE";

    break;

    /*case "AllIndividual":

    title = "ALL_INDIVIDUAL_ACCOUNTS_TITLE";

    break;

    case "AllCorporate":

    title = "ALL_CORPORATE_ACCOUNTS_TITLE";

    break;

    case "AllGroup":

    title = "ALL_ACCOUNT_GROUPS_TITLE";

    break;*/

    }

 

}


Please let me know  any other alternative solution to do the same.


Viewing all articles
Browse latest Browse all 3576

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>