Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view

I am trying to fetch the document from the Knowage and put it into the iframe. But whn i run the script .iam unable to fetch the html into my iframe.My document label is BI and its id is 3220.Any help is highly appreciated.Thanks in advance

Following is my html code

<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<script type="text/javascript" src="C:/Users/Mayank/Desktop/BIIntegration/commons.js"></script>

       <script type="text/javascript" src="C:/Users/Mayank/Desktop/BIIntegration/ajax.js"></script>

       <script type="text/javascript" src="C:/Users/Mayank/Desktop/BIIntegration/jsonp.js"></script>

       <script type="text/javascript" src="C:/Users/Mayank/Desktop/BIIntegration/cors.js"></script>

       <script type="text/javascript" src="C:/Users/Mayank/Desktop/BIIntegration/services.js"></script>      

       <script type="text/javascript" src="C:/Users/Mayank/Desktop/BIIntegration/api_jsonp.js"></script>

       <script type="text/javascript" src="C:/Users/Mayank/Desktop/BIIntegration/api_cors.js"></script>

       <script type="text/javascript" src="C:/Users/Mayank/Desktop/BIIntegration/api.js"></script>

       

       

<script type="text/javascript">

Sbi.sdk.services.setBaseUrl({

        protocol: 'http'     

        , host: 'localhost'

        , port: '8080'

        , contextPath: 'knowage'

        , controllerPath: 'servlet/AdapterHTTP'  

    });

execTest1 = function() {

    var url = Sbi.sdk.api.getDocumentUrl({

documentLabel: 'BI'

, executionRole: '/spagobi/user'

, parameters: {'id':'3220'}

, displayToolbar: true

                , canResetParameters: false

, iframe: {

style: 'border: 0px;'

}

});

            window.alert(url);

    document.getElementById('execiframe').src = url;

};

</script>

</head>

<body>

<script type="text/javascript">

execTest1();

</script>

</body>

</html>

 

in API and SDK by (160 points)

Please log in or register to answer this question.

...