HTML and CLEAR GRID CELL ERROR, ALL ROWS, ONE COLUMN

Frosty the Coder

Legendary Poster
I have a custom headerless detail.

One column on the grid is a Y/N.
The users can enter multiple rows in the grid,
but they MUST have ONE, and only one, designated as Y.

The GC EXITED/CHANGED INLINE event IS marked as HTML POST.
The first line of code w/in this event is CLEAR GRID CELL ERROR, ALL ROWS, MY Y/N COLUMN.
The code checks for Y/N being changed, and adjusts a counter.
If the counter is = 1, I again issue the same CLEAR GRID CELL ERROR.

This works fine in full client.

In HTML, it is NOT performing the CLEAR as a ALL ROWS,
rather it SEEMS to be doing "currently selected row".

I say this because in testing I CAN get it to "go away",
but ONLY if I've changed each row that errored.

Has anyone else run into this behaviour?
Is there something else I need to do to clear ALL rows?

Any/all help is appreciated.
 
Gene,

I have experienced the same problem in the past. It's another one of those quirky HTML issues which are very hard to explain.

You'll be pleased to hear that I did find a solution:

Create a while loop and do clear grid cell error <current row>, for each row in the grid.

ie in psuedo code,

GET MAX GRID ROWS (Max)
WHILE Counter <= Max
GET GRID ROW (Counter)
CLEAR GRID CELL ERROR <CURRENT ROW>
Counter = Counter + 1
END WHILE

Can't explain why, but this fix the problem for me.

Good luck!

Jane.
 
Jane, thank you very VERY much for confirming the issue AND for suggesting a solution.
I've got the code in place, and am waiting for the e-gen/bounce.

Gene
 
Back
Top