Maybe you haven't set the properties on your checkbox properly? (That wouldn't explain why a textbox didn't work, though...) but here are the properties that I'm using:
Scott, Visually, the js works correct. The grid looks like I want it to look. When I click a button in the grid, the corresponding text box (or check box) contains "1" or "0". However, when control returns back to the rpg to read thru the sfl, the text box does NOT contain the value I see on the screen. I have run the program in debug. If the grid button is green (text box = "1") and I click the button, the button turns gainsboro (text box value = "0"). When the rpg chains to that record, debug shows the text box value as "1" when it should have been changed to "0". Patti
I actually added some dummy "readc" logic to my rpg pgm and it did not find any grid row as "changed". I am guessing that even though I can see values, the js isn't changing the actual data the program reads? Is there a way to accomplish this, or do I have to find a different way to do what I am trying to do?
As I said before, it is working fine for me. Yes, I checked the values in my RPG program. Yes, it is returning the correct values, both when I click the button once and it turns the value on, and when I click it twice and turn the value back off.
Mystery Solved! I took your screen code and moved to my screen and little by little started to modify until it stopped working. The culprit turned out to be the "bypass validation" property. I have a small red X button in the corner of the window that contains the grid. The red X is the way the user exits the window. It was copied from another program. The bypass validation property on the button was set to "true". Once I removed the property, everything worked fine! Scott, Thank you for your time and patience in helping me work through this. - Patti