08-24-2022 06:10 AM
Hi,
I have an XTable with some Checkbox columns and 4 ChnComboBox columns. These columns are generated upon loading the SUD because the number of Checkbox columns is variable and they must go to the left.
The purpose of the ChnComboBox columns is to provide the user with flexibility to do analysis, and as such for each row we might use none, one or several of the columns. See image 1. The normal table below the XTable is used to store the inputs from the XTable (BTW I don't know if there's a better way...)
I have two problems with this functionality:
1. After choosing a channel in a given column for a given row, when clicking an empty cell in the same row the ChnComboBox shows the previous choice as pre-selected, while in fact there is no selection made. See image 2 -- there you can see in the bottom table that the selected cell should be empty
2. In the same situation as above, but if I really want to select the same choice as before, it is not recognized. The only way to properly do it is to first select a different channel and then go back and select the proper channel.
How could I solve these problems? The version I'm running is DIAdem 2020 SP1
Thanks!
01-04-2023 07:08 AM
XTable can be challenging, but also very rewarding. Start with my posted example, then extend it to include the ChnComboBox. Contact me if you need help.
http://www.savvydiademsolutions.com/dialog.php?topic=XTable-class-controls