cancel
Showing results for 
Search instead for 
Did you mean: 

i5Grid is not rendering

former_member215598
Participant
0 Kudos

I created i5Grid, but it is not rendering.

It suppose to show LotID, MaterialName, HoldStatus, QuarantineStatus, StartDate, EndDate/

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Amr,

You are getting any Error in browser console ?

Regards,

Sriram

former_member215598
Participant
0 Kudos

Hello Sriram,

It displays blank page......

Regards,

Amr Azim

Former Member
0 Kudos

Hi Amr,

When you get a blank screen, Pls check in Browser console(F12) if any Errors are displayed.

And also Pls check If query is giving results or not.

Regards,

Sriram

former_member215598
Participant
0 Kudos

Hello Sriram,

When I checked in the Browser console F12 - I get the following:

"Negative cache"

I checked the query it does display results.

Regards,

Amr Azim

Private_Member_14935
Active Participant
0 Kudos

Hi Amr,

Try running the i5Grid after clearing browser cache. Are you trying on IE...?

If possible try running the i5Grid in Chrome, then press F12 to open the browser console and check for javascript errors.

Are you on MII SP04 or SP05?

Regards,

Ria

former_member215598
Participant
0 Kudos

We are using MII 14.0 SP05.

Private_Member_14935
Active Participant
0 Kudos

Hi Amr,

Were you able to see any javascript errors in the browser console?

Regards,

Ria

former_member215598
Participant
0 Kudos

Line: 1

Error: Unable to get value of the property 'Auto': object is null or undefined

Private_Member_14935
Active Participant
0 Kudos

Can you please check the SAP UI5 version on the server.

For this you need to type sap.ui.version in the browser console.

Regards,

Ria

former_member215598
Participant
0 Kudos

SAPUI5 Runtime 1.20.3

Here is my code - only - the i5 Chart is displaying - the i5 Grid is showing blank.

<!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 i5Chart1 = new com.sap.xmii.chart.hchart.i5Chart("Projects Status/Chart/Projects Status", "Projects Status/WebServices/Projects_Status");
  i5Chart1.setChartWidth("640px");
  i5Chart1.setChartHeight("250px");
  i5Chart1.draw("1");

</SCRIPT>

<SCRIPT>
  var Grid = new com.sap.xmii.grid.init.i5Grid("Projects Status/Chart/Projects_Status_i5Grid", "Projects Status/WebServices/Projects_Status");
  Grid.setGridWidth("640px");
  Grid.setGridHeight("400px");
  Grid.draw("div1");
</SCRIPT>


</HEAD>
<BODY>

<DIV id="1"></DIV>
<DIV id="div1"/>

</BODY>
</HTML>

Former Member
0 Kudos

Hi Amr,

I too faced this issue. When chart and Grid were in Same IRPT, Grid does not render. Here is what worked for me.

Try changing your code in this Line.

<DIV id="1"></DIV>

<DIV id="div1"/>


Change it to

<DIV id="div1"></DIV>

Just try if it works.

But i tried now in our SP05 Test Server, With your code and i am able to render.

My UI5 Version : "1.18.10"

Regards,

Sriram

former_member215598
Participant
0 Kudos

Still the i5Grid is not showing.

Former Member
0 Kudos

Hi Amr,

Could you try putting the code for grid alone in a separate irpt page and check it that renders?

If yes, then we can be sure that the issue is with using both i5chart, i5grid in a single page.

Do let us know the result.

Regards,

Shruthi

Private_Member_14935
Active Participant
0 Kudos

Hi Amr,

Your code works fine for me, i.e., both the i5Chart and i5Grid render. (I tried with SAP UI5 1.20.4)

I think the error that you are getting because of which i5Grid is not getting rendered is specific to the configuration done in the i5Grid.

Can you please re-try with the basic configuration of an i5Grid and see if it works for you. (i.e., by maintaining only the Query Template and column details in Layout category of i5Grid's configuration).

Regards,

Ria