on 05-09-2011 1:05 AM
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
Problem resolved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sounds like a timing issue with your javascript. Why do you need an icommand here?
Jamie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.