Weird VALIDATE event in FORM

Source: Internet
Author: User
The Form's validate behavior can be controlled by a form-level validation attribute.
You can use set_form_property to set it to PROPERTY_TRUE and PROPERTY_FALSE.
When the focus of the program leaves the current validation_unit, The validation_unit validate event is triggered.
The level of Validation unit is set through the validation unit attribute of form, which has the following attribute values:
Default, form, block, record, item.
That is to say, when validation unit is set to block, the validate will be triggered only when the focus leaves a block.
Based on the different valiation unit, it can be divided into validate form, validate block, validate record, and validate item.
Validate form: All blocks in validate form
Validate block: all records in the validate block
Validate record: if the record is valid, it is stopped. Otherwise, all items in the record of validate are triggered.
WHEN-VALIDATE-RECORD Triiger
Validate item: if the current item is valid, it is stopped; otherwise, the standard check of this item is executed, including LOV (if
Validate_from_list attribute is true), and The WHEN-VALIDATE-ITEM Trigger is triggered.
You can also use the validate method to force the validate data (Note: if the form's validation attribute is set to false, the validate method cannot also validate the data). This method has a parameter, you can set the validate level: Default_scope, form_scope, block_scope, record_scope, item_scope.
Validate trigger mainly has 2, WHEN-VALIDATE-ITEM and WHEN-VALIDATE-RECORD, 2 trigger has form level and block level, and WHEN-VALDATE-ITEM also has item level.

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.