Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Scout/HowTo/3.9/Suppressing auto-generation of FormData

< Scout‎ | HowTo‎ | 3.9
Revision as of 03:01, 2 July 2013 by Unnamed Poltroon (Talk) (New page: {{ScoutPage|cat=HowTo 3.9}} This how-to describes how to add turn off auto-generation of FormData = Problem description = Occasionally, there are situations where you add some code o...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:

@FormData(value = PersonFormData.class, sdkCommand = SdkCommand.CREATE)
public class PersonForm extends AbstractForm {

to

@FormData(value = PersonFormData.class, sdkCommand = SdkCommand.USE)
public class PersonForm extends AbstractForm {

Copyright © Eclipse Foundation, Inc. All Rights Reserved.