Using Clear_block to Prevent Save confirmation Dialogs in Oracle Forms

Source: Internet
Author: User

Clear_block built-in clears all records from the current data Block and if the user had made some changes in records which been committed, then Oracle Forms processes the records depending on the argument passed to the Clear_block proc Edure. Syntax Clear_block (commit_mode number);

Commit_mode is optional action parameter takes the following possible constants as arguments:

Ask_commit
Oracle Forms prompts the user to commit the changes before clearing the block.

Do_commit
Oracle Forms Validates the changes, performs a commit, and clears the current block without prompting the user.

No_commit
Oracle Forms validates the changes and clears the current block without performing a commit or prompting the USER.

no_validate
Oracle Forms Clears the current block without validating the changes, committing the changes, or prompting the user.
Example assume that a push button was on a canvas with lable ' Execute query ' and whenever user clicks on that Execute Query button, it clears the block first without prompting to user then re-executes the query.
 BEGINclear_block (no_validate);Execute_query; END;


Using Clear_block to Prevent Save confirmation Dialogs in Oracle Forms

Related Article

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.