cancel
Showing results for 
Search instead for 
Did you mean: 

iGrid - SAP MII 12.1.8 SP 05 (build 36) - rendering not working properly.

Former Member
0 Kudos

Hi,

In the 12.1.8 SP 05, when the iGrid cell values set through the java script, the rendering part is not working.

For example,

The data set returned by iCommand has 25 rows.

Java script sets the values in the iGrid from each row.

The application was working well with 12.1.8 SP02. The same application is not working properly now.

the error from the java script show this as java.lang.NullPointerException.

For the same set of data, this error is occurring sometimes at the third row, sometimes in the middle and sometimes in the end.

The java console is quite consistent. The same error occurs multiple times.

I have given the error in the end.

After the grid loaded, the script tries to set the cell values. some time only a single line has values and some time 4 to 5 lines has values for the same data set. The lines are not shown to the user. When he moves away from that page and comes back all the 25 lines are seen, mostly without values.

Is anyone working with 12.1.8 SP05 patch? The Xacute Query string output size is 64K in the SP02. In SP04 and SP05 this issue is fixed. This needs to be implemented. But in SP 03, IGrid functionality is refactored.

The SAP notes number: Note 1566572 - MII 12.1 SP08 Patch03 says,

Re-factored iGrid to improve datatype handling

Notes number for SP04: Note 1581779 - MII 12.1 SP08 Patch04

Notes number for SP05: Note 1586551 - MII 12.1 SP08 Patch05

If you have upgraded into the latest version of 12.1, are you facing the similar problem?

The java Console error:

Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException

at com.sap.xmii.applet.grid.renderers.MultiLineRenderer.setValue(MultiLineRenderer.java:60)

at com.sap.lhcommon.gui.table.TableMultiLineCellRenderer.getTableCellRendererComponent(TableMultiLineCellRenderer.java:129)

at javax.swing.JTable.prepareRenderer(Unknown Source)

at com.sap.lhcommon.gui.table.BaseTable.prepareRenderer(BaseTable.java:560)

at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source)

at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source)

at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source)

at javax.swing.plaf.ComponentUI.update(Unknown Source)

at javax.swing.JComponent.paintComponent(Unknown Source)

at com.sap.xmii.applet.grid.base.types.BaseGrid.paintComponent(BaseGrid.java:947)

at javax.swing.JComponent.paint(Unknown Source)

at javax.swing.JComponent.paintChildren(Unknown Source)

at javax.swing.JComponent.paint(Unknown Source)

at javax.swing.JViewport.paint(Unknown Source)

at javax.swing.JComponent.paintChildren(Unknown Source)

at javax.swing.JComponent.paint(Unknown Source)

at javax.swing.JComponent.paintToOffscreen(Unknown Source)

at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)

at javax.swing.RepaintManager.paint(Unknown Source)

at javax.swing.JComponent._paintImmediately(Unknown Source)

at javax.swing.JComponent.paintImmediately(Unknown Source)

at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)

at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)

at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)

at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Thanks and Regards,

Kishore kumar P S

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Problem resolved

jamie_cawley
Advisor
Advisor
0 Kudos

Sounds like a timing issue with your javascript. Why do you need an icommand here?

Jamie

Former Member
0 Kudos

Hi,

This script was working fine with 12.1.8 Patch 02. In Patch 05 it is not working.

In the script, after checking the iGrid loaded, the script runs.

The need of iCommand. The page contains three grids. All the Grids are getting the data from R/3. The iCommand is placed to minimize the call to R/3.

Thanks and Regards,

Kishore kumar P S

jamie_cawley
Advisor
Advisor
0 Kudos

You should be able to use query caching to acheive the same without the need of an icommand and script. The InspLot.irpt page inside of the Module Libraries utilizes this approach using a stylesheet to assign the matching rowset to its associated grid.

Jamie

Former Member
0 Kudos

Hi Jamie,

I can try out that. But This was working fine earlier and is not working with the current patch.

With the limited timeline, its difficiult to incorporate the new changes.

Thanks and Regards,

Kishore kumar P S

jamie_cawley
Advisor
Advisor
0 Kudos

If you post your page I may be able to offer some other suggestions.

Jamie

Former Member
0 Kudos

Hi Jamie,

Already an OSS Message created for this. All the data is updated over there.

If you have some time please have a look at it.

The page contains HTML text bozes, Igrid1, Igrid2, Igrid 3 and one HTML DIV,

The iCommand return all the five sets of data in a single call, and then the data is assigned to respective fields.

Thanks and Regard,s

Kishore kumar P S

jamie_cawley
Advisor
Advisor
0 Kudos

What is the OSS number?

Jamie

Former Member
0 Kudos

Hi Jamie,

The oss number is 256861 / 2011

Thanks and Regards,

Kishore kumar P S

jamie_cawley
Advisor
Advisor
0 Kudos

I see your project in there, but no indication as to what to look at...

Jamie

Former Member
0 Kudos

Hi Jamie,

SAP has proposed a solution not to check the word wrap in the Grid.

The iCommand data call was happening with Creation event of iGrid.

Now changed to FirstUpdateEvent. This works fine.

Thanks and Regards,

Kishore kumar P S

problem resolved

Edited by: kishore kumar on Jul 12, 2011 3:33 PM