Support > Tutorial (R7) > Example of a customer management application > Prepare item insertion / repeat items
ja | en

I will explain how to define "repetitive items" of Wagby.

Let's add the "E-mail" item to the customer model.
Wagby prepares the "E-mail" item above the "Telephone number" item by using the property of displaying the screen in the order written in the repository.

First, select (check) the insertion destination item "Phone number".

Figure 1 Select the insertion target item

Select the menu "New" in the gear icon.

Figure 2 New button

A blank line is inserted.

Figure 3 Inserting a blank line

Set the "E-mail" item.
Specify the "mail address" item as the search condition.It also adds to the list display.

Item name (Japanese) Item name (English) Item type Search condition List display
E-mail email String
Figure 4 Setting up e-mail items

Sets the details of the string type.Click the type detail setting button next to the type choice.

Figure 5 Type Detail Setting Button

In the Type Advanced Settings window, select your email address.

Figure 6 Select email address
String type can specify multiple properties as shown here.By setting it as a mail address, clicking on the data in the display screen starts the e-mail software.

Next, set this item to "repeat".Multiple data can be stored by repeating settings.

Click the item's detail setting button.

Fig. 7 Detailed setting of e-mail item

Check the "Repeat" item on the Detail tab.

Figure 8 Check repeated items
You can set the "Repeat" attribute for items of string, numeric, date / time type.For details, see the manual "Repeat itemPlease read.

After building, start the Wagby application and log on. Select "Import and export" from the management processing menu.
Now restore the previous data.Specify the data saved in the previous tutorial as "import folder name".

Figure 9 Importing and Exporting

Click the "select all" button and press the "Import" button with all models as the target.

Figure 10 Import all models

Confirm that the import finished successfully.

Fig. 11 End of import
In this case, I directly specified the exported data.You can also specify "data_build" to return to the previous state.If you are using the built-in database (HSQLDB) and the last build succeeded normally, you can use data_build.

Try displaying the data registered in the previous tutorial.Although the data has been restored, you can see that the "E-mail" item added is empty.

Figure 12 Displaying the restored data

Open the update screen.You can see that the "add" button is prepared for the e-mail item.By pressing this button, you can register multiple mail addresses.(FIG. 13, FIG. 14)

Fig. 13 Pressing the add button when entering e-mail information
Figure 14 Input of multiple data

On the detail display screen, data is listed in a comma-separated list.

Figure 15 Detailed display screen

Export and log off

Before proceeding to the next step, save the current data. Select "Import and export" from the management processing menu.Please select the target model "select all" and "export".

Figure 16 Management Process Menu

Log off from the application.Proceed to the next tutorial.

Figure 17 Logoff

"Frequently asked questions and answers> tutorialPlease read.