Measurement rapid development Platform: Grid parts Focus line Data realization form function display and hidden control

Source: Internet
Author: User

Business requirements:

in the form building, there is no lack of the system according to some data automatically determine whether the form menu function is available. This is not necessarily a consented thing for non-professional developers,

For this kind of problem, the metric rapid development platform provides a set of smart wizards that can be easily used by small white. The following is a main explanation of how to implement the display and hidden control of the menu function in the grid part focus row data.


Application Scenarios:

Example: in-store Management, when we have checked the completion of the product inventory, we need to implement the modification, deletion, audit function read-only.

650) this.width=650; "id=" aimg_1575 "src=" http://bbs.delit.cn/data/attachment/forum/201605/26/ 174510fii7bi7b5zxg47g8.jpg.thumb.jpg "width=" "height=" 241 "alt=" 174510fii7bi7b5zxg47g8.jpg.thumb.jpg "/>


On the other hand, check the non-audited data, to achieve the pin audit read-only, other operational.

650) this.width=650; "id=" aimg_1574 "src=" http://bbs.delit.cn/data/attachment/forum/201605/26/ 174502saxolnospvsamxbb.jpg.thumb.jpg "width=" "height=" 241 "alt=" 174502saxolnospvsamxbb.jpg.thumb.jpg "/>


The above is the interface display effect, the following we look at the background code (not so complicated as imagined, small white can be free):


Open Form Design-event management-Smart Parts-Inbound orders, click the Focus line data change event can be seen:

650) this.width=650; "id=" aimg_1576 "src=" http://bbs.delit.cn/data/attachment/forum/201605/26/ 174518uwfqbjqr0gq3ojwj.jpg.thumb.jpg "width=" "height=" 259 "alt=" 174518uwfqbjqr0gq3ojwj.jpg.thumb.jpg "/>


Of course the novice can also use the Smart Wizard to boot the settings to implement functionality.


Step: First click on the Intelligent Wizard of event management to open the Smart Code Wizard Select from the left method and property name list: Smart form-Settings feature available

650) this.width=650; "id=" aimg_1577 "src=" http://bbs.delit.cn/data/attachment/forum/201605/26/ 174521aexxdpc9ckymeckm.jpg.thumb.jpg "alt=" 174521aexxdpc9ckymeckm.jpg.thumb.jpg "/>


Click on the auxiliary settings, the feature Name drop-down selection box to select the appropriate function

650) this.width=650; "id=" aimg_1578 "src=" http://bbs.delit.cn/data/attachment/forum/201605/26/ 174524o688zr88kibk8cva.jpg.thumb.jpg "alt=" 174524o688zr88kibk8cva.jpg.thumb.jpg "/>


Tick whether the Settings feature is available (True: feature is available; False: feature is not available)

650) this.width=650; "id=" aimg_1579 "src=" http://bbs.delit.cn/data/attachment/forum/201605/26/ 174531h8qa3lu2mlmb36ul.jpg.thumb.jpg "alt=" 174531h8qa3lu2mlmb36ul.jpg.thumb.jpg "/>


Then click OK to set the button to complete.

650) this.width=650; "class=" s "src=" http://imgstore04.cdn.sogou.com/app/a/100520032/2491241000841831684 "border=" 0 "/>650) this.width=650;" class= "s" src= "http://imgstore04.cdn.sogou.com/app/a/100520032/2491241000841831684" Border= "0"/>650) this.width=650; "class=" s "src=" http://imgstore04.cdn.sogou.com/app/a/100520032/ 2491241000841831684 "border=" 0 "/>650) this.width=650;" class= "s" src= "http://imgstore04.cdn.sogou.com/app/a/ 100520032/2491241000841831684 "border=" 0 "/>650) this.width=650;" class= "s" src= "http://imgstore04.cdn.sogou.com /app/a/100520032/2491241000841831684 "border=" 0 "/>

Setfunctionenabled Method Introduction [SIZE=14.6667PX] Attached:



setfunctionenabled (String name, BOOL enabled)
function
sets whether a feature is interactive.
Parameters

    • Name
      String type, feature name.

    • Enabled
      BOOL type, True indicates available, False indicates not available.

return value
no return value.
Example

' setting feature name ' Modified ' is not available
me.setfunctionenabled ("Modify",false) 


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

Reprint please specify the source:

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

Measurement rapid development Platform: Grid parts Focus line Data realization form function display and hidden control

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.