Starting with 4D 20 R9, the Label Wizard component has received update to enhance your experience with formulas. This improves security by preventing the creation of malicious formulas. It also improves quality by avoiding the creation of incorrect formulas. Let’s dive into the improvements!
With 4D 20 R9, the Label Wizard component now features a convenient button and a menu item in the Tool menu for inserting formulas into your label patterns.
Here’s how it works:
- Click the Formula button or select the Formula item from the Tool menu.
- Draw the area where you want the formula.
- Enter your formula in the Formula Editor.
- Validate the formula.
Modifying a formula is just as simple. Double-click on the formula, and it will open in the Formula Editor for easy editing.
This enhancement boosts your application’s security by using the Formula Editor to edit formulas. As in other parts of 4D, the Formula Editor can filter out unwanted 4D commands (via the Security Settings) and disallowed methods (via the SET ALLOWED METHODS command). This helps prevent the creation of malicious formulas.
We hope these enhancements make it easier for you to create and edit valid formulas in your labels!