How to invoke a report by name instead of ID?

Hello,
We have developed several shared reports which are invoked from other applications. In Active Studio we select the Report and use "Copy Shortcut" option in left menu to get a web link such this:
http://work/oraclebam/ReportServer/default.aspx?Event=ViewReport&ReportDef=4&Buttons=False
We have two environments: a development and production. We are exporting reports in development and importing in production (using icommand), but ids change everytime, so the parameter above (ReportDef) is not the same as before and we have to re-custom all apps again. The problem is we have several (200+) reports and takes a long time to update all reports, tests and so on.
Any idea if is possible calling a report by name instead of ID?
Thank you too much,
Rogério

Hi All
1. In ORABAM Schema, all the Report details are stored in Tables like SysIterReport, SysIterDataset, SysIterParameter, SysIterParameterValue.
2. Most important Table is SysIterReport. It has "SysIterName" which is Report full name with full path like "/public/Report/MyXyzApp/MyXyzReport1" and "SysIterID". This SysIterID is the Report ID.
3. So simple Query above table to get all the SysIterIDs for the matching  SysIterName. From returned rows, simple extract last part of the name which is like unique Report name. Now you have a mapping of Report Name versus the Report Id from that OraBAM Schema in that Environment like Qc, UAT or production.
Select SysIterID, SysIterName from SysIterReport where SysIterName like '%MyXyzApp%'.
4. I would recommend to create like separate folders for separate bpm projects deployed on same domain. And put that application specific data objects and reports in that folder itself.
From Java side very simple. On BPM Domain with Oracle BAM configuration, you already have a DataSource that connects to ORABAM Schema by name "BAMDataSource-jdbc.xml" under config/jdbc folder. This XML File has all orabam schema details and also JNDI Name like "jdbc/oracle/bam/adc". Write a simple Java Program. Do JNDI lookup using this datasource name. And from that get connection object. Run above query and get rows back. Build a simple WebPage, and build a dynamic URL as shown below. BamServer host and BamServer Port can be put in a properties file to make it more dynamic. And each environment will have .properties file with those details. Or simple put the below URL as it is which is different for each environment.
http://bamserverhost:bamserverport/OracleBAM/reportserver/default.jsp?Event=viewReport&ReportDef=
In the Java code, simple get above url and append the ReportId. And on UI for each URL, show the Report Name. Simple speaking, once you get Rows from SysIterReport table, on java side create a HashMap with ReportName and ReportLink (generated as shown above). And on UI, loop through this Map and show name and link.
One final thing. If the Java code is deployed to SOA_Server, make sure that the BAMDatasource is deployed to SOA Server also. By default BAMDataSource is targetted only to BAM Server. But java code or ui code is on Soa server. So simple target bam data source to soa source also from Weblogic Console.
This will WORK and I have already done this. Users will see more user friendly Links on my Task Details page. And clicking on them takes them to the BAM Reports.
Thanks
Ravi Jegga

Similar Messages

  • How to invoke crystal reports from Oracle forms 11g R2 along with passing p

    How to invoke crystal reports from Oracle forms 11g R2 along with passing parameter to it.
    how to pass parameters to crystal report, please help.

    how to pass parameters to crystal report, please help.This would entirely depend on crystal reports and you might find informations on crystal reports related communities more likely...I for one have seen crystal reports the last time about 12 years ago. And even back then I simply acknowledged it's existence instead of working with it.
    Maybe crystal reports can be invoked via a URL call which would make it simple as you'd need simply build an URL and show the report using web.show_document. But that's pure speculation. Also you might not be the first with this requirement, so the solution to your problem might be right under your nose and just a little google search away ;)
    cheers

  • How to get the report server name in Forms 10g.

    How to get the report server name in Forms 10g.
    I'm using the Application Server 10g 10.1.2.

    Hello,
    I do not think that you can get this value from anywhere. A solution is to put the Reports server name in an environment variable stored in the /forms/server/default.env file, then to query it at Forms runtime with the TOOL_ENV.Getvar() built-in.
    Francois

  • How to print the report file name and path and the last mod date

    Good morning,
    I am trying to print on the footer of the report the report file name and path as well as the report last modification date.
    Anyone would know how I can do that? I have checked the doc but found nothing.
    Thks. Philippe.

    Did you ever determine how to print report name and report last mod date?
    Thanks

  • How to show the witholding tax name instead of the code in PLD

    Hi Guys,
    Is it possible to show the witholding tax name instead of the witholding tax code in the summary or end of report in the PLD(AR Invoice)?
    Thanks.
    Eric

    Hi Eric
    I have tried to get it directly from the table: Witholding Tax, field: WTaxName; but there's no way to relate that with the A/R Invoice document so it shows me a wrong WT Name.
    As this tables is not directly exposed/related to the document the best way is try to create a Formatted Search in order to get the description you want. Please note the WT is get from a table and if you have more than 1 type of WT it may not work in a End of Report as it does not have the capacity as repetitive area to read multiple lines.
    Paulo Calado
    SAP Business One Forums Team

  • How to invoke Oracle Reports from JSP ?

    Hi,
    I need to invoke Oracle Reports ( paper format ) from my JSP in different formats /PDF, RTF, HTML/ using rwservlet and then send the content to user browser.
    Please, someone to give me working example.
    Thanks in advance.
    Best regards.
    Peter.

    Peter,
    you can call it from a URL if you need:
    /reports/rwservlet?report=...&detype=cache&desformat=pdf...
    You can define a file called cgicmd.dat on teh server that takes key-value pairs of the most common parameters under an named entry.
    e.g.
    ReportsCommon: destype=cache server=myServer ... %*
    This way your URL is reduced to a minimum length because you don't have to list all parameters in teh URL.
    Second solution:
    Run a Reports from a browser URL and specify paramform=yes. This create a HTML based parameter form before executing teh Reports. Have a look at the HTML form code and see to what extend your Reports share same functionality so that you could create this HTML form in your JSP page. You could have a poplist with the name of "desformat" and list HTML, HTMLCSS,PDF,RTF,XML as valid entries so that the user can select the output format.
    The Reports documentation shipped with Oracle9iAS (also available online otn.oracle.com/products/reports) has all teh information you need.
    Frank

  • How to Invoke Oracle report builder installed on a server from a client

    Hi,
    I am using rwrun60 command to invoke report builder through a shell script. In this case the report builder is installed on the same machine where the shell script exists.
    But now i have shell script which is on different server (say, Server1) and Report builder is on Server-2. How do i handle this?
    the current piece of code i am using in the shell script is:
    rwrun60 module=${UNCPATH}/${REPORT_DIR}/purchase.rdf userid=$DBID/$DBPASS@$DB paramform=NO batch=YES destype=File desformat=pdf desname=${SENDFILE}
    Your help will be invaluable...

    Hi Denis,
    I used both rwrun60 & rwcli60 commands as below:
    rwrun60 module=${UNCPATH}/${REPORT_DIR}/abc.rdf userid=$DBID/$DBPASS@$DB EXPRESS_SERVER="server=Server123/domain=xyz/user=myname/password=password123" ERRFILE=${UNCPATH}/${DIR}/error_test.txt paramform=NO batch=YES destype=File desformat=pdf desname=${UNCPATH}/${SENDFILE}
    rwcli60 module=${UNCPATH}/${REPORT_DIR}/abc.rdf userid=$DBID/$DBPASS@$DB EXPRESS_SERVER="server=Server123/domain=xyz/user=myname/password=password123" ERRFILE=${UNCPATH}/${DIR}/error_test.txt paramform=NO batch=YES destype=File desformat=pdf desname=${UNCPATH}/${SENDFILE}
    When i run the shell script file on the command prompt, all i get is this error:
    rwrun60: test_outapp 42: not found
    42 is the line number of rwcli60 command in the shell script file.
    I verified and test_outapp.ksh file is present in the path specified..... even then why this error?...something wrong with the above code?

  • How to Change Crystal Report database name from visual basic code?

    Hi all,
    I have created a Crystal Report (CR)  with .NET VB. I also have developd some UDTs for that pusrpose and everything is OK.
    However I cannot use the same CR in another Company which has the same UDTs. I have not found how Connect to Company (in other words change the DB the report reads).
    Any Idea?
    Thanks,
    Vangelis
    Edited by: Vangelis Kanellopoulos on Jul 19, 2008 6:07 PM
    Edited by: Vangelis Kanellopoulos on Jul 20, 2008 10:27 AM
    Edited by: Vangelis Kanellopoulos on Jul 20, 2008 10:28 AM

    Hi Vangelis,
    Here's a simple VB class that has functions for setting the login details for the report and passing parameters.
    Option Strict Off
    Option Explicit On
    Public Class CrystalFunctions
        Enum ParamType As Integer
            Int
            Text
        End Enum
        Public Shared Sub SetCrystalLogin(ByVal sUser As String, ByVal sPassword As String, ByVal sServer As String, ByVal sCompanyDB As String, _
               ByRef oRpt As CrystalDecisions.CrystalReports.Engine.ReportDocument)
            Dim oDB As CrystalDecisions.CrystalReports.Engine.Database = oRpt.Database
            Dim oTables As CrystalDecisions.CrystalReports.Engine.Tables = oDB.Tables
            Dim oLogonInfo As CrystalDecisions.Shared.TableLogOnInfo
            Dim oConnectInfo As CrystalDecisions.Shared.ConnectionInfo = New CrystalDecisions.Shared.ConnectionInfo()
            oConnectInfo.DatabaseName = sCompanyDB
            oConnectInfo.ServerName = sServer
            oConnectInfo.UserID = sUser
            oConnectInfo.Password = sPassword
            ' Set the logon credentials for all tables
            For Each oTable As CrystalDecisions.CrystalReports.Engine.Table In oTables
                oLogonInfo = oTable.LogOnInfo
                oLogonInfo.ConnectionInfo = oConnectInfo
                oTable.ApplyLogOnInfo(oLogonInfo)
            Next
            ' Check for subreports
            Dim oSections As CrystalDecisions.CrystalReports.Engine.Sections
            Dim oSection As CrystalDecisions.CrystalReports.Engine.Section
            Dim oRptObjs As CrystalDecisions.CrystalReports.Engine.ReportObjects
            Dim oRptObj As CrystalDecisions.CrystalReports.Engine.ReportObject
            Dim oSubRptObj As CrystalDecisions.CrystalReports.Engine.SubreportObject
            Dim oSubRpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            oSections = oRpt.ReportDefinition.Sections
            For Each oSection In oSections
                oRptObjs = oSection.ReportObjects
                For Each oRptObj In oRptObjs
                    If oRptObj.Kind = CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
                        ' This is a subreport so set the logon credentials for this report's tables
                        oSubRptObj = CType(oRptObj, CrystalDecisions.CrystalReports.Engine.SubreportObject)
                        ' Open the subreport
                        oSubRpt = oSubRptObj.OpenSubreport(oSubRptObj.SubreportName)
                        oDB = oSubRpt.Database
                        oTables = oDB.Tables
                        For Each oTable As CrystalDecisions.CrystalReports.Engine.Table In oTables
                            oLogonInfo = oTable.LogOnInfo
                            oLogonInfo.ConnectionInfo = oConnectInfo
                            oTable.ApplyLogOnInfo(oLogonInfo)
                        Next
                    End If
                Next
            Next
        End Sub
        Public Shared Sub SetCrystalParams(ByVal sFieldName As String, ByVal iDataType As ParamType, ByVal sVal As String, ByRef oRpt As CrystalDecisions.CrystalReports.Engine.ReportDocument)
            Dim oFieldDefs As CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions
            Dim oFieldDef As CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinition
            Dim oParamVals As CrystalDecisions.Shared.ParameterValues
            Dim oDiscreteVal As CrystalDecisions.Shared.ParameterDiscreteValue
            oFieldDefs = oRpt.DataDefinition.ParameterFields
            oFieldDef = oFieldDefs(sFieldName)
            oParamVals = oFieldDef.CurrentValues
            oParamVals.Clear()
            oDiscreteVal = New CrystalDecisions.Shared.ParameterDiscreteValue()
            Select Case iDataType
                Case ParamType.Int
                    oDiscreteVal.Value = System.Convert.ToInt32(sVal)
                Case ParamType.Text
                    oDiscreteVal.Value = sVal
            End Select
            oParamVals.Add(oDiscreteVal)
            oFieldDef.ApplyCurrentValues(oParamVals)
        End Sub
    End Class
    And here's how you would use them:
    ' Create an instance of the Crystal report
    _rptCrystal = New CrystalDecisions.CrystalReports.Engine.ReportDocument()
    _rptCrystal.Load(_oSBO.AddonPath + "\Reports\MyReport.rpt")
    ' Call SetCrystalLogin to see the logon information for all report tables
    CrystalFunctions.SetCrystalLogin(sUser, sPassword, _oSBO.SboCompany.Server, _oSBO.SboCompany.CompanyDB, _rptCrystal)
    ' Set my report parameter value
    CrystalFunctions.SetCrystalParams("MyParam", CrystalFunctions.ParamType.Int, 999, _rptCrystal)
    ' Print the report straight to the printer                          
    _rptCrystal.PrintToPrinter(1, False, 0, 0)
    The other way to approach this solution would be to base your Crystal report on a .NET dataset rather than a database connection. However, as you've already written your report, the code above is going to be simpler to implement.
    Kind Regards,
    Owen

  • How to save the Created by name instead of saving  login user name

    Hi All,
    I done Without log in Jsp page to open one responsibility without login .
    here created one column Created by here user can view list of values in username . it EAM module work request page .
    my issue is while creating the work request Created by name saving in to the database but requirement is user needs to select using created by LOV that username needs to be save on data base .
    once open the application created by name is coming as a login name using controller i removed the created by i set the created by name in PR is lovevent .
    front end its working fine but while saving login user name is saving i need to save the created by name based on the lov .
    can any one help to overcome this issue......
    Thanks in Advance.....
    Kumar

    Hi,
    Thanks For Reply
    It is a Standard Page and created by column Passing in the package while inserting the data FND_GLOBAL.UserID.
    I have One more option i need to pass the created by as perameter in Jsp Page based on that user i need to get the password using (Encrprit ) command .
    Is it Possible to do in Passing the Parameter OAF to JSP page .and how to Encrprit the password to avoid entering the password .
    I hope U understand My Requirement..
    Regards,
    Kumar

  • How to Invoke a report from java?

    Hi,
    I am a java / web developer with no reports experience.
    We wish do the following from a java based web application:
    On a web page we have two buttons
    1) Print
    2) Create file.
    We want these two buttons to perform the following tasks:
    1) The print button should run a predefined report with a set of parameters and send the output to a printer.
    2) The Create File button should run a predefined report with a set of parameters and send the output to a rtf file on a temp area, which the java app can pick up for further processing.
    Both actions should be triggered from the web app without the need for users
    to have any knowledge of reports at all.
    We are running ias 9.0.2.3.
    Is the use of the plsql SRW package the best way to achieve this kind of functionality
    or are there other JAVA APIs or any other ways to solve this scenario?
    Any comments appreciated!
    Regards
    Per A Jorgensen

    Hi Per,
    In your submit button's ACTION, the URL that you submit should be like this:
    For printing button:
    http://machine:port/reports/rwservlet?report=...+server=...+userid=...+destype=printer+desformat=...+desname=<printer_name>
    For create file button:
    http://machine:port/reports/rwservlet?report=...+server=...+userid=...+destype=file+desformat=...+desname=<file_name>
    Find the report request methods as syntax in the Publishing Reports Manual (Section 13.2)
    http://otn.oracle.com/documentation/reports.html
    Navneet.

  • How to change Report Server Name???

    How can I change my reports server name which is normally generated according to Server Name_OracleHome combination. But can I use a different name for my report server and which configuration files I'll have to change???

    How can I change my reports server nameSee Paulo Esteves answer in How to change the Report Server Name?

  • Edit the reports server name .dat how ?

    Hi ...
    How edit the file <reports server name >.dat located in $Oracle_home/reports/server , because , i see code encrypted with notepad.exe.
    thanks..
    Atte
    hector

    Hector,
    as far as I know this file contains data about jobs scheduled for the reports server, so the only tool that can read that file is the reports queue manager (and maybe the only forum that can help you is the reports forum;).
    Gerald

  • Help: problems in generating a menu for invoking a report

    I have trouble generating menus that invoke reports. This is what happens and how I do it:
    I'm using Designer 9i (DevSuite 9.0.2.0.1) and trying to build a 100% generated Forms and Reports application. So far everything was working fine with using Function Attribute usage and Application Design transformer for rough modules. Then with Design editor I connected components, did a lot of modifications and all my forms and reports are working fine.
    Everything in forms and reports servlets is set-up well and I am able to invoke the forms via
    http://localhost:8888/forms90/f90servlet?form=....&..&..
    and the reports via
    http://localhost:8888/reports/rwservlet?report=...&...&..
    and they look almost fine (except character set is wrong ISO-8859-5 instead of WIN-1251, but that is manageable).
    Later, when I use Application Design Transformer to create menus, problems occur. All the forms and reports modules are linked within the menus in a network that looks just fine but the menus do not generate! There is no error written, only that generation was unsuccessful.
    There is .mmb created, but no .mmx. If I open the created .mmb file in Form Builder and try to compile it there, the pl/sql for the menu option for invoking the report contain[i]Long postings are being truncated to ~1 kB at this time.

    There is .mmb created, but no .mmx. If I open the created .mmb file in Form Builder and try to compile it there, the pl/sql for the menu option for invoking the report contains something like this:
    cg$nv_invoke_report('','reportname.rdf','','','')
    and the error is that the number of parameters is not correct. I looked inside the included library and this command want 6, instead of 5 parameter - the last one a parameter list for the report.This report has no arguments, hence no parameters should be passed - at least I think so.
    Is this some kind of bug of designer fixed in later version, or I am doing things the wrong way?
    Finaly, I learned how to invoke the report with a custom built pl/sql code (with run_report_product and web.show_document) described in some of the Forms 9i documents on OTN, but this is not the way I would like to do this because I will have to put such kind of code inside templates or libraries, and link with all of the created reports (and there are tons of them). I MEAN -- if Oracle knew how to do it, why didn't they made this cg$nv_invoke_report work as it was supposed to work!
    Please help

  • Finding Report Server Name

    Hi All,
    I am calling reports from the forms for that I have hard code the report server name in my code.
    Is there is any alternative to set the report server name dynamically at run time, means how to find the report server name and pass that into as a parameter in my code.
    Regards,
    Ashutosh

    Thanks Andreas ......... report server name is getting now.
    I have one more problem ......... i m using webutil.pll in forms 10g
    in that i am using client_host function ........ to run the host command on local machine to delete or copy a file.
    On when-button-pressed trigger writing below code :
    CLIENT_HOST('CMD /C DEL C:\TEMP.TXT');
    Its giving an error message : ORA-06503 & PL/SQL function return without value.
    Could you please help me out ....... as i am new to forms 10g
    Thanks in advance for your assistance.
    Regards
    Ashutosh

  • Report Path Name

    Hi,
    I have a main sequence file with 5 steps each of sequence call type. I use the multi threading option to generate individual reports for each of the sequences in the sequence call.
    I configured the report options call back for the main sequence. I gave a different directory path for the report in Parameters.ReportOptions.Directory . The report corressponding to the main sequence is getting generated in the specified directory. But the reports of the sequence calls are getting generated in the directory specified in the reports option menu.
    Is it possible to make the reports generate at the required directory by making changes in the main seqnece alone? How to modify the report path name stored in the report options dialog box in the menu.
    Regards
    Gopal

    Hi everyone,
    Just an update in reference to Gopals's question:
    Is it possible to programatically give value to the directory in Report Options in Configure>>Report Options. Either using expressions in teststand or from Labview code.
    TestStand 4.2 gives you the ability to specify the report path using Expressions as well right from the Report Options dialog box. For instance, this can come in handy in situations where you might want to put all Failed UUT reports in one location and all Passed UUT reports in a different location.
    For more information on this, refer to:
    NI TestStand Help: Specifying Report File Paths by Expression
    NI TestStand 4.2 Release Notes: Using Expressions to Customize Report File Paths
    For more information on the new features in TestStand 4.2, refer to:
    Whats New in TestStand 4.2
    Jervin Justin
    NI TestStand Product Manager

Maybe you are looking for

  • Selecting fields those which contains values from a table of one record

    hello Is it possible to select the fields of a table having not null values for a single record. The record contains 25 fields like FieldNames are Field1, Field2......Field25 if Field1 and Field12 has some not null values and other fields contain nul

  • Null values

    Post Author: Kathleen CA Forum: Data Connectivity and SQL The purpose of the attamy is to pull up any client that was served in a time range.  So we have been using the Intake "{CLIENT.InDateStart}" and the {CLIENT.InDateEnd} as agency open and close

  • Logon Error when Using soap Web Service

    Hi,   I'm trying to determine why I'm getting the following error message when I submit a Web Service from our Custom Application to SAP.  This error is occurring in SAP ECC 6.0 SPS16 (Quality Client) and we do not have the JAVA Stack installed.  Our

  • Help needed in interpreting panic log from kernel panic error

    My G4 iBook has started giving me kernel panic errors, often immediately after starting up. I haven't installed any new software or RAM recently. I've done a clean system install (completely clean - not an archive and install) then downloaded the com

  • External Parser - XML to Pipe Delimited - Sql Loader BETTER DBMS_XMLSTORE

    Hi All, If I have got data in GIGs in a complex format. Can Using an External Java based XML Parser to convert XML to Pipe Delimited FIle and then Using SQL Loader BE BETTER THAN Using XSL to convert to Oracle <ROWSET> <ROW> Format and using DBMS_XML