cancel
Showing results for 
Search instead for 
Did you mean: 

How to Pass Dynamic Input parameter in HTML Mashup?

Former Member
0 Kudos
1,153

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://XXXXXXXXX/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://XXXXXXXXXXXXXXXXXXX/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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Niranjan,

I need to know which method you are using for creation of mashups.

1) From Front end than they have already given standard Inport Parameters and just you need to select Copy option in it under Parameters

2) If you are using SDK than you need to create custom binding and Port Type Package and you can create and pass dynamic value in your mashups.

Kindly refer this blog : https://blogs.sap.com/2016/08/03/creating-a-html-mashup-with-a-dynamic-url/

Regards,

Mithun Suthar

Former Member
0 Kudos

Hi Experts,

Did anyone face same issue?

Regards,

Niranjan