cancel
Showing results for 
Search instead for 
Did you mean: 

How to Pass Dynamic Input parameter in HTML Mashup?

11-16-2016 12:15 PM
280 views 0 comments
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes

Accepted Solutions (0)

Answers (0)