Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3273

Re: Iframe in sapui5 xml views

$
0
0

Hi Kotesh,

 

Try like this:

var oFrame = sap.ui.getCore().byId("__xmlview4--attachmentframe"); //Get Hold of iframe
var oAttributes = oFrame._xContent.attributes; //iframe Attributes
var oValues = {"target": oAttributes[0].value, "src":oAttributes[1].value, "id":oAttributes[2].value, "height":oAttributes[3].value, "width": oAttributes[4].value}; //Attribute Values
alert(JSON.stringify(oValues)); //Alert the Attributes

Check the sample here: Plunker

Once you got hold of the attributes, I hope you know how to change them.

 

Regards,

Sai Vellanki.


Viewing all articles
Browse latest Browse all 3273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>