Passing report name to be used in distrubute destination file?

How can I pass the report_name used in %1 in my cgicmd.dat file to be used in my dest.xml file. Otherwise I am going to have to have a lot of destination xml files (one for each report)
In my cgicmd.dat file i have the following:
pm_report:report=%1 destype=cache DISTRIBUTE=YES destination=/home/oracle9i/dst/dest.xml server=rep userid=x/x@x %*
which uses the dest/xml of:
<destinations>
<file id="MyFiles1" name="/home/reports/output/Daily_Volume_Delays.pdf" format="pdf">
<include src="report"/>
</file>
<file id="MyFiles2" name="/home/reports/output/Daily_Volume_Delays.htm" format="html">
<include src="report"/>
</file>
</destinations>

Hi,
One distribution file can be used to output to different output formats like html, pdf, rtf, etc. For example, the sample distribution file you wrote in your earlier post will output the report into html and pdf formats. So you do not need to have a separate distribution file for every output format.
Similarly, passing the report name is not an issue. The distribution file does not care about the report name. You can use a single distribution file for all reports - just pass the report name in the command.
However, you may still need a separate distribution file for every report definition. The reason is that if you use a single file for all report definition files, then the output report name will be the same for all reports (eg, "Daily_Volume_Delays.pdf"), that is, they will overwrite the previous output with same filename.
You can get more information about distribution in Publishing Reports 10g Chapter 15 (Creating Advanced Distributions):
http://otn.oracle.com/documentation/reports.html
Navneet.

Similar Messages

  • Trying to delete file from trash but get this: The operation can't be completed because the item "File name" is in use. All other files delete except this one. Please help

    Trying to delete file from trash but get this: The operation can’t be completed because the item “File name” is in use. All other files delete except this one. Please help

    Maybe some help here:
    http://osxdaily.com/2012/07/19/force-empty-trash-in-mac-os-x-when-file-is-locked -or-in-use//

  • Passing report name as report title

    Using Desktop Publisher for Word and a standalone BIP Enterprise version, is it possible to pass the report name to the rtf template so that it could be used as the report title?
    This feature would be useful when there are multiple reports (different names and slightly different queries/criteria) that use the same templates. We could then dynamically change the report title based on the report name.
    Thanks,
    Haresh

    Haresh,
    I'm not sure if there is any simple way to print report name in rtf template.
    But there is a work around. Follow below steps...
    1>create parameter called Report_Name in every report
    2>put default value for that parameter as report name (Title)
    3>select parameter type as Hidden
    Now in rtf template.
    <?param@begin:Report_Name?>
    <?$Report_Name?>

  • Passing report name to Labview

    i am more than new to Teststand, have read the whole answers that might match my question but i found no way to have my problem solved!!
    in most answers there were reffered to ReportOptions thing which i could not find at all ..
    so how could i pass the report name which i need to a vi .. and is it bad to put this step in the cleanup .. as to be sure that all other steps in the main section were executed!??
    thanks alot ...

    Just use this expression "RunState.Root.Locals.ReportFilePath", in your Main Sequence, it will return the Path of the Report File, you can pass directly this string to the LabVIEW modules.
    AshwiN,

  • How to pass printer name as a parameter to Bursting control file

    We are on 11.5.10.2 using XML Publisher 5.6.3. We ahve a requirement, where we need to print our invoices to different printers.
    How do we pass the printer name as a parameter to Bursting control file. Can the bursting control file be created to use the printer parameter.
    If it can, can you please provide some examples.
    - Vasu -

    Hi.
    I have created Formula column and it is coming in xml data.
    Like this way
    <CP_TAX_NO>CZ27813941</CP_TAX_NO>
    <CP_CUST_TAX_REG>CZ680527617</CP_CUST_TAX_REG>
    <CF_PRINTER_NAME>ABC_hp4250</CF_PRINTER_NAME>
    <C_REQ_ID>12310217</C_REQ_ID>
    </ISOPTWSHRDPAK>
    But while i passed it bursting directory, it is not printing, if i hardcode over there then it is printing.
    Bursting file code
    <xapi:delivery>
         <xapi:print id="printer1" printer="ipp://localhost:631/printers/${CF_PRINTER_NAME}" copies="1" />
    </xapi:delivery>
    In bursting program file It is display like :
    [1]printer-uri:ipp://localhost:631/printers/null
    If i pass hardcode value instead of cf_printer_name then it is working fine
    [1]printer-uri:ipp://localhost:631/printers/ABC_hp4250
    Pls suggest what to do?

  • How to use Submit in background when report name is not static

    Hi all,
    I have an FM to which report name is being sent as an input parameter.
    So based on the report name I need to call that particular report in background and send the output as a HTML format to dealer's MAIL ID which is also sent as an input param.
    The logic for sending mail in background is achieved.
    I am using the followinf logic to submit the job.
    SUBMIT wf_report USER user_id VIA JOB lv_jobname NUMBER lv_jobcount
        to sap-spool immediately ' '
                         without spool dynpro
        WITH SELECTION-TABLE tb_seltab AND RETURN.
    wf_report holds the dynamic value of report.
    Here, tb_seltab holds various parameters and select-option values.Since I cannot pass a table to JOB_SUBMIT fm i had to use the SUBMIT statement.
    But the program dumps coz we need to explicitly mention the name of the program in the submit statement.
    Is there any other possibility to acheive this req when the report name is not going to be hardcoded?
    Thanks in advance.
    Regards,
    Chandra.

    You forgot the basics of using the SUBMIT.
    try like this it will work
    SUBMIT (wf_report ) USER user_id VIA JOB lv_jobname NUMBER lv_jobcount
    to sap-spool immediately ' '
    without spool dynpro
    WITH SELECTION-TABLE tb_seltab AND RETURN.
    Rhea.

  • Pass column-name as a parameter to reports

    Hello,
    the code below calls a report. But now I want to sort the rows in the report. For example I have a text-item in my form-modul. If I type a column-name and press the button then the rows should be sorted in the report. Is it possible tp pass column-names as parameter to reports?
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := find_report_object('STATIONSTOPOLOGIE');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'html');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_oracle-dev');
    -- SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no pdeptno='||:dept.deptno);
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    WEB.SHOW_DOCUMENT('http://oracle-dev:8888/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_oracle-dev','_blank');
    ELSE
    message('Error when running report');
    END IF;
    END;

    Hi,
    the work has been done in reports. You can use a lexical parameter in reports to add a condition for sorting to the query like:
    select .. from .. where ... &p_order.
    Then add another parameter to the report (for example p_param). Fill p_param via your interface in forms (SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, ....) with the column name. Then build a report trigger like:
    if :p_param is null
    then
    :p_order:= null;
    else
    :p_order:= 'order by '||:p_param;
    end if;
    But have a look, that p_param can only get correct values.
    Rainer

  • Passing Display Name to Portlet(report) as a parameter???

    Does anyone know if we can pass the Display Name for a report dynamically to the portlets?
    For now, I have had to create one page for each report(portlet) by Overwriting the report display
    option and using specific Query Option for each portlet. Preferably I would just call the report
    with two parameters, one used in the sql to narrow down the query and the second for the Display
    Name.
    Thanks in advance,
    Yahya
    null

    Yahya -
    For Portal specific questions such as this, you might also want to post them to the Portal specific forums we have on OTN.
    Members of the Portal development team monitor and answer questions on those forums.
    cheers!
    -steve-

  • Get error when passing server name to Crystal Reports in Visual Studio 2012

    Hello,
    I work on Visual Studio 2012 with Crystal Report 13.0.12 (both developer and run-time). When I pass the name of the server to the Crystal Reports, I get an error -- Failed to open the connection.  Database Vendor Code 17.  I use SQL OLEDB as the provider.  It worked before.  Not sure what has happened.
    Any help is much appreciated!!!
    John

    Hi,
    See this: Failed to open the connection - database vendor code 17
    --dj

  • Passing table name to a report.

    I am designing an application that will draw data from any of a number of different tables (all with different data formats, but the same column names), and wish for this data to be displayed in a report. In the table that contains the selection criteria, I have included columns for schema name and table name. How can I pass these values into the report, and in turn, into a graph?
    I've tried this, but it doesn't work.
    SELECT data_column FROM
    :schema_column.:data_column;

    HI ,
    the table name can be easily passed on to the sql use lexicaly parameter as below
    SELECT data_column FROM
    &table_name where &where_clause
    once you write this query it will give you a message that a bind variable was created . Now you can assign value to this through parameter form or write a code in the after parameter form trigger and also generate the where clause if required .
    do you have same column name in different tables with different data types ?? if so then i really dont know how to solve this problem other wise it should not be a problem
    bye
    sudhir

  • Execute immediate with using clause to pass column name dynamically

    Hai,
    Is there any way using execute immeidate to pass the column name dynamically. I used to pass the column value as dynamic with the help of "Using clause" . But if i use to pass column name, it is giving numberic error at run time. Eg,. for testing has been given below.
    1. Column value as dynamic, which is working correctly.
    create or replace function testexeimm (acctnum char)
    return number as
    acctbal number;
    begin
    execute immediate 'select balance from acct_master where acct_no=:a' into acctbal using acctnum;
    return acctbal;
    end;
    2. Column name as dynamic which is not working
    create or replace function testexeimm (colnam char)
    return char as
    acctbal char;
    begin
    execute immediate 'select :a from ch_acct_mast where rownum=1' into acctbal using colnam;
    return acctbal;
    end;
    Any help in this regard will be highly appericated.
    Regards
    Sridhar

    So the variable has to be numeric too:
    create or replace function testexeimm (colnam char)
    return number as
    acctbal number;
    begin
    execute immediate 'select '|||colnam||' from ch_acct_mast where rownum=1' into acctbal;
    return acctbal;
    end;Max
    http://oracleitalia.wordpress.com

  • Report name for services where used in task lists

    plz let me know report name for services  where used in task lists.

    Hello Sairam,
    I am abit confused. Are you looking for report to find where the task list is used ? You can find all the available reports in The menu path Logistics -> Production -> Master Data -> Routings -> Reporting.
    If you want a specific one then please provide more details
    Thanks
    Amber

  • Templates and Passing a Report Name

    I need to create a template and have the report name passed on to that template, but I need a bit more detailed of an explanation then the following:
    Create a user parameter on the template and then pass the report name to the parameter at run time.

    I wish to have the report name sent to the template so that at runtime the report name will show. I have created a parameter for this to be passed to, and put a field in the header of the template to accept the parameter: what I need to know is how do you send the name of the report which exists in the property palette under -Report -General Information - Name node to the field on the template so it shows at runtime.
    Thanks

  • PASSING A CR2008 REPORT NAME TO CRVIEWER

    Please bear with me since I'm new to this part of VS2005/cr2008. I have created a form using vc2005 where i have the crViewer in the form. If I hard code a cr2008 report name in the the report souce area, when I run the form, the report gets displayed. However, what I need to do is to have this form accept a different cr2008 report file name each time. I took a look at your examples, but they all have the reportsource as hard coded...
    is there away where I can create s skeleton vs2005 form that will accept and display a cr2008 report file ?? I was able to do this using visual foxpro and version 8.5 and version 10 but i can;'t geet it to work in vs2005...any comments greatly appreciated or of you can point me to some documentation about this wonderfull...thanks in advance...

    i am currently using the evaluation copy of cr2008...and vb2005 to create the crviewer for the report.
    this is my code...
    Public Class Display_report
        Dim m_reportsource As String
        Private Sub CrystalReportViewer1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Load
            '      m_reportsource = "c:\airs_crreports\client_agency_referral.rpt"
            MessageBox.Show(m_reportsource)
            CrystalReportViewer1.ReportSource = m_reportsource
        End Sub
        Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        End Sub
        Private Sub reportDocument1_InitReport(ByVal sender As Object, ByVal e As System.EventArgs) Handles reportDocument1.InitReport
        End Sub
        Private Sub reportDocument1_RefreshReport(ByVal sender As Object, ByVal e As System.EventArgs) Handles reportDocument1.RefreshReport
        End Sub
    End Class
    hope this helps

  • How to print report in Character mode using Oracle Developer 10g

    Dear,
    I migrate my forms and reports from Oracle Developer 6 to Oracle Developer reports 10g,
    We are using some character mode report for bill printing. But when i run these report through menu on Web i got error message like
    "REP-1920: Character mode runtime incompatible with DESFORMAT of PDF, HTML, HTMLCSS, SPREADSHEET or RTF"
    i don't want to change the character mode to any other mode because it effects the printing.
    so how can it possible to set the mode to character and view report on Web.
    pls. suggest me solution.

    You have to pass the PRT file name as value for the DESFORMAT and use mode= MODE=CHARACTER.
    E.g.
    http://<host name>:<port>/reports/rwservlet?desformat=dflt&mode=character&.....

Maybe you are looking for

  • AppleWorks versus MicroSoft 2008 for Mac

    Hi ALL, How is it possible to open AppleWorks files with MicroSoft 2008 for Mac ?? Maybe it is possible to open these files with Excel. I have a lot of older files I need to open in any application now I running Tiger. I need these files again, ones

  • Bad File Permissions, Locked Files, Applications and Drives

    I've been running in to a huge problem the last few days and I can't find a solution short of a complete archive and reinstall. The problem started with photoshop CS3; I couldn't open the application because it said that it was locked and to go into

  • Option to get rid of the "Home" and "Call phones" buttons

    Love Skype, I use it primarily as an IM. But I never use those two buttons, and I can't seem to get rid of them. Please provide an option in the View menu to hide them!

  • Listener shutdown with linux error 29 : ilegal seek

    Hi, everybody and some gurus I'm using VMware ESX server. I have successfully installed Oracle 10g R2 over Fedora 7. Then I made a clone of this server. After changing name and IP Oracle listener crashes with linux error : 29 : Illegal seek. After se

  • Update Distribution Points & Install pending

    Hello All, I created several Packages and tried to deploy them and they sit with install pending in the state field.  I also tried updating a Operating System Image and that is also install pending.  I have rebooted the server several times with no c