Custom form-basic list description and definition

Source: Internet
Author: User

Go directly to the topic and discuss the custom ideas and implementation methods of list-type forms.

The customization of forms saves us more time to focus on the business, instead of wasting more development time on basic forms, it is often a function entry and result display method, which can quickly develop the list function, which is very advantageous for the project and can greatly reduce the project cost, you can also avoidProgramEmployee's writing style problems may lead to an unpleasant handover.

For a simple list development process, first, you must have a certain understanding of the List business to be developed, and specify the fields to be displayed in the list, this is also the process of organizing SQL statements. Then we need to implement the page. For the Web, we may select the grid list control for rapid development. During the configuration of the list control, we need to specify the data source for the control, you also need to set the field information and field display format of the control. In case of a Category field, we may call the background to dynamically obtain the binding information and so on, so that we can generate a rough list. Complex pages usually contain pages, queries, sorting, and so on.CodeAnd page style control. If this is nothing, the post-maintenance process of the project will be called depressing, updating list fields, changing query conditions, and so on. After a long time, you will have to vomit.

In the above process, there will be a lot of repetitive issues in each list, and the uniformity of the style is not sure. If you use a custom method, everything is okay, which is described below.

Custom is to extract the key steps of the list and let the system complete the general functions through the sexual steps. We just want to determine whether the function is available, and what the function should be implemented.

Let's take a look at what is required for a list. First, the list needs a clear data source, that is, an organized SQL statement, and then the field to be displayed in the list, the field range has been defined in the SQL statement. We can filter these fields. The field description configuration is the most complex in the list, such as the column headers, display sequence, length of characters, and possible hyperlinks of fields; fields may also need to be bound to data, so you may also need to set the field data source. For fields of different data types, you may have display requirements, such as the amount, you must use commas to separate the fields and align them to the right. For an operation field, the field may be marked with red. Of course, there will also be many other attributes that can be added as needed.

In fact, drag out the control in Vs and configure the attributes. The final result is that the system concatenates strings for us, and we can implement these general attributes by ourselves, we output a string in the way of a program to achieve this custom process. The premise of using a custom list, first of all, the most important thing is that the list style that is frequently used in the implementation process of our project is relatively fixed. This is the basis of the custom list, this method is definitely not applicable. Not all cases are universal.

The data source and data field are the main topics mentioned above, so that a list can be finalized. However, in addition to lists, the page may also have other functions, such as query, sorting, paging, operation buttons, and export. This is also an important part of a list page, these functions will be available next time.

The specific implementation will be further expanded in the future. I believe it will be helpful to you!

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.