In Wagby, the unit of data handled is called "model". In this tutorial, we will learn how to use Wagby through creating a customer model.
In this tutorial, we will learn concrete development method by Wagby through "customer management application" development.
First, we will change the project name.
Select "Environment" of WagbyDesigner.Change the project name from "Wagby application" to "customer management".
In Wagby, the unit of data handled is called "model".Let's prepare the "customer" model first.
Go to WagbyDesigner's "Model" definition screen.If you select "New model" prepared in the gear icon here, the model definition screen shown in Fig. 3 opens.
We will make the model name "customer".Also, we will set the model ID to "customer".In Wagby, the model name is Japanese and the model ID is English.
Set the item name and type of the customer model as follows.
|Item name (Japanese)||Item name (English)||Item type||Primary key||Search condition||List display|
Here one line, extra cut so.Check the row to be deleted and select "Delete" from the gear icon.
This deletes the row as shown in Figure 7.
Set the item "customer ID" as the primary key.Click the "Details" button provided on the right side of the line that defines the customer ID.
When "Use as primary key" is checked, this item becomes the primary key. Furthermore, if "Use Sequence" is checked in the "Details of Primary Key" column, a unique number will be automatically assigned from the start number.
Click the "OK" button provided at the bottom of this window (window) and close it.
Since the definition is over, I will check the operation of the application. Select "Build" from the WagbyDesigner menu.Click "Build Execute" button here.
When the build completes normally, a dialog like the one shown in Figure 11 is displayed.
Start up the generated application.Also press the "Start Application" button from the build screen.
After starting up, press the "Open logon screen" button.A separate tab opens and the following URL is automatically set in the address bar.
Figure 14 shows the logon screen.You can see that the title of the application has changed to "customer management".
Log on with the standard administrator account admin.The password is the same as the account.
In the menu "Service", basic operations (data registration, update, deletion, search, list display, detailed display) on the "customer" model created this time are included.First open the search screen.There is no data here.
From Fig. 16, press the "Register screen" button to open the customer's new registration screen.Here we will try to register one case.
When you click the "Save" button, one data is stored in the database.
You can check the data list display screen by pressing "To list display" button in Fig. 187.
You will return to the search screen.You can also see that you can narrow down by entering search criteria.
Finally log off from the application.Proceed to the next tutorial.
At this stage I do not even use 1% of Wagby's full capacity.Little by little I will explain how to set up the repository (design information).