In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Business requirements:
In the form construction, there is no lack of the system to automatically judge whether the menu function of the form is available or not according to some data. This may not be a difficult thing for non-professional developers.
To solve this kind of problem, Metrics Rapid Development platform provides a set of smart wizards that rookies can use freely to build intelligent wizards. The following mainly explains how to realize the display and hiding control of the grid component focus line data to the menu function.
Application scenarios:
Example: warehouse management, when we select the goods that have been audited and completed, we need to implement the read-only functions of modification, deletion and audit. As shown in the figure:
On the contrary, unaudited data is selected to achieve read-only sales audit, and other operations are available. As shown in the figure:
The above is the display effect of the interface. Let's take a look at the background code (it is not as complicated as we thought, and rookies can use it freely):
Open the form Design-event Management-Smart parts-input order, and click the focus line data change event to see:
Of course, beginners can also use smart wizards to guide settings to achieve functions.
Step: first click on the event management smart wizard, open the smart code wizard on the left side of the method and property name list select: smart form-Settings function available
Click on the auxiliary settings, and the function name drops down the selection box to select the corresponding function.
Check whether to set the feature available (True: feature available; False: feature not available)
Then click the OK button to complete the settings.
Introduction to SetFunctionEnabled method [size=14.6667px] attached:
SetFunctionEnabled (string name,bool enabled)
Action
Sets whether a function is interactive.
Parameters.
Name
String type, function name.
Enabled
Bool type, true for available, false for unavailable.
Return value
No return value.
Example
'set the feature with the name "modify" is not available
Me.SetFunctionEnabled ("modify", false)
Original address: http://bbs.delit.cn/thread-1013-1-1.html
Please indicate the source of the reprint:
Written by: measurement Technology http://www.delit.cn
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.