zoukankan      html  css  js  c++  java
  • [Form builder]:about SYSTEM.MESSAGE_LEVEL

    If you want to suppress error messages then you have to set a system variable :system.message_level.

    I use to set this system variable in a Pre-Form trigger. There is no restriction in using this variable. You can set it to difference values in each Pre-Block triggers if you want.

    SYSTEM.MESSAGE_LEVEL stores one of the following message severity levels: 0, 5, 10, 15, 20, or 25. The default value is 0. Form Builder does not suppress prompts or vital error messages, no matter what severity level you select.

    Assume that you want Form Builder to display only the most severe messages (level 25). The following Pre-Form trigger suppresses all messages at levels 20 and below.

    :System.Message_Level := '20';

    If you want to display your own message then it can be done in On-Message and On-Error triggers.

    One can either set the message level using the system variable SYSTEM.MESSAGE_LEVEL or trap errors using the ON-ERROR or ON-MESSAGE triggers. 
    
    MESSAGE_LEVEL: 
    
    Set to 0, 5, 10, 15, 20, 25 to suppress all messages with severity below this level. The default level is 0. 
    Messages with a level higher than 25 cannot be suppressed. See the "Forms Error Messages Manual" for more details about the various MESSAGE_LEVEL's: 0 - Default value. All types of messages from the other levels of severity. 5 - Reaffirms an obvious condition. 10 - Indicates that the operator has made a procedural mistake. 15 - Declares that the operator is attempting to perform a function for which the form is not designed. 20 - Indicates a condition where the operator cannot continue an intended action due to a problem with a trigger or another outstanding condition. 25 - Indicates a condition that could result in the form performing incorrectly. 25 - Indicates a message severity level that you cannot suppress via the SYSTEM.MESSAGE_LEVEL system variable.

    examples:-

    :SYSTEM.MESSAGE_LEVEL := '25';
    COMMIT;
    :SYSTEM.MESSAGE_LEVEL := '0';
    /* For suppressing FRM-40100: At first record. */
    :SYSTEM.MESSAGE_LEVEL := '5';
    FIRST_RECORD;
    :SYSTEM.MESSAGE_LEVEL := '0';
    /* For suppressing FRM-40350: Query caused no records to be retrieved. */
    :SYSTEM.MESSAGE_LEVEL := '5';
    EXECUTE_QUERY;
    :SYSTEM.MESSAGE_LEVEL := '0';

    During a Runform session, Oracle Forms suppresses all messages with a severity level that is the same or lower (less severe) than the indicated severity level.

    You cannot suppress "only" messages from range 10 to 15. You can suppress any messages that severity is lower or equal to the number you put in
    the MESSAGE_LEVEL variable.

    :SYSTEM.MESSAGE_LEVEL := 15 will suppress any message that severity code is 15 or lower.
    ############################## 通往精神的路很多,物质只是其中一种 ##############################
    http://www.onejava.com/article/oracle/wip/wiptop.htm
    https://docs.oracle.com/cd/A60725_05/html/comnls/us/index.htm
    http://www.oracle.com/technetwork/cn/developer-tools/apex/getting-started-094884-zhs.html
    https://docs.oracle.com/cd/B34956_01/current/html/docset.html
  • 相关阅读:
    Android中对同一个TextView设置不同字体样式
    C++之new和malloc区别
    cocos2dx 在android平台打开文件问题
    基于物联网操作系统HelloX的智慧家庭体系架构
    密码学:SHA1加密算法详解
    Android中最简单的分享功能
    Android设置ProgressBar的前景和背景及其在多线程中的刷新
    【有明信息】虚实之间 ---关于企业架构是与非的探讨
    5.1.1 读取Redis 数据
    hdr(host), hdr_beg(host) , path_beg
  • 原文地址:https://www.cnblogs.com/pompeii2008/p/5337960.html
Copyright © 2011-2022 走看看