javascript - Opening a http link in shell itself and not in new window in sapui5 -
there workset items in shell in ui5. have given http link in setcontent method of 1 of worksetitem. link opening in new window , not inside shell. want open link inside shell.
how it...???
i had same issue , solved html control content of shell's worksetitem , used iframe:
var iframe = new sap.ui.core.html({ content : "<iframe src='youraddress'>" });
if intend create new tab in shell displays content can add new worksetitem in press event listener of link, e.g.:
var link = new sap.ui.commons.link({ press : function() { shell.addworksetitem(...); } });
maybe works too.
Comments
Post a Comment