Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Script Error in HTML Mashup..

Hi ,

I am facing an error in java script when I am running the Mashup from the QA screen.

Giving jscript error as :"Message: 'sap.byd' is null or not an object"

var URL = sap.byd.ui.mashup.context.Inport.InPortParameter;   This line of code is raising that error. Is there any other way of reading the parameter?

var URL = sap.byd.ui.mashup.context.Inport.InPortParameter;

Below is the script code for the mashup...



<script type="text/javascript">

function initSearch()


var iframe = document.getElementById('searchIFrame');

var URL = sap.byd.ui.mashup.context.Inport.InPortParameter;

if (iframe && URL){

iframe.src = '' + URL + '&go=Submit&qs=bs&form=QBLH';

//iframe.src = '';



sap.byd.ui.mashup.onContextUpdate = function () {





<body onload="initSearch()">

<iframe height="800px" width="100%" id="searchIFrame"></iframe>



Below is the screen shot while I run the screen..

Former Member
Not what you were looking for? View more on this topic or Ask a question