cancel
Showing results for 
Search instead for 
Did you mean: 

Collaboration Portal - Hide Button Accept

Former Member
0 Kudos

Dear Experts,

I need help to hide the button accept in my portal. We need that only button show is Accept with Changes.

I follow the document:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c090ae93-2605-3210-ffbb-e00c790e8...

I create the component.js and put this code:

<%-- <%@page language="abap"%> --%>
jQuery.sap.declare("zcoll_portal.Component");
jQuery.sap.require("sap.tl_collaboration_portal.Component");
// new custom component
sap.tl_collaboration_portal.Component.extend("zcoll_portal.Component", {
  metadata : {
customizing : {
//customizing code to be added
  }
  },
  init : function() {
  this._oResourceModel = new sap.ui.model.resource.ResourceModel({bundleName:
  "sap.tl_collaboration_portal.language_bundle.i18nGeneral"});
  }
});
jQuery.sap.declare("zcoll_portal.Component");
jQuery.sap.require("sap.tl_collaboration_portal.Component");
// new custom component
  sap.tl_collaboration_portal.Component.extend("zcoll_portal.Component", {
   metadata : {
     customizing : {
       "sap.ui.viewModifications" : {
        "sap.tl_collaboration_portal.view.requestsForQuotationCasual" : {
        "btnAcceptRfq" : {
        "visible" : false
                          }
                                                                        }
                                    }
                    }
              }
                                                                         });


But the button show us yet.


Someone have more suggestion for me?


Thanks.

BR.

Renato Okamoto

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member189718
Active Participant
0 Kudos

Hi Renato,

from your code it looks that you have specified two components in one file.

You have to merge both, means, the init and the viewModification has to be in one extension:


sap.tl_collaboration_portal.Component.extend("zcoll_portal.Component",


But at the moment you have the extend block two times.

Best regards,

Jan

rohit3611
Contributor
0 Kudos

Hi Renato,

You have copied the Application to your custom or you are using the standard application?

From your "zcoll_portal.Component". It looks you have a custom application.

Have you cleared cache after your changes and tried to run it again?

Best regards,

Rohit