Conditional Logging in Reports with SRW.MESSAGE

Hi
We use concurrent programs to run reports in Oracle Applications.
There is a lot of code already written, which uses the following logging statements in the RDFs.
srw.message(100,'<message>');
For some reports the log being generated is large.
So can we somehow disable the logging on need basis without code change?
Can we enable or disable the log messages based on some profile values?
Thanks for any help.
Regards
Sameer

One way of achieving this is to copy the code into the other cells format trigger sections or into the frame that is your 'row'. If you let the program generate the code for your conditional formatting then you can just copy and paste it into the format trigger.
Such as:
function F_exampleFormatTrigger return boolean is
begin
-- Automatically Generated from Report Builder.
if (:sum > '1')
then
srw.set_foreground_fill_color('red');
srw.set_fill_pattern('solid');
end if;
return (TRUE);
end;
Let me know if you need additional help.
Edited by: DOUBLE U on Apr 18, 2011 8:28 AM

Similar Messages

  • DISPLAY ONLY CUSTOM MESSAGE WITH SRW.MESSAGE

    Hi.I created a report with Report Builder 9i.I also created two form parameters of type date.I put inside the validation trigger in the property inspector the following plsql code.
    function FROM_DATEValidTrigger return boolean is
    v_date VARCHAR2(12);
    date1 date;
    begin
    v_date := :from_date;
    date1:=TO_DATE(v_date, 'DD/MM/YYYY');
    return (TRUE);
    EXCEPTION
    WHEN OTHERS THEN
    SRW.MESSAGE(546,'My Message');
    return (FALSE);
    end;
    This code works fine.Supose the user input wrong data for example 29/02/2003 displays an alert message
    with my custom message.But after this displays an another message from the Report Builder like this:
    Rep-0546:Invalid parameter input.
    My question is .Is it possible display only my custom message with the SRW.MESSAGE built in procedure?
    Thanks in advance Panagiotis.

    Hi,
    I am using this function in my Validation process to display Error when user gives null input
    function DEPT_IDValidTrigger return boolean is
    begin
         -- Check for Null Value here
         if(:DEPT_ID is null) then
         raise SRW.NULL_ARGUMENTS;
         else
    return true;
    end if;
         Exception
              -- Exception For Null Value
    when SRW.NULL_ARGUMENTS then
         srw.message(100, 'Please Enter Dept ID');
    raise srw.program_abort;
    end function ___ ;
    Function is correct but the error message i am getting at the client side is as follows ::
    "*MSG-00100: Please enter Dept IDREP-1419: 'dept_idvalidtrigger': PL/SQL program aborted.* "
    It seems it is adding some system level error.
    but i want only my custom message to be displayed on the client side ::
    *"Please Enter Dept ID"*
    Is this Possible in Oracle 6i.

  • Conditional Scheduling of report with Prompt values

    Hi All,
    My requirement is that I select some values in the dashboard prompt and get the report. Is there any methodlogy to schedule that report with having data in report according to
    set prompt values on the fly that is dynamically.
    We can a link below the report to schedule it but how can we pass the condition parameters? Please help.

    Hi Kishore,
    Thanks very much for the reply. It answers one part of the question.
    I am thinking to put a text property or button below the report and is it possible to attach the report values with current prompt selection and the request is attached to the in delivery content section which means user need not pick up the delivery content only he has to schedule current report only by clicking the link or button? Can I have script for that.
    To make it simple If I am the user I would like to see following:
    1. I go to dashboard page and select the prompt and get the report result.
    2. I have link or button below to schedule.
    3. I press the button I go to delivers section.
    4. I have current report attached to the delivery content with default selection or current selection.
    5. I modify other parameters and schedule.
    Please help me.

  • Secure.log constantly flooded with Kerberos messages.

    Hey everyone, this has been bothering me for a long time and i cant figure out what application is causing this.
    My secure.log is constantly being flooded with the following messages.
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: network reconfiguration needed
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 2(RTM_DELETE) v5
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: reconfiguration needed
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: network reconfiguration needed
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 1(RTM_ADD) v5
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: reconfiguration needed
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 1(RTM_ADD) v5
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: reconfiguration needed
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 2(RTM_DELETE) v5
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: reconfiguration needed
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 1(RTM_ADD) v5
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: reconfiguration needed
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 2(RTM_DELETE) v5
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: reconfiguration needed
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: network reconfiguration needed
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 16(RTM_DELMADDR) v5
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 15(RTM_NEWMADDR) v5
    Aug 13 17:09:22 Daves-Macbook-Pro krb5kdc[29]: network reconfiguration needed
    Aug 13 17:09:23 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 17:09:23 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 4(RTM_GET) v5
    Aug 13 17:09:23 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 2(RTM_DELETE) v5
    Aug 13 17:09:23 Daves-Macbook-Pro krb5kdc[29]: reconfiguration needed
    Aug 13 17:09:23 Daves-Macbook-Pro krb5kdc[29]: network reconfiguration needed
    Aug 13 17:09:23 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 17:09:23 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 4(RTM_GET) v5
    Aug 13 17:09:23 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 2(RTM_DELETE) v5
    Aug 13 17:09:23 Daves-Macbook-Pro krb5kdc[29]: reconfiguration needed
    Aug 13 17:09:23 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 1(RTM_ADD) v5
    Aug 13 17:09:23 Daves-Macbook-Pro krb5kdc[29]: reconfiguration needed
    Aug 13 17:09:23 Daves-Macbook-Pro krb5kdc[29]: network reconfiguration needed
    Aug 13 17:09:25 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 17:09:25 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 16(RTM_DELMADDR) v5
    Aug 13 17:09:25 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 15(RTM_NEWMADDR) v5
    Aug 13 17:09:25 Daves-Macbook-Pro krb5kdc[29]: network reconfiguration needed.
    Now i have tried the general troubleshooting steps and i cant figure this out.
    Issue is user specific.
    Happens even if Airport is off.
    No applications are running.
    Any help figuring out why this message repeats all day long would be helpful.

    Also something else i noticed. Check out the following snip of the Secure.log, the information is different.
    Aug 13 21:18:00 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 21:18:00 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 5(RTM_LOSING) v5
    Aug 13 21:18:23 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 21:18:23 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 5(RTM_LOSING) v5
    Aug 13 21:18:38 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 21:18:38 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 5(RTM_LOSING) v5
    Aug 13 21:18:40 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 21:18:40 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 5(RTM_LOSING) v5
    Aug 13 21:19:04 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 21:19:04 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 5(RTM_LOSING) v5
    Aug 13 21:19:27 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 21:19:27 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 5(RTM_LOSING) v5
    Aug 13 21:19:42 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 21:19:42 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 5(RTM_LOSING) v5
    Aug 13 21:19:44 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 21:19:44 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 5(RTM_LOSING) v5
    Aug 13 21:20:08 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 21:20:08 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 5(RTM_LOSING) v5
    Aug 13 21:20:31 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 21:20:31 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 5(RTM_LOSING) v5
    Aug 13 21:20:46 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 21:20:46 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 5(RTM_LOSING) v5
    Aug 13 21:20:48 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 21:20:48 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 5(RTM_LOSING) v5
    Aug 13 21:21:35 Daves-Macbook-Pro krb5kdc[29]: routing socket readable
    Aug 13 21:21:35 Daves-Macbook-Pro krb5kdc[29]: got routing msg type 5(RTM_LOSING) v5

  • System Log file filled with arp message from teamed nics

    Hello,
    We are running a Win2k3 server with dual nics teamed to one IP address. All of our Mac's system logs are being filled with the following message:
    Mar 28 12:48:58 Son-of-Spacedog kernel[0]: arp: 192.168.200.50 moved from 00:04:23:b9:00:4a to 00:04:23:b9:00:4b on en0
    This is repeated over and over. Is there any way to get the Mac's to stop generating this message? Is the fix for this on the server side or on the Mac side? From what I have seen online in other forums, this started happening with Panther.

    There are actually several different types of NIC Teaming Modes:
    Adapter Fault Tolerance (AFT) - provides automatic redundancy for a server's network connection. If the primary adapter fails, the secondary adapter takes over. Adapter Fault Tolerance supports two to eight adapters per team. This teaming mode works with any hub or switch, and all team members must be connected to the same device.
    Switch Fault Tolerance (SFT) - provides a failover relationship between two adapters when each adapter is connected to a separate switch. Switch Fault Tolerance supports two adapters per team. This feature works with any switch. Spanning Tree Protocol (STP) must be enabled when you create a team in SFT mode.
    Adaptive Load Balancing (ALB) - provides load balancing for transmission traffic and adapter fault tolerance. You can also enable or disable receive load balancing (RLB) in ALB teams. This teaming mode works with any switch.
    Fast EtherChannel/Link Aggregation - provides increased transmission and reception throughput in a team of two to eight adapters. This mode also includes adapter fault tolerance and load balancing (only routed protocols). This requires a switch with Link Aggregation or FEC capability.
    Gigabit EtherChannel/Link Aggregation - is the gigabit extension of the FEC/Link Aggregation/802.3ad: static mode. All team members must operate at gigabit speed.
    IEEE 802.3ad: dynamic mode - creates one or more teams using dynamic Link Aggregation with same-speed or mixed-speed adapters. Like the static Link Aggregation modes, Dynamic 802.3ad teams increase transmission and reception throughput and provide fault tolerance. This mode requires a switch that fully supports the IEEE 802.3ad standard.
    Now, most likely, somewhere on the network a server is configured for ALB or AFT, and these are the most common methods of NIC teaming (Sadly, the XServes do not). They also do not require any certain type of switch, but they do require STP (Spanning Tree Protocol) to be turned off to function most effectively, or you will see errors on the network like the ones you are seeing in your log. Most managed switches come with STP turned on by default, so you will need to check ALL switches (as the errors will cascade throughout the network) to see if it STP is turned on. Most people do not use STP any more (it basically allows ports on one switch to appear as on another switch), so see if you can turn it off. That should stop the error messages.
    -MacBoy in SLC
    PowerMac G5 Dual 2.0 GHz   Mac OS X (10.4.6)  

  • Nfragentd.log gets filled with error messages during FS scan

    Hi,
    We are seeing A LOT of error messages like this one in the nfragentd.log files (one scan can generate 4 full log files!):
    less /var/opt/novell/filereporter/agent/log/nfragentd.log
    01 2014-11-06 00:59:57 -18000 3 0006 43591 7f0f49bce700 SRSScanAndCollectFileSystemDataService::GetScanDat aEntryMetaDataAndSecurityInfo() - Called AddSecurityPrincipalToInventory(L"SERVER", 32848, false), Scan ID = "982", Result = 15. {Cr
    eator}
    Is it something to worry about, or is it something benign like the owner of the file has been deleted from eDir? If it is benign, how can this be suppressed?
    Also this seems to delay the scan, so resolving this would improve scan performance.

    On 11/6/2014 9:46 AM, ablovatskia wrote:
    >
    > Hi,
    >
    > We are seeing A LOT of error messages like this one in the
    > nfragentd.log files (one scan can generate 4 full log files!):
    >
    > less /var/opt/novell/filereporter/agent/log/nfragentd.log
    >
    > 01 2014-11-06 00:59:57 -18000 3 0006 43591 7f0f49bce700
    > SRSScanAndCollectFileSystemDataService::GetScanDat aEntryMetaDataAndSecurityInfo()
    > - Called AddSecurityPrincipalToInventory(L"SERVER", 32848, false), Scan
    > ID = "982", Result = 15. {Cr
    > eator}
    >
    > Is it something to worry about, or is it something benign like the owner
    > of the file has been deleted from eDir? If it is benign, how can this be
    > suppressed?
    >
    > Also this seems to delay the scan, so resolving this would improve scan
    > performance.
    >
    >
    ablovatskia,
    What sort of volume are you scanning, in this case?
    -- NFMS Support Team

  • System.log filling with error messages

    After SL update my system.log if filling with error messages.
    Does any process delete the system.log periodically?
    What's causing this error? Getting thousands of them.
    9/30/09 12:08:13 PM [0x0-0x12012].com.nowsoftware.nowxagent[181] at now.swing.NProgressBar.fixAppleAnimationBug(null:-1)

    JHF45 wrote:
    After SL update my system.log if filling with error messages.
    Does any process delete the system.log periodically?
    Yes. There are three automatic jobs that run daily, weekly, and monthly doing this sort of thing. They run in the early hours of the morning if your Mac is awake, or shortly after it wakes up if it was sleeping. In Leopard, if it was powered-off, they won't run; I don't know if it's the same in Snow.

  • I need interfaces and reports with wxample

    Hi all,
    I need interface sample date.If any one having please provide
    Best Regards
    Gopal

    What do you mean exactly ?
    Nicolas.
    Well, I assume more info in your duplicate thread :
    i need interfaces and reports with wxample
    Message was edited by:
    N. Gasparotto

  • In my MacBook Pro, finder is crashing after logging in. It is showing crash report with Relaunch option, when i click on Relaunch option finder is working properly but i am unable to see top bar(Apple, Date, Wifi). Even in safari address bar not accepting

    In my MacBook Pro(10.7.5), finder is crashing after logging in. It is showing crash report with Relaunch option, when i click on Relaunch option finder is working properly but i am unable to see Top bar(Apple logo, Date and Wifi etc... bar). Even in safari address bar, TextEdit not accepting any text means when type something not showing up and also i am unable operate any thing from keyboard. Plz help me…..

    One thing that you can try is installing a 'fresh' version of OS X Lion. Boot into your Recovery partition (holding down the command and R keys whilst booting) and elect to install OS X from the Recovery screen. You need not erase your hard drive and you should not lose any of your data.
    Oh, and just as a precaution, I would use Disk Utility, once you're in Recovery mode, to verify your hard drive before trying to install the OS again.
    Clinton

  • HT4910 My iCal has frozen after I tried to paste info from an email into a reminder.  I get a "server reports an error" message with what I tried to paste in the box.  Calendar is frozen and will only close by forcing it.  Any help?

    My iCal has frozen after I tried to paste info from an email into a reminder.  I get a "server reports an error" message with what I tried to paste in the box.  Calendar is frozen and will only close by forcing it.  Any help?

    Did another window open with the pasted information?  If so, try hitting "enter/return" key and "delete" key at the same time.  That should get rid of the current action on the ical, the extra window should go bye-bye, and all should be fine with the world.

  • Ipod touch is disabled with error message to login to Itunes. i log in and device is not recognized as it is disabled. Im stuck in a loop....???

    My iPod touch is disabled with error message to log into ITunes. I log in to ITunes and it does not recognize device as ITouch is disabled. Im stuck in a loop...?
    Any assistance is greatly appreciated.

    Connect the device to your iTunes library in Recovery Mode using the instructions in this Apple support document.  From there restore it factory defaults.
    http://support.apple.com/kb/ht1808
    B-rock

  • IN bapi- how to provide spool report with messages

    in BAPI, how to provide spool report with messages?

    >
    sujan T wrote:
    > Thanks for your reply.
    >
    >    What is the logic to call the standard report from zprogram?Inside the zpogram how to call standard report?
    >
    > Regards,
    > Sujan
    no special logic is required
    If u want to use
    RPUAUDOO IN THE ZREPORT.
    Put the submit button where ever required
    ex: In zreport after certain process reacedu want to call then use
    submit rpuaudoo and return.
    Regards
    Sas

  • Report to get the Material with Exception message"10"  Rescheduling in

    Hello All
    We want to get the report to get the materials with exception message"10".We can get deatils from T code MD06,but it is restricted to MRP Controller/Vendor and we can get the details from Table "MDKP".Plese provide any report or T code to get the details of the exception message "10"
    Thanks
    Suresh kumar

    Hello
    You can use BAPI_MATERIAL_STOCK_REQ_LIST todata from MD04 or BAPI_MATERIAL_MRP_LIST to get data from MD05.
    BR
    Catano

  • Report with custom layout - formatting conditions

    Hi,
    There's a report with custom layout. What I need is to format some cells depending on the data they contain(like different background color). There's a tab named "Formatting Conditions" which should be meant for doing this and it works perfectly when report has tabular layout. But nothing happens in case of custom layout. Should this be done then in the "Report Layout Editor" and with Javascript? Portal version is 3.0.9.8.0.
    Thanks in advance,
    Madis

    Hi,
    Some condtions like background color do not work in custom mode reports. This is because in case of custom reports the table html is specified by the user and the report renderer has no control over it.
    Hope this helps.
    Sunil.

  • How to keep the field open for input with error message in report program

    Hi,
      Need a help in solving the below issue.
    "How to keep the field open for input with error message in report program"
    Regards,
    C.Shasiraj.

    Hi...
    you have to use the event:
    <b>AT SELECTION-SCREEN ON <FIELD> EVENT.</b>
    u have to give an error message in this event.
    Consider the following <b>Example:</b>
    <b>PARAMETERS : NUMBER TYPE I.
    AT SELECTION-SCREEN ON NUMBER.
      IF NUMBER = 10.
        MESSAGE 'Number vakue is 10' TYPE 'E'.
      ENDIF.
    START-OF-SELECTION.
      WRITE NUMBER.
    </b>
    in this if u give the value of number = 10, it will not proceed further, if u give some other value other than 10 you will proceed further...
    Execute this program once u will understand....
    also Consider the following links :
    <b>Regarding events:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a237d9b511d1950e0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a23ad9b511d1950e0000e8353423/frameset.htm
    <b>Regarding messages:</b>
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/aa575426ad11d2954d0000e8353423/frameset.htm
    This is very useful.......
    Reward points if useful....
    Suresh....

Maybe you are looking for

  • Can I swap my hard drive to another ibook g3?

    My screen has broken [liquid damage] and to get it fixed it'll cost £100-£300 and I don't know if it's just the screen gone. It will be cheaper probably to buy a new ibook off ebay and sell my ibook in parts. But I'll need to back up my 60gb hard dri

  • IOS 8.0.2 disaster

    Yesterday I loaded iOS 8.0.2 onto my iPad which totaly screwed it up, fortunately Apple help got me going by reseating my iPad throught iTunes which was excellent service, v pleased with the service.  However since the install my iPad has filed to co

  • How to add two zeros end of field

    how to add two zeros end of field?

  • BI Analytics repo problem

    Hello, Im a newby with OBIEE. I installed the BI 11.1.1.6 on a linux VM and the client on my windows 7 machine. The network is "host only". Everything seems working, i also created the repo and updated that in online mode. The only problem is when i

  • Workflow in SAP HR

    Hi All, I need help to create a simple workflow in SAP HR. Can anyone guide me . Thanks and Regards Swati