Skip to Content
avatar image
Former Member

Footer tool bar add button id not found in S2.View

Hi Experts

My requirement is to hide the add button in the fiori app tool bar.

I am unable to find the id for this add button control in the fiori app tool bar.

footer-icon.jpg

I could not find it in the S2.View

Please provide your inputs.

Thanks

Prath. P

footer-icon.jpg (19.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jun 19, 2017 at 11:57 AM

    Hi,

    I would always try to find the metadata of a control from the extension provided by chrome called UI5 Inspector

    and at the controller level I would try to make use of the function parameter

    onPress:function(evt){
    
    MessageToast.show(evt.getSource().getId()+" Pressed");
    
    }

    Also I can also use core API reference to get the instance of the object based on the ID.

    sap.ui.getCore().byId("test").

    Thanks, Pavan

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 19, 2017 at 11:40 AM

    this.getView().byId("<ID of the Add button in the toolbar>");

    Ensure that you call this in the controller linked to the view which has the toolbar control.

    Regards,

    Sharath

    Add comment
    10|10000 characters needed characters exceeded