Web Development Framework Series Tutorials (iii) page function development (2)

Source: Internet
Author: User

In the previous section, we introduced the development of basic data currency information,

Only through the auxiliary development tools, create and tables, fill in the table name, the program is completely good.

The last section, and finally, we may also face the maintenance of some other basic information, but it is not as simple as code and name, there may be some other data items.

For example: we assume that we also need an exchange rate field in our Currency table base_currency.

Okay, next.

First, we adjust the table to increase the rate field

Also modify column descriptions for all columns in the table

such as: Update_user column description, is "Modified person"

You are here to adjust the description of the field column, which is equal to the adjustment of the label description on the completion page.

Next: Turn on our programming features

How to do: Click on the development platform click Programming

Go to our Programming List page, which can query all of our configured images

OK, we click the "Add" button to create the currency information screen we need

Click Add after the program maintenance interface, such as

The upper part is the main description of the program

The lower part is the description of the field element on the program

We maintain program code, data table name, and page title first

Then click on the "Select All Features" button

We'll click "Save" to finish this.

So we developed the currency information page, but this page does not have any field information

Look: We click on the "Dictionary" button below

We pop up the data item selection screen by clicking the "Dictionary" button.

The data of this screen is the information that reads the table directly from the database.

(All said before, you are in the Maintenance table column description, that is, in the page field of the label developed)

Select All, click the "Import" button

Close the above dictionary page and go back to the programming page

We clicked on the "Refresh" feature and the fields just imported appeared.

Next, we click on the "Quick Maintenance" button to make a quick maintenance of the field

After clicking "Quick Maintenance", it appears:

Tick which is the query criteria, which are displayed in the list, which are the edit screen, which are empty, which is the primary key

Then click Save

Close the Batch setup screen above and go back to the programming page

Click the "Preview" button to appear

Is that we just passed the configuration to develop the interface, see, the tax rate column is also shown

We click on the query to show a piece of data, this is the data we maintained in the previous section

You can try new features

Next we are going to publish the program, the specific steps, the previous section has introduced, here no longer repeat, unclear, you can refer to the previous section of the content

We clicked on the basic data node, right-click on the new Function menu,

Name Maintenance: Currency Information 2

Address such as fill in, here P parameter is we develop program code

Log back in or refresh the left menu

The menu on the left has just created the function menu.

When clicked, the effect is as

After clicking on the query, the data content in the database can be retrieved correctly.

All right.

This kind of basic material with a little bit of individuality is also done.


Through this development, the development of the basic data part of the project does not need us to worry about.

We focus our energies on the core business modules.

Like still, not write a line of code, code how to write, you may be more concerned about this piece

In the following section, how do we complete a code of our own writing

Web Development Framework Series Tutorials (iii) page function development (2)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.