Skip to Content
avatar image
Former Member

How to Pass Dynamic Input parameter in HTML Mashup?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

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

    Hi Experts,

    Did anyone face same issue?

    Regards,

    Niranjan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 02, 2016 at 02:03 PM

    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

    Add comment
    10|10000 characters needed characters exceeded