Skip to Content
0
Feb 11, 2016 at 08:07 PM

window.close() - Embedded in portal iView not working

1015 Views

Dear all,

I have UI5 application where i have the below code in the view

View

oToolbar1.addContent(new sap.m.Button("Reject", {
  text: "Close",
  type: "Reject",
  press: oController.closeapp
  }));

Controller

closeapp: function(){
  window.close()
  },

If I run this application as standalone , it's working fine, the window gets closed. But we have embedded this UI5 app into Portal iView. If I try the same button , the window is not closing. Any clues?

Thank you,

Justin.