Solved TD-22113: SP3r UPD2: bugs with grid window and checkbox column

Report TD 5.x and 6.x bugs and possible workarounds.
giscon

TD-22113: SP3r UPD2: bugs with grid window and checkbox column

Post by giscon » 06 May 2015, 14:59

Hi,
with the just released TD6.2 SP3r Update2 some bugs relating to grid windows, e.g. TD-21819 (SalTblQueryFocus returns the wrong values when clicking on a checkbox in the grid) have been fixed. So far, so good, but unfortunately there are again severe problems with grid windows and checkbox columns making grid windows still unuseable for us! :evil:
Most of the bugs described below did not appear in TD6.2 SP2 Update2, so they are regressions, but TD6.2 SP2 was also not useable for us because of other bugs with grids that were not yet fixed in that version

Since the constellation is always the same, a grid window with a checkbox column, I describe these problems together in this bug report instead of creating several ones with cross links to the others or multiple testcase uploads.

Now the details:

The first problem,
checkbox column in grid must be clicked twice to change value
can be easily seen with the testcase TD62_Grid_CheckboxClickTwice.apt.
To reproduce, click at first in any row in a non-checkbox column (col1 or col2), then click in col3 (the checkbox column). The ROW_Edited Flag is set, but the checkbox remains unchanged.
Only if you do a second mouse click in the checkbox, the value changes from unchecked to checked or vice versa.


The second and really big problem
checkbox column in grid with SAM_Validate causes internal loop, TD (or EXE) must be killed by task manager
can be reproduced with the second testcase, TD62_Grid_CheckboxCol.apt.
Here the checkbox column has a message handler for SAM_Validate with a call of SalMessageBox. In this testcase-apt you can also compare the behaviour of the grid with the behaviour of a table window. In the table window all is o.k., but not in the grid.

Click in the grid window in any row into the checkbox column (col2), then click in the same row into col1 or col3 Now you will see the message box, but you can’t click OK or do anything else, not even move the message box. The application seems to get stucked in an internal loop (in the task manager you can see that it’s much time-consuming) and you have to kill the process by the task manager. The bug can be seen when running directly from the IDE and also if you make an EXE of the testcase-apt and run that EXE

Some oddities:
  • If you step from col2 to another column with the TAB key instead of doing a mouse click, the bug does not occur.
  • If you toggle the checkbox state in col2 with the Space-Key (instead of doing the same by mouse click) and then click with the mouse into col3 or col1 in the same row, the SAM_Validate is not fired (!) and so you will not get stucked.
  • But if you toggle the checkbox state with the space key and click with the mouse into col1 or col3 of another row, the SAM_Validate is fired, but in this case you won't get stucked, very strange.
Annotation: The first bug (“checkbox column in grid must be clicked twice to change value ”) can also be reproduced with the 2nd testcase TD62_Grid_CheckboxCol.apt, but presumably you will run into the stuck error and have to stop the process... For that reason I append the two testcases to this bug Report.


By the way, one more important bug,
VALIDATE_Cancel in SAM_Validate does not work for checkbox column in grid window
In the testcase TD62_Grid_CheckboxCol.apt, the SAM_Validate handler returns always VALIDATE_Ok, but if you change that to a Return VALIDATE_Cancel (as it could be in a realistic scenario), you would expect to stay in that column. In the table window this works for a checkbox column as well as for normal columns and you cannot leave that column after a VALIDATE_Cancel has been returned in the SAM_Validate handler. But for a grid window this does not work, you will leave the checkbox column in all cases, the returncode in SAM_Validate seems to be ignored.
TD62_Grid_Checkbox_testcases.zip
Kind regards
Günter Domann
Giscon Systems GmbH

TD6,2SP3r Update2 (Build 45008) Win32
You do not have the required permissions to view the files attached to this post.

Kumuthini Ragavan

Re: TD-22113: SP3r UPD2: bugs with grid window and checkbox column

Post by Kumuthini Ragavan » 11 May 2015, 15:14

I have logged a bug for the hang when grid and SAM_Validate on checkbox column is used.
TD-22077
SAM_Validate on a checkbox column causes app to hang
I have also logged a bug for Validate_Cancel being ignored issue.
TD-22078
SAM_Validate on a checkbox column of a grid ignores VALIDATE_Cancel

I am not able to reproduce checkbox column needing two clicks for ticks to be visible. I tested using TD6.2 SP3 Update2.

Will keep you posted about the progress.
Kumuthini Ragavan

giscon

Re: TD-22113: SP3r UPD2: bugs with grid window and checkbox column

Post by giscon » 12 May 2015, 10:09

Hi Kumuthini,
thank you for logging two of the bugs.

To reproduce the bug "two mouse clicks needed to toggle checkbox column in grid window" with the testcase, it is important that you click at first in col1 or col2 (normal columns) of the grid, not directly in the checkbox column (col3).
Then ckick once in col3 (the checkbox column) and you should see that the row is marked as edited, but the checkbox is still unchecked. To toggle the checkbox you must click again. If you click some more times in the checkbox column col3, the behaviour is ok, it toggles as expected. But if you click again in col1 or col2 (normal editable columns in the grid) and subsequently once in the checkbox col3, the bug can be seen again.

Please use the testcase TD62_Grid_CheckboxClickTwice to avoid the bug TD-22077 with the app hang, so ypu can better test this one.

My tests were with TD 6.2.3 45008 (UPD2 für SP3r), but I can reproduce this bug with TD6.3 (Build 44741), too
(always with TD as a Win32 application, with TD and build settings switched to .NET application the bug will not occur).

Kind regards
Günter Domann
Giscon Systems GmbH

giscon

Re: TD-22113: SP3r UPD2: bugs with grid window and checkbox column

Post by giscon » 20 May 2015, 16:24

Hi,
as annotation:
also with TD6.3 Update 1 (build 45149) the bug "two mouse clicks needed to toggle checkbox column in grid window" (to reproduce follow the description in my previous post above) is still there.

Although this bug is not such a severe problem as app hanging or ignoring VALIDATE_Cancel , it's quite annoying and would surely irritate users.

Regarding again TD6.2 (since this is a bug report for TD6.2 SP3r UPD2):
Does meanwhile exist a logged bug also for this problem?
Or can anyone else confirm?
Keep in mind that this is a regression bug since SP3 because at least in TD6.2 SP2 Update2 this problem was not present.

Kind regards
Günter Domann
Giscon Systems GmbH

Kumuthini Ragavan

Re: TD-22113: SP3r UPD2: bugs with grid window and checkbox column

Post by Kumuthini Ragavan » 27 May 2015, 14:12

Hi Gunter
Yes, I can reproduce if I click on a different column first.
Logged a new bug for that issue and the details are as follows.
TD-22113
Checkbox columns in a grid requires two clicks to get the tick
Will keep you posted.
Thank you
Kumuthini

Return to “Bug Reports”

Who is online

Users browsing this forum: [Ccbot] and 4 guests