Hello,
I am having a problem with using the SetRowValue() procedure with an Edit Grid with the local data option checked. From a button click RPG program I have a string column of the edit grid that gets updated using the SetRowValue RPG procedure for each row in the grid. It works if there are few enough rows, but if there are too many rows (332 in my case) and the text I am setting is is more than 33 characters, then it spits out an error log and the user will see an endless spinning circle. If I change the for loop to only iterate through the first 279 rows it works fine (or the last 279 rows). FYI I simplified the RPG down enough that it could still replicate the issue; there is normally more validation logic and things getting set. Some other things that might be relevant are that this edit grid is setup as a popup and also the data of the edit grid gets initially populated by the pretty new Import feature using an Excel spreadsheet.
Is there some kind of size limitation I should be aware of that would cause this?
RPG:
Data Source SQL:
Thank you, again.
image.png?image.png?image.png?
I am having a problem with using the SetRowValue() procedure with an Edit Grid with the local data option checked. From a button click RPG program I have a string column of the edit grid that gets updated using the SetRowValue RPG procedure for each row in the grid. It works if there are few enough rows, but if there are too many rows (332 in my case) and the text I am setting is is more than 33 characters, then it spits out an error log and the user will see an endless spinning circle. If I change the for loop to only iterate through the first 279 rows it works fine (or the last 279 rows). FYI I simplified the RPG down enough that it could still replicate the issue; there is normally more validation logic and things getting set. Some other things that might be relevant are that this edit grid is setup as a popup and also the data of the edit grid gets initially populated by the pretty new Import feature using an Excel spreadsheet.
Is there some kind of size limitation I should be aware of that would cause this?
RPG:
Code:
Dcl-S RowI like(gSelectionCnt); // row index
Dcl-S SeedlingChgText Char(50);
SetWidget('importEditGrid');
For RowI = 1 To gSelectionCnt;
SeedlingChgText = 'Row Ignored. Green Count field was blank.';
SetRowValue(RowI: 'SDLGCHGTXT': %Trim(SeedlingChgText));
EndFor;?
Code:
SELECT
char(' ', 50) AS spilot,
char(' ', 50) AS greencnt,
char('', 12) AS millorder,
char('', 100) AS sdlgchgtxt,
ibmreqd
FROM
sysibm/sysdummy1
WHERE
(1 = 0)?
image.png?image.png?image.png?

Comment