It is a unit of data handled by Wagby.In this tutorial we will deal with "customer model".
It refers to items included in the model.For example, there are "name" "address" "telephone number".
It refers to "relationship" between model and model.For example, a relationship between "customer" model and "product" model is assumed that "(one customer) purchases product (s)".At this time, the customer model refers to the product model.
Items of "primary key", "content", "display priority", and "expiration date" are predefined models (templates; as templates) as model items.
Let's prepare a "choice model" for the previously built Web application (customer management system).We assume the item "Industry" here.
|Item name (Japanese)||Item name (English)||Item type||Reference model|
In the option model, four items "primary key" "contents" "display priority" "expiration date" are predefined as standard.
(You can not change the name, ID and type of these items.)
Here, we will set the model name to "industry type" and model ID "jobtype_m".
("_ M" included the meaning that this model is an option, but it does not necessarily have to be such a name.)
The choice model can set the initial value specially.When the "Initial data" tab is pushed, the input screen of Fig. 4 opens.
By pressing "Add" button, you can set multiple initial values.Double clicking on the content column will enable input.
The setting of industry type (option model) is over.Press "Model" from the menu and return to the model list display screen.
Next, open the editing screen of the customer model prepared earlier.
Add one model item.Select "New" from the gear icon submenu.
The item name is "Industry Type".The item ID is "job".The type specifies "reference item of another model".
If you select "Refer to item of another model" as type, Figure 10 "Model item type detailed setting" dialog is displayed.
As reference model, select the "industry type" model prepared in Figure 1.
Specify the input type as "list box".In the referenced model item, "content" is specified.
Check the options.In the display priority item, "display priority" prepared on the side of the choice model side is associated with "invalid judgment item" is "valid term" respectively.(In case of choice model, this setting is done automatically.)
The model coordination setting is complete with this.
Industry category items are subject to search and subject to list display.
Build.Move from the menu to the build screen and press the build button.
The build is over.
Open the customer search screen from the service menu and press the new registration button from there to make a transition to the new registration screen.As shown in Figure 18, the "Industry Type" item has been added, and you can see that the initial data has been loaded.
Figure 18 shows the details display screen after data registration.
Before proceeding to the next step, save the current data. Select "Import and export" from the management processing menu.
Click the "Select All" button and set the check flag for all models.In this state, press the "Export" button.
The current data has been saved.The save folder name is given the year, month, and date at the time of implementation.
Finally log off from the application.Proceed to the next tutorial.
You can add options during operation.You can also change the display order or temporarily disable it.