Re-visiting dynamic forms [message #1760414] |
Wed, 26 April 2017 21:03  |
Eclipse User |
|
|
|
I did my search and found this thread : https://www.eclipse.org/forums/index.php?t=msg&th=225433&goto=703425&#msg_703425
I am wondering if anyone did find a solution.
This can be very usefull for example when creating a dynamic form based on a DB configuration, often used together with form builders doing marketing research.
Eg, answer these X question and they can be dropdowns, input fields, radio's etc and additional input fields can appear based on answer.
The answers are then often dumped into map of some sort to be further analysed using BI.
cheers,
Ries
|
|
|
Re: Re-visiting dynamic forms [message #1760774 is a reply to message #1760414] |
Tue, 02 May 2017 19:25  |
Eclipse User |
|
|
|
I managed to get it dynamic enough for our needs and added this in my Constructor:
class TestButton extends AbstractButton {
protected String getConfiguredLabel() {
return "Done 3";
}
}
for (int i=0;i<10;i++) {
TestButton testButton = new TestButton();
testButton.setLabel("My Label " + i);
getButtonBox().addField(testButton);
}
Assuming it will work fine with fields and get the values out of it, I would be happy enough...
|
|
|
Powered by
FUDForum. Page generated in 0.04167 seconds