Is there a way to read the contents of an edit grid
Announcement
Collapse
No announcement yet.
How to read an edit grid?
Collapse
X
-
I guess this all depends on what you are trying to accomplish. Any button based (EXNABBTN) RPG program will have access to the grid rows that are selected. You can see how to access these but looking at the examples given for EXNABBTN based programs. Note only rows that are selected (via Checkbox Selection) will be passed down. However, if you set your grid to "Local Data" then it will send down all rows to the RPG program.
As far as thru a script, this would get you all of the rows:
Code:var myWidget = getWidget('MY_WIDGET_NAME'), store = myWidget.getStore(); // loop through all rows... // store.each(function(rec){ // do something to each record... // }); success();
Comment
Comment