Solved TD-24712: new message SAM_ColHeaderClick

Missing or incomplete OpenText Gupta product features? Discuss it here!
Uwe van der Horst
Site Admin
Site Admin
Germany
Posts: 492
Joined: 05 Mar 2017, 14:21
Location: Wetter (Ruhr), Germany

TD-24712: new message SAM_ColHeaderClick

Post by Uwe van der Horst » 30 Jul 2019, 11:05

I have opened an enhancement request for a new message like SAM_ColHeaderClick for the Grid and Table Window to determine which column header our customer has clicked. For Table Windows we have MTable, for the Grid it seems that we have nothing like this. No TD message. I can see a WM_CAPTURECHANGE but there isn't HWND for the column header.

We need this for sorting purposes. Some numbers like invoice numbers, file numbers or other reference numbers have both numbers and characters. Internally in database there is a unique number. In the Grid we want to hide this unique number because it is not interesting for the customer. But customer wants to sort ascending/descending according to this "unique key".

Example:

Reference numbers are composed of a current number and the year. Every year the current number starts at 1.
In the database we have the unique numbers and the reference number:
20190003 3/2019
20190002 2/2019
20190001 1/2019
20180999 999/2018
20180998 998/2018

It is not possible to sort the reference number in the right chronologically way without making the unique number visible. With a message SAM_ColHeaderClick we could handle this cases programmatically. Knowing that customer clicks the column header of the (visible) reference number we could sort the grid by the (not visible) unique number.
Best regards,
Uwe van der Horst
Advo-web GmbH

Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 2946
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Re: TD-24712: new message SAM_ColHeaderClick

Post by Dave Rabelink » 03 Feb 2020, 08:17

This has been implemented in TD 7.3
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Return to “Enhancement suggestions”

Who is online

Users browsing this forum: [Ccbot] and 0 guests