Grid part Add expression calculation column usage introduction

Source: Internet
Author: User

in the grid parts of the rapid development platform, you can add virtual computed columns to the interface, assuming that there is a unit price in a business, a quantity field, but no total price for this field, you can add the column by adding an expression on the interface. Add an expression computed column to add a computed column to different business requirements. Syntax:The name of the mesh part. Addexpressioncolumn ("ColumnName", "[Base salary]*0.2", 2) Add an expression computed column, the first parameter is a column name, and the second argument is a computed column expression. The third parameter is the column type: 1: Integer, 2: Number, 3: Time, 4: String, 5: Boolean, 6:objcet Example:Grid Part 1. Addexpressioncolumn ("Total", "[Lilun]+[shijian]", 2) grid Part 1. Addexpressioncolumn ("80% theory", "[lilun]*0.8", 2) Effect:[Theory]+[practice]= Total, [theory]*0.8=80% theory Description:The following expression is obtained by setting: Grid Part 1. Addexpressioncolumn ("Total", "[Lilun]+[shijian]", 2) is obtained by setting the following expression: Grid Part 1. Addexpressioncolumn ("80% theory", "[lilun]*0.8", 2)

we can see from the above example that1, the first calculated field name we can define by ourselves, and we need to double quotation marks;2, within the expressionThe field must be in the[]the brackets enclose,The fields Here are the fields in our database, and the expressions must also use double quotation marks;3, select a type based on the column type.

Original address: http://bbs.delit.cn/thread-361-1-1.html

Reprint please specify the source:

Author: metric Technology www. Delit. cn

Grid part Add expression calculation column usage introduction

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.