Client Side: Add a Message Field to the Desktop Form

DesktopForm the form created by the template chosen above: Application with a single form

MainBox the container (a GroupBox) holding all UI components of the form

To the main box we will add a message field. Click right on MainBox and choose the menu New Form Field.

Step 1: Select field type. Here we'll use a String Field. Then click Next (you may directly click on it or use the search box as shown above)

Step 2: Add the field label, type "Message" that triggers the dropdown list. Choose New translated text... (or use an existing text)

Step 3: Fill in the default translation. Some other fields are automatically filled:

Key Name used to retrieve the translated text in the code

Deutsch German translation

Then click OK

Step 4: Verify details of the new string field by clicking again into the Text: The bold title is the key name and all translations should be shown

Confirm by clicking Finish

Navigate down from the MainBox to the newly created MessageField. Double click on the MessageField node to display the generated code (selected code in screenshot above) in the Java editor window.

Server Side: Implement the Data Loading

In the Scout Explorer navigate to the server node, then Process Services, and DesktopProcessService. The DesktopProcessService is the server side service corresponding to the DesktopForm defined on the client side. This process service was created as part of the selected application template. The load(DesktopFormData) method is defined out of the box.