Complex columns - how to? [message #1758682] |
Fri, 31 March 2017 15:51 |
Andreas Christ Messages: 32 Registered: April 2016 |
Member |
|
|
We need a somehow complex column in a table, with a select box (and its Submit Button), a single button or just some Text in it - depending on some workflow status.
The aim is:
* catch the "OK" button event and receive the selected option
* or catch the "single" button event
Well, I'm getting an event - but it is a "cell" event: it returns the whole cell's content (such as the HTML code of the select box or the HTML code of the button). The single button is ok for me: I can check whether I have a single button clicked or just the text. But it is currently impossible to find out which option is selected in the select box.
I thought about some JavaScript code to set a special hidden input field to the selected value: when I click on the button the field will be filled with the option's key, and then the event is fired against the addPropertyChangeListener where I can read the hidden field...
Is this a good idea, or do you know some simpler solution?
I added a screenshot, I hope, this makes things clear.
|
|
|
Powered by
FUDForum. Page generated in 0.02715 seconds