1. Berit Sandvik
  2. PowerBuilder
  3. Friday, 16 December 2022 09:43 AM UTC

I have a grid datawindow with two check box columns together with other columns. After data retrieval, I click one of the check box columns in order to change row. Then the cursor jumps to another arbitrary column. When I continue to click on the check box column to change rows it works fine. Doing another retrieval and then clicking the check box column, it reappears. If I remove the other check box column from the datawindow it works find.

Anyone else that has experienced this and has a solution? 

Attachments (1)
John Fauss Accepted Answer Pending Moderation
  1. Friday, 16 December 2022 12:38 PM UTC
  2. PowerBuilder
  3. # 1

PB version, release, & build?

Comment
There are no comments made yet.
Berit Sandvik Accepted Answer Pending Moderation
  1. Friday, 16 December 2022 12:50 PM UTC
  2. PowerBuilder
  3. # 2

PB 2021 Build 1506

Comment
  1. Armeen Mazda @Appeon
  2. Friday, 16 December 2022 13:32 PM UTC
Can you reproduce with PB 2022? Just trying to figure out if it is PB version specific issue or something else?
  1. Helpful
  1. Berit Sandvik
  2. Friday, 16 December 2022 13:42 PM UTC
We are not ready to upgrade to PB 2022 yet.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Friday, 16 December 2022 14:17 PM UTC
I'm not suggesting you upgrade... just take your test case that reproduces the problem and see if in PB 2022 it has same problem or not?
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 16 December 2022 17:36 PM UTC
  2. PowerBuilder
  3. # 3

Have you checked the 'protect' attribute of the columns and the RowFocusChanging() and RowFocusChanged() events?

I think there might be something going on there.

Regards.

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Saturday, 17 December 2022 04:05 AM UTC
  2. PowerBuilder
  3. # 4

Hi, Berit - 

You may wish to consider exporting the DataWindow data object (to produce a .srd file), then zip the .srd file and attach the zip file in a new response in this thread. In that way we can inspect the data object's source code, import it and try to reproduce the issue ourselves.

Best regards, John

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Saturday, 17 December 2022 18:32 PM UTC
  2. PowerBuilder
  3. # 5

Berit -

1. Ensure that the TABORDER and PROTECT attributes are set correctly on your DW columns.

2. Check your ItemChanged event code in the DW CONTROL to ensure that you are not setting the focus incorrectly.


Later -

Olan

Comment
There are no comments made yet.
Berit Sandvik Accepted Answer Pending Moderation
  1. Monday, 19 December 2022 09:56 AM UTC
  2. PowerBuilder
  3. # 6

Thank you all for your answers. It is caused by a scrollToRow on a shared datawindow in our framework code. Skipping this statement fixed it for now, as we only have a search and a list dw in this particular window. But it will still be an issue in windows with several shared datawindows having multiple check boxes.

Comment
  1. Miguel Leeuwe
  2. Thursday, 22 December 2022 22:43 PM UTC
Hi,

I don't know anything, but a lot of times, the solution is to do a POST scrolltorow() ... might want to try that.

regards.
  1. Helpful 1
  1. Berit Sandvik
  2. Friday, 23 December 2022 07:03 AM UTC
Thank you so much Miguel, now it works! Posting the scrollToRow did the magic.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.