Hi,
I have a TableView where one of the Columns is a Label/Button.
Each time the label/button is clicked, the underlying data is changed and the image of the label/button is changed (onAction events changes the data, an unstored calculation changes the imageURL).
This way, the underlying data is represented in a graphical way.
Now, the problem I have is the following: the header of the column is set to the text of the label/button. But this same text is also displayed on the label/button on each row, which I do not want, because I want to just represent the data in a graphical way.
So, the question is: How to set the text for the column header of a label/button in a tableview, without having this text in the label/button on each row?
Can this be done?
The setup I have now is a from with just a body, which contains just the fields that are to be shown, thus Servoy will generate the headers automatically. Since the columns of the TableView are resizeable (and need to remain resizeable), creating my own header with labels are not a (real) option.
Tnx for any idea,
Paul
Not solved it myslef, but in the quest to find a solution, I tried the following:
Instead of placing a label/button in the tableview, I tried a field of displaytype = “Image Media”, with the calculation returning an image as dataprovider.
At first glance it seems to work, but it doesn’t really:
A: On onAction method (or any of the other methods) do not seem to get triggered when clicking on this field
B: When the underlying data is changed (by clicking the other label/button which is still there as well), the Image is not updated. Only when you move to another record the image gets updated. Now, i know for sure that the calculation is returning something different, because the image displayed on the label/button is updated (is based ont he same calculation).
So, in addition to figuring out how to display a header text in a tableview for a label/button, without displaying this text in the label/button on each record, I know have two additional 'issues":
1: Should methods attached to a field of type = “Image Media” be triggered when the appropriate event takes place?
2: Should a field of type = “Image Media” be updated immediate when the underlying data (in this case a calculation) changes?
Any thoughts appreciated.
Paul