1. Greg Bergbower
  2. PowerBuilder
  3. Wednesday, 18 March 2020 21:20 PM UTC

I have a TreeView SQL Select Datawindow.  My select statement includes a computed column.  The Edit Syle Type for this computed column is Checkbox.  When the computed column is placed on the Detail (leaf node) band within the datawindow, the checkbox works as expected.  However if I place it on the TreeView level band within that datawindow, it becomes unresponsive i.e. when clicking the checkbox it does not place a checkmark on it.  No other modification is made apart from moving it from one band to the other.  

The field is assigned a tab order value > 0.  I'm currently using PowerBuilder 2019 R2.

 

 

Accepted Answer
René Ullrich Accepted Answer Pending Moderation
  1. Thursday, 19 March 2020 06:25 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Greg,

as Miguel wrote this is expected behaviour.

As workaround you may implement the clicked event to implement the check / uncheck the checkbox with the mouse using GetItem (to get the current state) and SetItem (to set the other state).

 

Depending of what you want you have to change the value for the first row of the group (this is enough to see the changes in the checkbox in the treeview header) or for all rows of the group.

HTH,

René

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 19 March 2020 16:05 PM UTC
Hi René ... correct.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 19 March 2020 05:58 AM UTC
  2. PowerBuilder
  3. # 1

Hi Greg,

I think this is just "normal" behaviour. You cannot change the contents of a column when it's in the header or trailer of a group- or treeview datawindow. 

IMO: The real bug here is that you can assign a taborder to the thing when it's not in the detail band.

You might have more than one detail row within a group or treelevel, so PB wouldn't know to which row in the detail the change belongs if it lets you change it when placed in the header or treeview level.

regards

Comment
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.