Tree widget columnsorted extended trigger

Author: jsorongon@cayenta.com (jsorongon)

Is it possible to change the list view display via the columnsorted extended trigger? i.e. rather than just sorting by the current column, we want the sort to include other columns as well. It seems as though regardless of how we change the list valrep in the columnsorted extended trigger, the display stays the same, i.e. only according to the current column and sorting order.

1 Comment

  1. jsorongon said Is it possible to change the list view display via the columnsorted extended trigger? i.e. rather than just sorting by the current column, we want the sort to include other columns as well. It seems as though regardless of how we change the list valrep in the columnsorted extended trigger, the display stays the same, i.e. only according to the current column and sorting order.

      I'm not sure if I actually can provide a solution for this. It might, however, be useful to know that the Extended Trigger columnSorted actually is fired AFTER a column (specified by the columnid parameter) has been sorted. AFAIK this specific trigger is not really intended for doing any sorting, but just to inform the 4GL that the user just has sorted a specific column. This information (for example) could be used for adding an indicator to the header text of the column that has been sorted. And I'm not sure if it would be a good idea to sort the Tree ValRep in this particular Trigger, since this would mean that the Tree List View content would be sorted twice - this might give some awkward displaying behavior. And please note that the column sorting does not actually change the ValRep list - the data is sorted in memory without touching the Tree ValRep list. Hope this helps. Regards, Daniel


    Author: diseli (daniel.iseli@uniface.com)