//
handleRowClick(row);
function handleRowClick(row) {
var myGrid = getObj("Grid01");
var value = myGrid.grid.getDataValue(row, "EMAILA0001");
//alert(value);
pui.set("hd_emailadresse", value);
pui.set("HD_Action", '2');
myGrid.grid.render();
Are the fields defined as Output fields, or text box, text area, hyperlink, etc?
If output, when control gets passed back to the RPG program, the values set that are changed within the grid will revert back, as they are not passed back to the program. Try changing the field to a text box (or other input-capable field) with an attribute of read-only.
You have the 'row' variable in the JavaScript code that you posted. You should be able to put this into a hidden textbox the same way you're doing the email address and action values. Then, the RPG program can read that row number, and can do a CHAIN to that subfile row, change the fields, and UPDATE to update the row.