cancel
Showing results for 
Search instead for 
Did you mean: 

i5Grid does not displaying the grid

Former Member
0 Kudos

Hi,

I am using SAP MII 14.0 SP04. I created a sample i5Grid and try to display the content. I am getting Java Script error 'com' is defined.

Whether there is a bug in MII 14.0 SP04? Please refer the screenshot.

Thanks,

Raman N

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Raman,

If we create a new JSP file, few lines of code will come by default.

<!DOCTYPE HTML>

<HTML>

<HEAD>

    <TITLE>Your Title Here</TITLE>

    <META http-equiv="X-UA-Compatible" content="IE=edge">

    <META http-equiv='cache-control' content='no-cache'>

    <META http-equiv='expires' content='0'>

    <META http-equiv='pragma' content='no-cache'>

    <SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid"></SCRIPT>

</HEAD>

<BODY>

</BODY>

</HTML>

Pls make sure that above Line is included as well and I tried the same on our test server which is on 14.0 SP06 currently and i didn't face any issue. Here is my code.

<!DOCTYPE HTML>

<HTML>

<HEAD>

    <TITLE>Your Title Here</TITLE>

    <META http-equiv="X-UA-Compatible" content="IE=edge">

    <META http-equiv='cache-control' content='no-cache'>

    <META http-equiv='expires' content='0'>

    <META http-equiv='pragma' content='no-cache'>

    <SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid"></SCRIPT>

    <SCRIPT>

        var Grid = new com.sap.xmii.grid.init.i5Grid("Regression_15.0/i5Grid", "Regression_15.0/Employees");

        Grid.setGridWidth("640px");

        Grid.setGridHeight("400px");

        Grid.draw("div1");

    </SCRIPT>

</HEAD>

<BODY>

    <DIV id="div1"/>

</BODY>

</HTML>

Pls check if UI5 libraries etc were deployed or if anything is missing.

Regards,

Sriram