Skip to Content
0

How to Pass Dynamic Input parameter in HTML Mashup?

Nov 16, 2016 at 11:15 AM

44

avatar image
Former Member

Hi Experts,

I have below html code for html mashup.

<html>

<head>

<script> var init = function ()

{

var ifram = document.getElementById('Test');

if (ifram) {

ifram.src ='https://pricingui5app- aa8ba7b15.dispatcher.hana.ondemand.com/index.html?hc_reset=1&AccountID=1'; };

}

</script>

</head>

<body onload="init()">

<iframe height="500px" width="100%" id="Test"></iframe>

</body>

</html>

Now I have one input parameter AccountID "sap.byd.ui.mashup.context.inport.AccountID". it will come from Account Screen.

How can I pass this parameter in my html code?

I tried

'https://pricingui5app- aa8ba7b15.dispatcher.hana.ondemand.com/index.html?hc_reset=1&AccountID='+sap.byd.ui.mashup.context.inport.AccountID+';

But its not working.

How can I pass this parameter in my html code?

Thanks & Regards,

Niranjan Patel

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers