Import FormFieldData of GroupBox [message #1487021] |
Tue, 25 November 2014 08:41  |
Eclipse User |
|
|
|
Hi,
is it possible to import the form field data of a group box?
Form A contains some fields and the GroupBox A1 extends X.
Form B contains some fields and the GroupBox A2 extends X.
The abstract GroupBox X is annotated with @FormData(value = XData.class, sdkCommand = SdkCommand.CREATE, defaultSubtypeSdkCommand = DefaultSubtypeSdkCommand.CREATE)
How can I import the form field data of A2 into A1?
The method importFormFieldData is empty for group boxes...
Thank you.
Regards,
Rainer
|
|
|
|
|
|
Re: Import FormFieldData of GroupBox [message #1487100 is a reply to message #1487069] |
Tue, 25 November 2014 10:10  |
Eclipse User |
|
|
|
Hi Jeremie,
yes, you got me right.
I'm fine on the server side. The problem is only on the client side where I want to import the group box data of the MySecondFormData into the group box of MyFirstForm. (I want to replace part of the loaded data.)
The solution linked by Matthias is ok for me.
I think I will implement something similar using the visitFields() method.
I also tried to use importFormData(AbstractFormData source, boolean valueChangeTriggersEnabled, IPropertyFilter filter, IFormFieldFilter formFieldFilter) throws ProcessingException with the other form data and a form field filter which accepts only fields of the given group box but I did not have success with it.
Regards,
Rainer
[Updated on: Tue, 25 November 2014 10:10] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02975 seconds