Skip to Content
0

i5Grids Object Method getCellValue(rowIndex, ColIndex) doesn't return anything

Jan 18 at 02:10 PM

42

avatar image
Former Member

Hello,

We've just updated our system to SAP MII 15.1 SP3 Patch 31 and some of our dashboards are not running like they should i5Grids in particular.

Using the method

i5Grid.getGridObject().getCellValue(rowIndex, colIndex);

does not return the value of the specified cell and returns blank instead.

I would really appreciate any help at all.

<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE>Your Title Here---</TITLE>
<META http-equiv="X-UA-Compatible" content="IE=edge">
<META http-equiv="pragma" content="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
</HEAD>
<BODY>
<SCRIPT type="text/javascript">
<SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid,i5SPCChart,i5Command">
</SCRIPT>
<SCRIPT>
var c = new  com.sap.xmii.grid.init.i5Grid(<Displaytemplatename>,<Querytemplatename>);
c.draw('myDiv1');
console.log(c.getGridObject().getCellValue(1, 2));
</script>
<body>
<div id="myDiv1"></div>
</BODY>
</HTML> 

Regards,

Yinka.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Alexander Teslyuk
Jan 23 at 01:36 PM
0

Hello Yinka,

Please, navigate to SSCE and create a dashboard with 1x2 layout. On one side add the iGrid5 created in MII Workbench, on the other add a test button with a method to call console.

Then re-check the Debugger to confirm that the value can be received with the method mentioned by you. I attach a screenshot from my system to illustrate the sample.

I think you may then the code of that SSCE page as a sample.

Br, Alex.


h49px.png (68.9 kB)
Share
10 |10000 characters needed characters left characters exceeded