|
Re: Updating a formData class [message #1854532 is a reply to message #1854522] |
Wed, 24 August 2022 07:05 |
Matthias Otterbach Messages: 58 Registered: August 2015 Location: Munich |
Member |
|
|
(1) I understand you have an public abstract class AbstractAddressBox extends AbstractGroupBox which you include in one or more other classes (forms) - a template group box.
Does your template group box have its own data class? If not, you could create one by adding the following annotation to the AbstractAddressBox (you might have to create AbstractAddressBoxData in your shared project manually before adding the annotation):
@FormData(value = AbstractAddressBoxData.class, // <1>
sdkCommand = SdkCommand.CREATE,
defaultSubtypeSdkCommand = DefaultSubtypeSdkCommand.CREATE)
public abstract class AbstractAddressBox extends AbstractGroupBox {
After it has its own data class, try re-creating the @FormData for the form and check if the template field is available in the ...FormData.java file.
Some documentation for template fields is available at https://eclipsescout.github.io/11.0/one-day-tutorial.html#sec-contacts_form_templatefields_more
(2) Unfortunately I do not know if you can manually trigger the creation process after the form has already been created; however if you created the SomeForm w/o the corresponding classes you could create a Some2Form with all checkboxes checked and afterwards compare the classes with your SomeForm (maybe search/replace Some2 to Some).
You could also easily create the FormData class for your form by adding the @FormData annotation, it should be created automatically then.
[Updated on: Wed, 24 August 2022 07:09] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03779 seconds