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