Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGL Development Tools » Gridlayout in datagrid (Array index mixup)
Gridlayout in datagrid [message #870468] Tue, 08 May 2012 07:19 Go to previous message
Trond Einar Nilsen is currently offline Trond Einar Nilsen
Messages: 31
Registered: December 2011
Member
Hi,
In a datagrid I placed a customized widget with a GridLayout and show it using editorBehaviors. In row 3 in the Grid Layout I placed an input field like this:

function mySNHPCPPFunction(grid DataGrid in, cell Widget in, rowData any in, rowIndex int in, column DataGridColumn in, value any in) returns(Widget)
case(column.name)
when("ALTERNATIVES")
CommonData.snhpcppREC.HPHUCD = rowdata.hphucd;
CommonData.snhpcppREC.HPK9NR = rowdata.hpk9nr;
Interest Interest{}; //widget containing a gridlayout with input field
return(interest);
end

When clicking inside the inputfield I get this ERROR:
[CRRUI1083E] An error occurred while the click browser event was being handled.
[CRRUI2022E] Index 3 is out of bounds for this array. Array size is 2
[CRRUI2094E] Here are the EGL function calls leading to this error:
org/eclipse/edt/rui/widgets/DataGrid.egl() at line 1148
org/eclipse/edt/rui/widgets/DataGrid.egl() at line 978
As far as I can see the problem is that the datagrid consist of two rows, but the row number from the gridlayout (row 3) is used and creates the array out of bounds.
A workaround for me is to make sure the datagrid consist of more than two rows or move the input field to gridlayout row 1. With either of those alternatives it works as it should. Is this a bug or have a messed something up?
Regards
Trond

[Updated on: Tue, 08 May 2012 07:19]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Error when connecting to IBM i
Next Topic:Displaying PDFs from IBM i
Goto Forum:
  


Current Time: Sat May 25 01:17:56 EDT 2013

Powered by FUDForum. Page generated in 0.01882 seconds