Setting Default Values

Default values for fields can be set programmatically or directly in VisionX. If you're using VisionX, it's pretty simple.

Assume we have the following screen:

If we insert a new record (1), the Birthday (2) should be set to the current date and the Checkbox (3) should be checked. To define this, open the screen in design mode:

and open the customizer (1) for the selected table. The customizer contains the event After Inserting Row (2). Simply create a new action for this event. The action editor contains the necessary commands:


The Set Value (1) command sets the Checkbox to selected (value = Y). The Set Value (2) command sets the birthday to the current date ([new java.util.Date()]). If you create a new record, the Checkbox and Date will be set:

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information