on 07-06-2011 6:53 AM
Hi All,
I am using some javascript to handle the applet in an irpt file. When I invoke the method getRowCount() on an applet(document.appletname.getRowCount()) I am getting the below error. But this error comes only when my network bandwidth is low. When my network bandwidht is high I am not getting this error. Does anyone know how to handle this error .
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Wed, 6 Jul 2011 03:31:28 UTC
Message: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
Line: 192
Char: 2
Code: 0
Thanks in advance
Shaji
Hi,
Have you tried following code:
document.AppletName.getGridObject().getRowCount()
also test on IE.
hope this helps!!
Regards,
Manoj Bilthare
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Which version of MII you are using?
I have tested below code it works for me on MII 12.0.9
document.AppletName.getGridObject().getRowCount()
I got object doesnt support this property error when i used below code
document.AppletName.getRowCount()
As per my understanding getRowCount() is a method of iGrid so you have to use getGridObject().
Hope this helps!!
Regards,
Manoj Bilthare
Hi,
Below is my code where I am using an ICommand Applet to execute a query in the database and fetch the records. When I try to find the total number of records returns by the query in the IRPT page using document.SearchData.getRowCount() I am getting the below error. When I run thru citrix everything is working fine. But when I run thru Lan I am getting this error
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Wed, 6 Jul 2011 03:31:28 UTC
Message: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
Line: 192
Char: 2
Code: 0
Applet code in IRPT file
-
<APPLET NAME="SearchData" CODEBASE="/XMII/Classes" CODE="iCommand" ARCHIVE="illum8.zip" WIDTH="1" HEIGHT="1" MAYSCRIPT>
<PARAM NAME = "QueryTemplate" VALUE="XXXXX_ProcessMessages/XX_Integration/XXXXX/Receiver/GUI_IN/GUIQuery_IN">
<PARAM NAME = "DisplayTemplate" VALUE="XXXX_ProcessMessages/XX_Integration/XXXXX/Receiver/GUI_IN/GUI_IN_iCommand">
<PARAM NAME="InitialUpdate" VALUE="false">
<PARAM NAME="UpdateEvent" VALUE="displayResults">
</APPLET>
Regards
Shaji
Edited by: Shajikc on Jul 6, 2011 4:35 PM
It would appear that in 12.1 the indexoutofbounds error is caused when you call the document.iCommand.getRowCount() method before the query has executed and returned a dataset (which is the default behavior - no query execution until you call the .executeCommand() method).
I would classify this as a bug - it should probably return 0 and not throw a javascript error, please log this as a customer support ticket for correction.
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.