Platform drop-down selection settings

Source: Internet
Author: User

Add a drop-down list option for the select part and set whether the option content is read-only.  650) this.width=650; "id=" aimg_1710 "src=" http://bbs.delit.cn/data/attachment/forum/201606/21/ 181548fy08zjz0js8rbz7f.png.thumb.jpg "width=" "height=" 188 "alt=" 181548fy08zjz0js8rbz7f.png.thumb.jpg "/>

In the event management for form--load event, select the drop-down option for the drop-down widget:

650) this.width=650; "id=" aimg_1711 "src=" http://bbs.delit.cn/data/attachment/forum/201606/21/ 181619g8bjdys1y2wa1zzh.png.thumb.jpg "width=" 399 "height=" 122 "alt=" 181619g8bjdys1y2wa1zzh.png.thumb.jpg "/>


Then add the following code to the event management-control-drop-down selected value Change event: (Gets the key value of the drop-down option, display value)

650) this.width=650; "id=" aimg_1712 "src=" http://bbs.delit.cn/data/attachment/forum/201606/21/ 181714zwt6tyvvz0w6swwp.png.thumb.jpg "width=" height= "Bayi" alt= "181714zwt6tyvvz0w6swwp.png.thumb.jpg"/>

Operating effect:

650) this.width=650; "id=" aimg_1713 "src=" http://bbs.delit.cn/data/attachment/forum/201606/21/ 181750uzu17poovo9s7v9u.png.thumb.jpg "width=" "height=" 211 "alt=" 181750uzu17poovo9s7v9u.png.thumb.jpg "/>


Note: By using this example, we find that if you select the Part method "Set item" in the package of the platform, the content of the option is set for the drop-down selection, then the key value of the drop-down option is:0...n-1, the display value is: the corresponding value of the setting.

Note: If you use the drop-down selection method in the platform to "set the data source", set the option content for the drop-down selection, then the key value for the drop-down option is: theSQL statement queries the column 1, the display value is: SQL the columns that the statement queries out 2 .


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

Reprint please indicate the source:

Author: metric Technology http://www.delit.cn

Platform drop-down selection settings

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.