Hi Experts,
I m using dialog in ui5 .
In parent page m having button, on click of which i need to open dialog.
I m using following code:
var oDialog1 = new sap.ui.commons.Dialog();
oDialog1.addContent(new sap.ui.core.HTML("html1", { content : "<iframe src='/XMII/CM/SAPUI5/TetraPak/SubTestDetails.irpt' width='800' height='500' ></iframe>" })
);
oDialog1.setModal(true);
oDialog1.open();
}});
It works fine but I have two query for dialog.
1) When i click on parent page button first time,it takes significant amount of time to load data in dialog popup.
Is there any specific reason for this? How i can resolve this?
2) Dialog has one cross button to close window.
I want additional button in popup window like "Close",on click of which it will close dialog popup.
I tried following in dialog popup:
oDialog1.close();
But as oDialog1 defination is in parent page it gives error "oDialog1 is undefined ".
How i can access oDialog1 in dialog popup i.e child popup from parent page?
Please guide.
Thanks in advance.
Regards,
Neha