Two good methods to avoid prompt information in both Chinese and English in Oracle

Source: Internet
Author: User

In the application, the system prompts you to provide reference information to help you use the system correctly. However, when running Oracle form, the prompt information of the information line at the bottom of the screen is in English. When more than two pieces of information are waiting to be displayed on the information line, the English information is displayed in the center of the screen in a window. The method to avoid this situation is as follows.

1. Compress system information and prohibit system information from being displayed on the Information Line.

Oracle form defines an important level for each information to indicate whether the information is important or not. There are six levels:

0. All information

5 reiterate clear conditions

The operator encountered a process error.

The operator attempted to execute the action not designed by the form

Unable to continue due to triggering sub-problems or some other prominent problems

A condition that may cause the form to incorrectly complete the task

25 developers cannot compress information

The maximum information level that developers can compress is 25. Use the following statement to disable system information display:

System. massege-level: = '25 ′;
Do Not Display System information with the information level not greater than 25:
System. suppress-working: = 'true ′;
Disable the display of work information when the system processes an action

Note: This method can only shield system information with the information level less than or equal to 25.

2. Intercept System Information and convert it to Chinese Character prompt information

There are two triggers in Oracle form: on-erro and on-message, the system error information and notification information are displayed respectively. (when the operator is notified that the hacker is blacklisted by the hacker? When triggered, the pl/SQL code is inserted into the trigger child to replace the Chinese character prompt information with the English prompt information. For example, insert the following encoding into the on-erro trigger:

Begin
  
If erro-code = 40202 and error-type = 'frm ′
  
Then message ('field value must be entered! '); Bell;
  
End if;
  
End;

In this way, when "form -- 40202" is incorrect, the prompt information of the system information line will be changed from the original English "field must be enterd" to the Chinese character "field value must be entered! ".

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.