strange Grid Issue.
Posted: Tue Oct 09, 2018 1:56 pm
First a bit of background.
I have a grid that contains 2 text fields and an output field. A user can populate the two fields. The second field is validated against a master file, and the description returned. The description is written to the output field in the grid then a hidden button is clicked to add a new row to the grid to enter another item. The issue is that the description (output field) is being blanked out when the control record is displayed. I'm using the grid.setDataValue function to add the data to the output field. If I step through this in Developer Tools, I can see the output field being populated, then I can step though the RPG that adds the new record to the subfile. I can see the data there until the record format is written.
Any ideas?
I have a grid that contains 2 text fields and an output field. A user can populate the two fields. The second field is validated against a master file, and the description returned. The description is written to the output field in the grid then a hidden button is clicked to add a new row to the grid to enter another item. The issue is that the description (output field) is being blanked out when the control record is displayed. I'm using the grid.setDataValue function to add the data to the output field. If I step through this in Developer Tools, I can see the output field being populated, then I can step though the RPG that adds the new record to the subfile. I can see the data there until the record format is written.
Any ideas?