Skip to Content
0

How to Pass Dynamic Input parameter in HTML Mashup?

Nov 16, 2016 at 11:19 AM

153

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

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

2 Answers

avatar image
Former Member Dec 02, 2016 at 08:53 AM
0

Hi Experts,

Did anyone face same issue?

Regards,

Niranjan

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 02, 2016 at 02:03 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded