Register Login

Error in Adding Duplicate Ids while Loading Same Fragment in the View

Hello Experts,

May I know that while i am loading the same fragment in the view for second time (i'e if i press the button second time) it is showing as error in adding duplicate ids. If i click on that third time on the same button it is showing the popup.

Could you please help me on that. help would be appreciable.

Thanks in advance.


  • 30 Sep 2015 2:23 pm Abhijeet Mudgal Helpful Answer

    You might be instantiating the fragment in the event handler for the button control.. Check if the fragement is already instantiated before instantiating it . for example if!(this._fragment){ this._fragment = sap.ui.core.Fragment. }