How to list the active Alerts used within a tab(report) within a Document

Hello
We have a number of tabs/reports within a single webi document. There are a couple of alerts within the webi document but only one is used within a given tab/report.
Is there an API around that will help me query the alerts that are enabled within each tab/report within a given document instance?
There is an IReportProcessingInfo class that is around for it looks like its not applicable for Webi documents.
Regards
Madhu
BO XI R2 SP2 on Windows 2003

Hi Madhu,
Below is a sample code to traverse through the ReportStructure and get the Alerters from the cells.
Hope this helps.
Regards,
Dan
Main:
            /************************** RETRIEVING PARAMETERS **************************/
            // Retrieve the logon information
            String username = "username";
            String password = "password";
            String cmsName  = "cms name";
            String authType = "secEnterprise"; 
            // Retrieve the name of the Web Intelligence document to be used in the sample
            String webiDocName = "WebI Alerter Test";
            /************************** LOGON TO THE ENTERPRISE **************************/
            // Logon to the enterprise
            IEnterpriseSession boEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( username, password, cmsName, authType);
            /************************** RETRIEVE INFOOBJECT FOR THE WEBI DOCUMENT **************************/
            // Retrieve the IInfoStore object
            IInfoStore boInfoStore =(IInfoStore) boEnterpriseSession.getService("InfoStore"); 
            session.setAttribute("SAMPLE.InfoStore", boInfoStore); 
            // Build query to retrieve the universe InfoObjects
            String sQuery = "SELECT * FROM CI_INFOOBJECTS WHERE SI_KIND='" + CeKind.WEBI + "' AND SI_NAME='" + webiDocName + "'";
            // Execute the query
            IInfoObjects boInfoObjects = (IInfoObjects) boInfoStore.query(sQuery);
            // Retrieve the InfoObject for the Web Intelligence document
            IInfoObject boInfoObject = (IInfoObject) boInfoObjects.get(0);
            /************************** RETRIEVE DOCUMENT INSTANCE FOR THE WEBI DOCUMENT **************************/
            // Retrieve the Report Engines
            ReportEngines boReportEngines = (ReportEngines) boEnterpriseSession.getService("ReportEngines");;
            // Retrieve the Report Engine for Web Intelligence documents
            ReportEngine boReportEngine = boReportEngines.getService(ReportEngines.ReportEngineType.WI_REPORT_ENGINE);
            // Retrieve the document instance for the Web Intelligence document
            DocumentInstance boDocumentInstance = boReportEngine.openDocument(boInfoObject.getID());
            ReportStructure boReportStructure = boDocumentInstance.getStructure();
            out.print(traverseReportStructure(boReportStructure));
            out.print("<HR>Process Complete!<HR>");
            boDocumentInstance.closeDocument();
            boReportEngine.close();
            boEnterpriseSession.logoff();
Functions:
String traverseReportStructure(ReportStructure boReportStructure) {
            String output = "";
            for (int i=0; i<boReportStructure.getReportElementCount(); i++) {
                        output += traverseReportElement(boReportStructure.getReportElement(i), 0);
            return output;
String traverseReportElement(ReportElement boReportElement, int level) {
            String output = "";
            String padding = getPadding(level);
            if (boReportElement instanceof ReportContainer) {
                        output += padding + "Report Name: " + ((ReportContainer) boReportElement).getName() + "<BR>";
            } else if (boReportElement instanceof PageHeaderFooter) {
                        if (((PageHeaderFooter) boReportElement).isHeader()) {
                                    output += padding + "Report Header<BR>";
                        } else {
                                    output += padding + "Report Footer<BR>";
            } else if (boReportElement instanceof ReportBody) {
                        output += padding + "Report Body<BR>";
            } else if (boReportElement instanceof Cell) {
                        output += padding;
                        output += "Cell ID: " + ((Cell) boReportElement).getID() + " - ";
                        output += getAlerters(((Cell) boReportElement).getAlerters(), level+1);
            } else if (boReportElement instanceof ReportBlock) {
                        output += padding + "Block Name: " + ((ReportBlock) boReportElement).getName() + "<BR>";
                        output += traverseReportBlock((ReportBlock) boReportElement, level+1);
            } else {
                        output += padding + boReportElement.getClass().getName() + "<BR>";
            for (int i=0; i<boReportElement.getReportElementCount(); i++) {
                        output += traverseReportElement(boReportElement.getReportElement(i), level+1);
            return output;
String traverseReportBlock(ReportBlock boReportBlock, int level) {
            String output = "";
            String padding = getPadding(level);
            Representation boRepresentation = boReportBlock.getRepresentation();
            output += padding + "Block type is [" + boRepresentation.getClass().getName() + "].<BR>";
            if (boRepresentation instanceof SimpleTable) {
                        SimpleTable boSimpleTable = (SimpleTable) boRepresentation;
                        output += padding + "Processing SimpleTable...<BR>";
                        output += padding + "Block Header<BR>" + traverseCellMatrix(boSimpleTable.getHeader(null), level+1);
                        output += padding + "Block Body<BR>" + traverseCellMatrix(boSimpleTable.getBody(), level+1);
                        output += padding + "Block Footer<BR>" + traverseCellMatrix(boSimpleTable.getFooter(null), level+1);
            } else {
                        output += padding + "Unhandled Block Type...<BR>";
            return output;
String traverseCellMatrix(CellMatrix boCellMatrix, int level) {
            String output = "";
            String padding = getPadding(level);
            if (boCellMatrix.getRowCount()>0) {
                        TableCell boTableCell = null;
                        for (int i=0; i<boCellMatrix.getColumnCount(); i++) {
                                    boTableCell = (TableCell) boCellMatrix.getCell(0, i);
                                    output += padding + "Column: " + i + " - " + boTableCell.getText() + " - ";
                                    output += getAlerters(boTableCell.getAlerters(), level+1);
            } else {
                        output += padding + "No Cells.<BR>";
            return output;
String getAlerters(Alerters boAlerters, int level) {
            String output = "";
            String padding = getPadding(level);
            if (boAlerters.getCount()<=0) {
                        output += "No alerters.<BR>";
            } else {
                        output += "Alerters found!<BR>";
                        Alerter boAlerter = null;
                        for (int i=0; i<boAlerters.getCount(); i++) {
                                    boAlerter = boAlerters.getAlerter(i);
                                    output += padding + "<B>" + boAlerter.getName() + "</B><BR>";
            return output;
String getPadding(int level) {
            String output = "";
            for (int i=0; i<level; i++) {
                        output += "     ";
            return output;
Edited by: Dan Cuevas on May 25, 2009 9:45 PM

Similar Messages

  • How to list the active savepoints in a session?

    How to list the active savepoints in a session?

    SR 3-4535479801: How to list the active savepoints in a session?
    Oracle Support - September 19, 2011 7:12:50 AM GMT-07:00 [ODM Answer]
    === ODM Answer ===
    Hello,
    That is the only way and it is also described in:
    How To Find Out The Savepoint For Current Process (Doc ID 108611.1)
    One thing to be aware in lower version is the dump if no savepoints are declared:
    ALTER SESSION SET EVENTS 'IMMEDIATE TRACE NAME SAVEPOINTS LEVEL 1' Raises ORA-03113/ORA-07445[SIGSEGV]/[STRLEN] Errors (Doc ID 342484.1)
    Best regards,
    George
    Oracle Support Database TEAM
    Oracle Support - September 19, 2011 6:36:39 AM GMT-07:00 [ODM Question]
    === ODM Question ===
    How to list the active savepoints in a session?
    Is there another way than the following as referenced in the Oracle forums: Re: How to list the active savepoints in a session? ?
    "alter session set events 'immediate trace name savepoints level 1';"
    A trace file is generated in the user_dump_directory.
    - September 17, 2011 5:12:53 PM GMT-07:00 [Customer Problem Description]
    Problem Description: How to list the active savepoints in a session?
    Is there another way than
    "alter session set events 'immediate trace name savepoints level 1';"
    A trace file is generated in the user_dump_directory.
    Re: How to list the active savepoints in a session?

  • How to list the datasources without use a tnsnames.ora file?

    Hi,
    I want to use the OracleDataSourceEnumerator class of ODP.Net to list the datasources on which the user can connect.
    It's work with a tnsnames.ora on the local station, so good.
    But I want use the easy connect naming methode so i have edited the sqlnet.ora file with this:
    NAMES.DIRECTORY_PATH= (EZCONNECT, TNSNAMES)
    then i have deleted the content of the tnsnames.ora
    so my code don't work : none datasource is returned by the OracleDataSourceEnumerator
    So my question : is it a way to list the datasources without use a tnsnames.ora file?
    Edited by: user13499556 on 17 déc. 2010 08:21

    You can check
    DataConnectionFile.EnumerateDependants method
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • How can I determine what dns server the wifi client use within airport

    How can I determine what dns server the wifi client use within airport
    I want to use dns servers other then the one that airport extreme is using. For example I got the 172.16.1.1 (the default gateway - airport extreme), but I want to use the office dns servers, that are in a 10.x.x.x range.
    Is there a possibility?
    Thanks and happy eastern

    The Airport Extreme uses the DNS servers assigned by the network that it connects to. Is you Airport Extreme on the 10.x.x.x network? if it is then you are already using the 10.x.x.x DNS servers. Check your Airport Extreme with the Airport Utility and you will see in the Internet tab, the DNS servers used. The devices connecting to the Airport Extreme are assigned a DNS address of the Airport Extremes IP, In your case 172.16.1.1 but all DNS searches and resolution are done with the DNS servers you see in the Airport Extreme.
    If you want to use some other DNS then you can override in the Airport Extreme which will be used by all devices connecting too the Airport Extreme, Or you can edit the DNS address in each devices wireless settings.

  • IPhone 5S IOS 8. Can't figure out how to disable the "live" location feature within the native calendar app used for mapping/travel time.  Have looked everywhere and it's driving me nuts.  Thanks for any help on where to make the change!!

    iPhone 5S IOS 8. Can't figure out how to disable the "live" location feature within the native calendar app used for mapping/travel time etc.  Have looked everywhere and it's driving me nuts.  Thanks for any help on where to make the change!!

    iPhone 5S IOS 8. Can't figure out how to disable the "live" location feature within the native calendar app used for mapping/travel time etc.  Have looked everywhere and it's driving me nuts.  Thanks for any help on where to make the change!!

  • How to get the context data using java script in interactive forms

    Hi All,
    How to get the context data using java script in interactive forms by adobe,  am using web dynpro java
    thanks.

    Hi venkat,
    Please Refer this link.
      Populating one Drop-Down list from the selection of another Drop-down list
    Thanks,
    Raju.

  • How to find the File name using the FTP Adapter

    hi all,
    how to find the File name using the FTP Adapter with BPEL.
    Regards

    Found the solution for this.
    First In the mediator's routing rule use assign property $in.property.jca.file.FileName to $out.property.jca.file.FileName
    In the BPEL's receive activity go to the properties tab and get the property to a BPEL variable. That should do it.
    Thanks for the posts

  • When printing in Excel It is always want to use the acrobat X pro trial, which the trial is expired. I do not want to use acrobat X pro trial anymore. How can I reset it and use simple acrobat to print my PDF document?

    When printing in Excel It is always want to use the acrobat X pro trial, which the trial is expired. I do not want to use acrobat X pro trial anymore. How can I reset it and use simple acrobat to print my PDF document?

    Hi screen name,
    Adobe PDF printer gets installed when you install Acrobat 10 Pro.
    To use this printer you need to purchase Acrobat. Once the trial period is over you cannot use the printer to create pdf files.
    An alternative way for you is to utilize Microsoft's own inbuilt pdf engine.
    You can simply open the file and select 'Save as' and in the type list select 'pdf'
    Please refer : http://office.microsoft.com/en-in/excel-help/save-as-pdf-HA010354239.aspx
    Regards,
    Rave

  • How to retrieve the current User using PL_/SQL code?

    Hi,
    How can find the current logged user within a Dynamic Page using PL/SQL code?
    Thanks.

    Hi,
    There is a function wwctx_api.get_user which returns the logged in user. You can use this in your plsql code.
    Thanks,
    Sharmila

  • How to list the JAR files loaded into the Oracle Database ?

    How to list the JAR files loaded into the Oracle Database ?

    From 11.1 onwards, the below two views are available to identify the jar files loaded into the Database.
    JAVAJAR$
    JAVAJAROBJECTS$
    By querying the JAVAJAR$ view you can know information about the JAR files loaded into the Database and using JAVAJAROBJECTS$ view you can find all the java objects associated with the given JAR file.
    These views are populated everytime you use LOADJAVA with "-jarsasdbobjects" option to load your custom java classes.
    But unfortunately this feature is available only from 11.1 onwards and there is no clear workaround for above in 10.2 or earlier.

  • How to write the given query using 'ANY ' operator

    Hi,
    How to write the given query using 'ANY ' operator , I dont need to fetch to grade_master table twice in database, just need to fetch within the result set.
    SELECT dsg_code,dsg_name,dsg_grade FROM designation_master WHERE dsg_orgn='&&Orgn' and dsg_ctry='&&ctry'
    And dsg_loc ='&&loc' And dsg_oru = '&&oru' and dsg_grade in decode('&&radio_group',
    1, SELECT grd_code FROM grade_master WHERE grd_osm_code in (Select grd_osm_code FROM grade_master WHERE grd_orgn='&&Orgn' and grd_ctry='&&ctry' And grd_loc ='&&loc' And grd_oru = '&&oru' and grd_code ='&&emp_grade'),
    2, SELECT grd_code FROM grade_master WHERE grd_osm_code > (Select grd_osm_code FROM grade_master WHERE grd_orgn='&&orgn' and grd_ctry='&&ctry' and grd_loc ='&&loc' And grd_oru = '&&oru' and grd_code),
    3, SELECT grd_code FROM grade_master WHERE grd_osm_code < (Select grd_osm_code FROM grade_master WHERE grd_orgn='&&orgn' and grd_ctry='&&ctry' And grd_loc ='&&loc' And grd_oru = '&&oru' and grd_code ='&&emp_grade'))
    thanks
    rincy

    Hi,
    One thing I understood my your issue is you want to perform, execution of query once or fetch the results sets my minimizing the number of times executions of queries. It would be hard for us to check in this way, atleast provide some temporary data and some business rules. Only I can IN, >, < (queries logical conditons on inner query)
    - Pavan Kumar N
    - ORACLE OCP - 9i/10g
    https://www.oracleinternals.blogspot.com

  • How to find the WebUrl alert was raised for external network

    I have two weburl's requestes to monitor under SCOM2007 R2
    url one:  https://www.asdftest.com
    url two:  https://www.lkjhtest.com
    "url one" is configured to access the weburl from internal network and external network(internet) as well.
    "url two" is not configured to access from external network(internet). only configured for for internal network.
    I have configured for scom monitoring for the above two urls using the SCOM 2007 R2 web application template. After configuration i have not received any alert from the "Url Two"
    Q1). I am expecting an alert for "Url two" because it is not configured for external network access. 
    why i was not received any alert for that.
    Q2). How to find an web Url alert is raised for internal network or external network. SCOM Tool is not asked me to specify that the weburl is is from internal/external network access.
    Q3). Particularly how to find the Url alert was raised for external network
    please suggest me and correct me if i am wrong. 
    Thanks in advance.

    Hi,
    Please refer to your another thread:
    http://social.technet.microsoft.com/Forums/en-US/10d32ff3-d1a5-4875-b1ad-bb01a5799a33/web-url-monitoring-internalexternal-network?forum=operationsmana
    Regards,
    Yan Li
    Regards, Yan Li

  • RRB-How to get the activity description instead of WBS element in the bill

    Dear All,
    I am using RRB DIP profile to do my Resource related billing
    RRB-How to get the activity description instead of WBS element in the billing
    document.Now  iam able to get the cost and the quantity used as line items but instead of getting the respective line items in the invoice iam still getting the WBS
    element description for all the activities.Can some body guide me to overcome this problem.
    Assured reward points for your suggestions and help.
    Thanking you,
    Best regards,
    R.Srinivasan

    Dear All,
    Please can any body help me for the same.IT is urgent.I will award you points.
    thankyou,
    Best regards,
    R.Srinivasan

  • How to eliminate the ACTIVE RECTANGLE? in flash 8

    hi can somebody tell me how to eliminate the active rectangle
    in flash movies. I am using flash 8 but i dont like the active
    rectangle around the movie can somebody tell me step by step how to
    do it? FLAS 8 VERSION

    Please search this forum or google - it's been the most asked
    and answered question everyday for
    months - search for:
    "Click to activate this control".
    hope this helps.
    Chris Georgenes
    Animator
    http://www.mudbubble.com
    http://www.keyframer.com
    Adobe Community Expert
    *\^^/*
    (OO)
    <---->
    valla23 wrote:
    > hi can somebody tell me how to eliminate the active
    rectangle in flash movies.
    > I am using flash 8 but i dont like the active rectangle
    around the movie can
    > somebody tell me step by step how to do it? FLAS 8
    VERSION
    >

  • How to set up Oracle Alerts using Lotus mail

    Hi there
    Anyone there knows how to set up Oracle Alerts using Lotus mail

    Hi All. We are looking to install 64-bit Oracle 11g
    on 64-bit SUSE Linux Version 10 SP1. We would like to
    start up with a 16GB SGA and possibly increase to 50GB. How you calculate you need to start database with 16 GB SGA , and latter need to increase it to 50 GB ?
    Can anyone help us with a list of rpms and
    kernel settings we would need to get started? ThanksCheck following link for rmp and kernel parameters
    http://download.oracle.com/docs/cd/B19306_01/install.102/b15667/pre_install.htm#sthref85
    - Virag Sharma
    http://virag.sharma.googlepages.com
    http://viragsharma.blogspot.com

Maybe you are looking for

  • How do I backup my emails in Mail Mountain Lion?

    Am running an IMAP email from my website webmail (hosted at oneandone.com) to Mail on my iMac and am now running out of space on my webmail and so won't be able to receive any new emails when my space runs out.  As the email system is IMAP, if I dele

  • How can i use my facebook aplication ??

    My ipod touch refuse the access "facebook apli." cause it says "combination electronic address/password incorect".  The apli. has already worcked and it doesn't worck on other itouch with my facebook only. I've tryed to download again but it s dosen

  • Error when send file by RMI

    I take application RMI client, server. Client will auto print screen by 3 seconds, when send to server. Server delete picture old and update picture new. But client only send a first time, next time is throw Exception "java.io.IOException: Write erro

  • Can i get mail notifications when mail.app is closed?

    If mail.app is closed, emails wont pop up and notifiy me like in iOS, it seems to only fetch once mail.app is opened. I have put the settings to check for mail every 15 minutes. I have a hotmail and a yahoo account both enabled. Why is this ? Can som

  • Read Information of Internal Order SRM5.0

    Hey all, i could use some help with the following problem. I have to read the Project Leader Information of an Internal Order in SRM 5.0 can anyone tell me if there is a spezial FB to do so? Thanks for all the help Tobias