URGENT Printing a BI publisher report from a column link in APEX

I am developing an APEX report with a column link that will call a BI publisher report, the case is the link column in the APEX report will pass the item number to the BI publisher query.
At the moment this is what I am doing:
1- Create a hidden item on top of page zero. (e.g. PARAM1_VALUE)
2- Create a report query and a report layout (For BI Publisher) in the Shared Components. (e.g ITEM_REPORT)
3- Include the state session in the report query and reference that item in the query. (e.g. SELECT * FROM items where item_number = :PARAM1_VALUE)
4- Create an APEX report displaying orders with the item number as a link column.
5- In the Link column I set the report URL request to be "PRINT_SERVER=ITEM_REPORT".
6- In addition I set the PARAM1_VALUE to be #ITEM_NUMBER# on the link.
When I press on the link the BI publisher report prints but it doesn't display anything except the Headers, my understanding is that PARAM1_VALUE is not set with the item_number value when I press on the link and thus the query returns no results as when I remove the condition from the query i can see the report printing.
Please help as this is urgent

I opened the session and it is there with a proper value, it appears that whenever I enable the inclusion of session state in my shared components query the query returns no rows even if I am not using the item in the query.
So if my query is "SELECT * FROM items" it will display nothing, the only way to get the report data back is to untick the inclusion of the session state and remove any reference to the item from my query, then I will get the report with all my data (which is NOT what I am trying to do).
Thanks alot
Khaled Jamoos

Similar Messages

  • Open BI Publisher Report From Standard Report Link

    I am having problems opening a bi publisher report from a colomn link in a standard report.
    My standard report is
    select reg_id, frg_no
    from my_tableThen in the REG_ID column, I place the following in the URL link.
    javascript:popupURL('BI_URL.Guest/MERCURY/FORM73/FORM73/FORM73.xdo?_xpt=1&P_REG_ID=&#REG_ID.&_xt=FORM73_xf=rtf');Once I click on the link the BI Publisher report opens in a pop up window, but does not display any data, ie, it does not recognise #REG_ID.
    Any help appreciated
    Gus

    Solved it
    Gus

  • Calling bi publisher report from apex.

    good morning all,
    I have a situation at hand, i want to be able to call bi publisher report from a dropdown list in apex. what i did was to create a table in the oracle db with the report name and url as columns, from apex all i did was to create a list item which queries the table a should display the report using the url. but the report is not showing properly, what do you thinl i can do.
    i am using the following verion:
    bi publisher: 11g (11.1.1)
    apex: 4.2.1.00.08
    oracle database: 11.2.0.1.0
    Thanks.
    AbdurRahman

    Hopefully, that could be helpful for you,
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/prod/install/apexinst/apexinst_prod.htm
    http://dgielis.blogspot.jp/2007/12/call-bi-publisher-report-from-apex.html
    https://blogs.oracle.com/xmlpublisher/entry/apex_integration_with_publishe
    Edited by: Weibing.Xia on 2013-5-20 下午5:40

  • Printing BI Publisher report from OAF Page WITHOUT Preview or Save Option

    I have a requirement to print a BI Publisher Report on the invoke of a Button from a OAF Page. I have followed the method suggested in the below link to integrate OAF and BI Publisher.-
    http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
    In this scenario, I already developed Data Definition (XML) and Template (RTF) for the report and a self service page with 'Generate PDF' button. When the button is clicked the template is getting filled with the data from the database and displaying the PDF output. A dialog box with 'Open/Save/Cancel' appears before the PDF document is shown.
    But my requirement is to avoid this dialog box and Save option so when the button is clicked the document has to be directly sent to the printer.
    Is there anyway to achieve this? Please help as this is very urgent..
    Thanks,
    Naren

    Naveen,
    You need to read the documentation here:
    http://www.oracle.com/technetwork/middleware/bi-publisher/documentation/xmlpdocs-084437.html
    All of the information you need is in these:
    Administration and Developer's Guide
    Report Designer's Guide
    JavaDocs
    With the BI publisher (XML publisher) Java APIs, you can call a data template with parameters and get the XML from that.
    For an example that should be very close to what you need to do, see the comments section of this page:
    http://apps2fusion.com/at/ps/294-bi-publisher-document-viewer-common-region-embeded-report-output-in-oa-framework-page-part-2
    Find the comment titled: "Alternative: BlobDomain from data template"
    The great thing about using a Data Template is that, while you are NOT concurrent program dependent, you can still set up a concurrent program to run it for other purposes if you wish. Data Templates offer a lot more flexibility.
    Kurz

  • Run BI Publisher report from an application directly to  a printer.

    Dear All,
    I have an HTML page (with JavaScripts),
    I want to Run BI Publisher report from this page directly to a printer. (and send parameters).
    Can anyone help me, and send me Demo URL or Demo code to do this?
    Regards,
    Tovit

    Tovit
    you are going to have build out a servlet that the page can call. The servlet will need to implement the supported web services to schedule a report. The schedule can include the delivery options ie to a printer. So you would create a schedule that runs the report immediately via the scheduler and then to the printer.
    I dont currently have any servlet demos but the services are pretty well covered in the user docs.
    check them out and give it a try, if you get stuck let me know
    Tim

  • Error publishing reports from BW

    Hi,
    I am facing some issues while publishing reports from BW system. I have taken care of all the settings mentioned in Integration Kit guide. We are using BOXI 3.1 SP3  OS:windows 2008 (64-bit)
    The error that we are getting is:
    "0000000001 An error occurred when retrieving the role metadata for YBW_BO_CONTENT_PUBLISHER. Returned with RFC code 18 and message: See RFC trace file or SAP system log for more details"
    I have enabled the trace also, still not able to find the root cause.
    Need help urgently. Thanks.
    Amit Tewatia

    Hi Startos,
    I have matched the auth. as per the admin guide, everything is fine with the role. I have checked the trace file logs, part of which is below:
    "Starting up callback server at 10.239.30.2 sapgw00 with prog-id SEGIDC8BBB5A3
    GetRfcHandle() returned with handle 0
    Connection cloning failed. Message: See RFC trace file or SAP system log for more details
    ERROR: .\job_defs.cpp 52: l_rfcDownloadRoleMdata failed with return code l_rcRfc = 18 Exception:
    Leaving job processor CPubJobGetRoleMetaData(YBW_BO_CONTENT_PUBLISHER)"
    No idea why it calling this IP. This is not the IP of our BW server. please suggest where to check for this.
    Regards,
    Amit

  • Invoking XML Publisher Report from PL/SQL

    Hi,
    I have a PL/SQL procecedure which invokes the Concurrent Request for the XML Publisher Report. This one finishes with a warning and I get 'Unable to publish output' when I try to view the output. Exact Error: "Unable to find the published output for this request "
    But if I run the same report using Concurrent program, the Report executes with no error. Also the desired output is coming. I am not sure where I am doing wrong in code.
    My code which invokes the XML Publisher Report (from PL/SQL package)is something like this:
    declare
    x boolean;
    l_no_of_copies varchar2(45);
    l_printername varchar2(45);
    l_print_style varchar2(45);
    l_result boolean;
    y number;
    begin
    x := fnd_request.add_layout (template_appl_name => 'XXTMG', template_code => 'XXT_5001_BOL_T', template_language => 'EN', template_territory => 'US', output_format => 'XML');
    l_no_of_copies := fnd_profile.VALUE ('XXTMG_SH_BOL_REPORT_NO_OF_COPIES');
    l_printername := fnd_profile.VALUE ('XXTMG_SH_BOL_REPORT_PRINTER');
    l_print_style := NULL; --For setting the Printer Options
    l_result := fnd_request.set_print_options (l_printername, l_print_style, l_no_of_copies, TRUE, 'N');
    l_result := fnd_request.add_printer (l_printername, 0);
    y := fnd_request.submit_request ('XXTMG', 'XXT_5001_BOL', '', TO_CHAR (SYSDATE, 'YYYY/MM/DD HH24:MI:SS'), FALSE, 'CH-120079') ;
    end;
    Please let me know where I might be going wrong
    Thanks

    Hi Sumit,
    You can try with this code:
    exec dbms_application_info.set_client_info(org_id)
    exec fnd_global.APPS_INITIALIZE(user_id,resp_id,appl_id);
    declare
    x boolean;
    l_no_of_copies varchar2(45);
    l_printername varchar2(45);
    l_print_style varchar2(45);
    l_result boolean;
    y number;
    begin
    x := fnd_request.add_layout ('XXTMG' --template_appl_name 
              ,'XXT_5001_BOL_T' --template_code
              ,'en' --template_language 
         ,'US' --template_territory
         ,'XML' --output_format
    if (x=TRUE) then
    y := fnd_request.submit_request (
                        'XXTMG'           --application 
                        ,'XXT_5001_BOL'      --program
                        ,SYSDATE          --start_time
                        ,FALSE               --sub_request
                        ,'CH-120079'          --argument1 (Program's Parameter)
    if y>0 then
              dbms_output.put_line('Request ID '||y);
    end if;
    end if; --if (x=TRUE) then
    end;
    Make sure that program has only one input parameter. If program has other parameters then you can pass those parameters like argument1, argument2... etc.
    Now you can see this submited request in your application using your user id. If you able to see your request in concurrent request then you can add printer parameters in this programs.
    You don't need to pass all 100 parameters.
    I am executing many programs/reports using this code.
    Thanks
    Ravi
    [email protected]
    Message was edited by:
    Ravi Tripathi

  • Call Xml Publisher report from Jdeveloper

    Hi,
    I am first time integrating XML publisher with Jdevloper.
    I need to call xml publisher report from Jdeveloper.
    I followed all steps from anilpassi link for sample
    its showing error while tring to open pdf file
    Error:
    Adobe Reader could not find 'EmpReport[1].pdf' because it is either not a supported file type or because the file has been damaged.
    Please help ,i m stuvk because of this error.
    below is the code
    EmpCO :
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModuleImpl am =
    (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
    am.invokeMethod("initEmpVO");
    // am.invokeMethod("getEmpDataXML");
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModuleImpl am =
    (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
    if ("GenerateReport".equals(pageContext.getParameter(EVENT_PARAM)))
    System.out.println("event fired");
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary =
    (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response =
    (HttpServletResponse)sessionDictionary.selectValue(null,
    "HttpServletResponse");
    try
    System.out.println("inside try");
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=EmpReport.pdf";
    response.setHeader("Content-Disposition", contentDisposition);
    response.setContentType("application/pdf");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode)am.invokeMethod("getEmpDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    ByteArrayInputStream inputStream =
    new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    //Generate the PDF Report.
    TemplateHelper.processTemplate(((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    APP_NAME, TEMPLATE_CODE,
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF, null,
    pdfFile);
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    catch (IOException e) {
    System.out.println("Exception1"+e);
    } catch (SQLException e) {
    System.out.println("Exception2"+e);
    } catch (XDOException e) {
    System.out.println("Exception3"+e);
    pageContext.setDocumentRendered(false);
    EmpAMImpl:
    public void initEmpVO() {
    EmpVOImpl vo = getEmpVO1();
    if (vo == null) {
    MessageToken errTokens[] =
    { new MessageToken("OBJECT_NAME", "EmpVO1") };
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
    } else {
    vo.executeQuery();
    public XMLNode getEmpDataXML() {
    OAViewObject vo = (OAViewObject)findViewObject("EmpVO1");
    XMLNode xmlNode =
    (XMLNode)vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS);
    return xmlNode;
    Please help !!

    Hi,
    I tried the way suggested by Anil in the above link as well today, but still am getting the same error while openning the pdf .
    Dont know why it shows error that either the file is not a supported file type or because the file is damaged.
    Please suggest way to solve this error or some other way of calling xml report from OAF page.
    Edited by: user13573749 on Apr 10, 2011 9:59 PM

  • How to generate XML Publisher report from PLSQL Stored Procedure in APPS

    Hi,
    I have concurrent program of type PLSQL Stored procedure.I need to generate XML Publisher report from the same.I have changed the output of the concurrent program as "XML" but when I tried running it,the XML tags are not generated.Due to this I am unable to create the template.Its a urgent issue.
    Please help me out .
    Thanks in advance.
    Kaveri

    Hi Kaveri
    Sadly there is nothing magic about that output field. The only program type that you can flip it to XML and then magically get XML is for Oracle Reports. For plsql you will need to recode the plsql to generate XML rather than text that you have now.
    You have some options, best option first:
    1. Move the sql to a data template - check the user guide and blog for help or
    2. Use SQL XML or XMLGEN (not great for large datasets) or
    3. Use dbms_output.put_line and write the XML file manually - not performant at all
    Regards, Tim

  • Submitting a XML Publisher Report from JSP page

    Hello,
    We have need to submit a XML Publisher report from Quoting/iStore module in Oracle Ebusiness. The out put should be viewable in PDF format and user should be able to print. can anyone pls help on how this can be achieved.
    TIA

    Really appreciate your response. Can you pls give little more details.
    1] Are there any standard API's which I can use to submit XML publisher report from the JSP pages
    2]Is there any sample code snippet for any of the options that I can refer to..or pls let me know the API's, I will check on them
    Appreciate any help

  • BW - EP Connection to Publish Reports From BW

    We have implemented Enterprise Portal 6, and are running BW 3.5
    I have been trying set up the connection between the 2 systems, so that I can publish reports from BW to EP
    SSO between EP and BW is working - I can create a BW iview, or run a BW transaction without having to sign on again to the BW server.
    I have checked the RFC connection from BW to EP using transaction SM59, and it all seems to be working fine.
    When I am in the Web Application Designer in BW, there appears the option to Publish to Enterprise Portal 6.0. I can see the destination that I created to point to EP, but I can't see any roles/folders etc within the portal.
    I have been through all of the documents that I have found in SAPHelp on configuring the connection, but have still had no luck.
    Does anyone have any suggestions? Are there some permissions that I need to set up on either BW or EP before this will work?
    Thanks in advance for any assistance.
    Regards
    Richard

    Thanks very much for your assistance!!
    Deepu:
    Thanks for pointing me to the note - that looks like it could be helpful - I need to talk to our basis adminstrator about a couple of things, and he is away for a couple of weeks, so this problem will probably be on hold for a bit now.
    Ashwin:
    Thanks - I've checked the SSO to BW, and can see all of the BW reports in the BW repository in EP. My personal folders are all set up, but are empty.
    I really appreciate your help on this guys. I'll try the changes in the OSS note (but won't be able to do this for a while), and will let you know if it is successful.
    Regards
    Richard
    PS. I'm really sorry, but I don't seem to be able to allocate points for your answers - there are no radio buttons displaying on the screen for some reason - I'll see if I can contact SDN to get this sorted out.

  • Failed to commit objects to server. Error while publishing reports from BW

    Hi,
    I am getting below error while publishing reports from BW to BO.
    "0000000001 Unable to commit the changes to Enterprise. Reason: Failed to commit objects to server : #Duplicate object name in the same folder."
    Anyone having any solution for this. Thanks in advance.

    Hi Amit
    It would be great if you could add a little info about how you solved this issue. Others might run into similar situations - I just did:-(
    Thank you:-)

  • Printing of XML publisher report

    Hi All,
    This is in regards to the printing of XML publisher report in Oracle E-Business Suite.
    we have a XML Publisher report in Oracle EBS,which generates the output in PDF without any issues. But the same output is printed in XML Tags when it goes to the printer.
    Can you please throw some light why this is happening only for this particaular report,other XML reports in the system does not have this problem.
    Thanks in Advance for your help.

    I do not think it is possible to send all the pages to one tray and send only the last page to a different tray. However, you may review the following notes:
    Note: 357402.1 - How to Print the Output to a Different Paper Size Using XML Publisher Delivery Manager?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=357402.1
    Note: 394130.1 - How To Enable Printer Options Such As Duplex Printing Or Tray Selections For Bitmap Concurrent Programs
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=394130.1

  • Displaying xml publisher report from adf page.

    I am using jdev 10.1.3.3
    I have an requirment of displaying an xml publisher report on click of command button.
    any suggestion.how this can be achived.
    according to my understanding.
    if we create a folder in our web server which oc4j in our case.and we transfer the xml report through FTP in that folder.can we able to pick the report from that folder.
    can we display or call that report.please let me know??
    Is that possible.????????????
    any help would be helpfull

    Really appreciate your response. Can you pls give little more details.
    1] Are there any standard API's which I can use to submit XML publisher report from the JSP pages
    2]Is there any sample code snippet for any of the options that I can refer to..or pls let me know the API's, I will check on them
    Appreciate any help

  • Deploying BI publisher report from OEM plug-in

    Hi!
    I am a bit confused about how to deploy & access BI publisher report from the plugin I develop
    I've found only the http://docs.oracle.com/cd/E24628_01/doc.121/e25161/bi_pub.htm and am a bit confused
    What I did:
    1) Integrated BI publisher with OEM
    2) Developed a BI publisher report
    3) Downloaded 2 files : xdoz and xdmz (DataModel & report)
    4) made folder structure
    /bipublisherreports/
    /EM_Datamodels
    5)packed into jar
    jar cf myjar.jar ./bipublisherreports
    6)put jar into ../oms/reports/emreports
    7)written report.xml (in ../oms/reports/) file:
    <?xml version = '1.0' encoding = 'UTF-8' ?>
    <BIPublisherReports
    xmlns="http://<what ip is here???>/DataCenter/BIPublisherReport">
    <ReportFile relativePath="emreports" fileName="myjar.jar"/>
    </BIPublisherReports>
    The plug-in does not pass validation...
    cvc-elt.1: Cannot find the declaration of element 'BIPublisherReports'. for the MDS id report
    Error is ungooglable =(
    Can anybody help or point to some clear doc?

    cd /tmp
    mkdir STAGE
    cd STAGE
    mkdir bipublisherreports
    cd bipublisherreports
    mkdir EM_Datamodels [notice the underscore]
    mkdir "My Sample Report" [notice, the quotes are necessary since the directory name contains spaces]
    The datamodel needs to go in the following directory:
    -------------- "bipublisherreports/EM_Datamodels/My Datamodel.xdmz" [there is an underscore between EM & Datamodels]
    The reports go in a report directory, for example:
    --------------- "bipublisherreports/My Sample Report/My Report.xdoz" [use spaces here wherever you prefer]
    Make sure your report refers to the datamodel in the right location. So, in BIP, when editing the report, use the above folder names, under the 'Enterprise Manager Cloud Control' shared folder.
    For example, your BIP catalog will look like this:
    Shared Folders
    ---Enterprise Manager Cloud Control
    -------- EM_Datamodels
    -------------- My Datamodel
    -------- My Sample Report
    -------------- My Report
    You then create a jar file with this:
    cd /tmp/STAGE
    jar cvf myemreports.jar bipublisherreports
    Now, you need to make your bip reports part of your plugin source code.
    You put your report.xml in your sysman/metadata/bipublisherreport [note the singular] directory.
    For example:
    <BIPublisherReports
    xmlns="http://www.oracle.com/DataCenter/BIPublisherReport">
    <ReportFile relativePath="emreports" fileName="myemreports.jar"/>
    </BIPublisherReports>
    You then create a subdirectory, sysman/metadata/bipublisherreport/emreports
    And you put your myemreportrs.jar file here.
    You then rebuild your opar using standard EM procedures.
    When a customer later on instals your plugin, the BIP reports that go with the plugin are installed into the EM database repository automatically.
    they can simply do this to deploy the bi publisher reports from em to BIP at any point:
    emcli deploy_bipublisher_reports -plugind="my.sample.plugin" -pluginversion ="12.1.0.3.0" [-force]
    The -force operation overwrites the reports.
    See the complete help text like this:
    emcli help deploy_bipublisher_reprorts
    If they have not yet configured BIP with the configureBIP script, this deploy step happens automatically when they run configureBIP.

Maybe you are looking for

  • 6-full-size page brochure - want it to be larger in PDF view

    I hope I can explain this correctly. I created a 6-page (8.5 x 11) brochure/report in InDesign using a page size of 25.5 x 11. When I create the PDF, it makes it into two 3-page spreads that are very tiny. When the client goes to print it, the 3 page

  • Exception in thread "main" java.lang.NoClassDefFoundError: Emp/class

    Dear all, It occur 'Exception in thread "main" java.lang.NoClassDefFoundError: Emp/class' error when I test a oracle java sample.I've already SET CLASSPATH=C:\ORACLE\JDBC\LIB\CLASSE~1.ZIP. following is the source code: import java.sql.*; class Emp pu

  • Why do we need write access to Java installation Directory

    We are Upgrading from Siebel Analytics 7.8 to OBIEE 10.1.3.4. As OBIEE needs Java 1.5 or higher as a pre-requisite we are planning to uninstall Java 1.4 and install latest version of Java 1.5. According to OBI Installation and Configuration Guide htt

  • BufferedImage memory issue.

    Hi! I'm writing an application that is basically an image filter: It takes a low-resolution input image and converts the grayscale value of each pixel into a font size. The font size is then used to render characters from a text file onto correspondi

  • Posting PDF and other Documents to new iCloud site

    I have "upgraded" to iCloud, and I keep reading about posting/sharing documents of ALL types...not just iWork documents. But, HOW do you post anything else but an iWork document to the website for sharing or just your own use on another computer. As