Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Scout/HowTo/4.0/Suppressing auto-generation of FormData"

< Scout‎ | HowTo‎ | 4.0
(Created page with "{{ScoutPage|cat=HowTo 4.0}} This how-to describes how to add turn off auto-generation of FormData = Problem description = Occasionally, there are situations where you ad...")
 
 
Line 1: Line 1:
{{ScoutPage|cat=HowTo 4.0}}
+
The Scout documentation has been moved to https://eclipsescout.github.io/.
 
+
This how-to describes how to add turn off auto-generation of FormData
+
 
+
= Problem description  =
+
 
+
Occasionally, there are situations where you add some code of your own to the FormData class of a form (e.g. in order to debug something), but every time you save the Form file, the FormData file is recreated, wiping your own additions/modifications.  
+
 
+
= Solution =
+
 
+
The auto generation can be disabled by changing the following code from:
+
<pre>@FormData(value = PersonFormData.class, sdkCommand = SdkCommand.CREATE)
+
public class PersonForm extends AbstractForm {
+
</pre>
+
to
+
<pre>@FormData(value = PersonFormData.class, sdkCommand = SdkCommand.USE)
+
public class PersonForm extends AbstractForm {
+
</pre>
+

Latest revision as of 07:36, 18 March 2024

The Scout documentation has been moved to https://eclipsescout.github.io/.

Back to the top