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...
<html><head><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 = 'http://www.bing.com/search?q=' + URL + '&go=Submit&qs=bs&form=QBLH'; //iframe.src = 'http://www.bing.com/search?q=hello&go=Submit&qs=bs&form=QBLH'; //} } sap.byd.ui.mashup.onContextUpdate = function () { initSearch(); }</script></head><body onload="initSearch()"><iframe height="800px" width="100%" id="searchIFrame"></iframe></body></html>
Below is the screen shot while I run the screen..