Open a report from button click/javascript

Hi,
Does anyone know if there is a way to call a report from a button click? Or through javascript? I set the report to Display Results > Link - within the dashboard and then did a view source on it and found the function that calls the report from the hyperlink.
This is the code:
return DashboardReportLink('saw.dll?PortalGo&_scid=v-x8QJloqTY&PortalPath=/shared/Plan\x2520Setup\x2520Audit\x2520Tool\x2520/_portal/Plan\x2520Setup\x2520Audit&Page=Historical&NavFromViewID=d\x253adashboard\x257ep\x253acp4tq3p9brn77o6o\x257er\x253a8a2g9nltmkrtra9n&Path=/shared/Plan\x2520Setup\x2520Audit\x2520Tool\x2520/Archive\x2520Reporting/Run\x2520Historical\x2520Report&Action=PromptStart&Options=frdc', 'd:dashboard~p:cp4tq3p9brn77o6o~r:8a2g9nltmkrtra9n','Dashboard&PortalPath=/shared/Plan\x2520Setup\x2520Audit\x2520Tool\x2520/_portal/Plan\x2520Setup\x2520Audit&Page=Historical', false)
I added this function to the end of my javascript but when i click the button it just opens a blank page with
http://la820119:9704/analytics/saw.dll?PortalGo
as the url.
Any help would be appreciated

Hi,
So i have been trying out a few things and the following url works to open the default view of the request:
window.location='saw.dll?Go&Path=/shared/Plan Setup Audit Tool /Archive Reporting/Run Historical Report&Options=dfr';
I just replaced 'Dashboard' in the code provided with the 'Go' and it started to work :)
What i need to do though is have this work for the session variables set up on the dashboard. I have 7 prompts which a user can use to filter a request. Each is assigned to a session variable that is used to call a stored procedure. Originally i thought that by setting the variables and then calling the report from the url that the session variable values i set would be used in the request. What seems to be happening is that the variables get set and then, on calling the url, they are reset to the defaults and the report is run.
Any help in solving this would be very much appreciated
Una

Similar Messages

  • Report on button click

    Hi experts,
    i hope you all are doing fine.I need your help ....i generated a report in rtf format using iText and stored in a file name like 'xyz.rtf'.Now i want to open this file on button click in jsp.
    Pls. suggest me something....
    Thanks a lot...appreciate any kind of help.
    Sonika

    Thanks bsampieri,
    Thanks a lot for your reply......but it says that the requested resource is not available...
    here i am sending you the code:
    try{
    Document document = new Document();
    // step 2:
    // we create a writer that listens to the document
    // and directs a RTF-stream to a file
    RtfWriter rtf = RtfWriter.getInstance(document, new FileOutputStream("/try4.rtf"));
         rtf.setHasTitlePage(true);
         RtfHeaderFooters header = new RtfHeaderFooters();
         header.set(RtfHeaderFooters.FIRST_PAGE, new HeaderFooter(new Phrase("UNSODA DATABASE"), true));
    document.open();
    document.setHeader(header);
    document.add(new Paragraph(" UNSODA DATABASE", new Font(Font.HELVETICA, 20, Font.BOLD)));
    document.close();
    } catch(Exception e){
    out.print("erwerweror"+e.toString());}
    %>
    //and then in button or for calling report
    <tr><td bgcolor="#CCCCFF">
    <input type='button' name="Report" onClick= "<%= theFileURL%>" value="Add New Record"></td></tr>
    but it gave me this error:
    The requested resource (/try4.rtf) is not available.
    Thank you....so much
    sonika

  • Unable to open a report from Java SDK

    Hi,
    I am trying to open a report from the SDK in a java application. Here is the code :
    package com.metrixware.test;
    import com.crystaldecisions.sdk.occa.report.application.OpenReportOptions;
    import com.crystaldecisions.sdk.occa.report.application.ReportAppSession;
    import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;
    import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;
    public class MyBoTest {
    @param args
         public static void main(String[] args) {
             ReportClientDocument myDoc = new ReportClientDocument();
             try {
                  ReportAppSession sess = new ReportAppSession();
                  sess.setReportAppServer("AGIRC-DEMO");
                  sess.initialize();
                  myDoc.setReportAppSession(sess);
                   myDoc.open("rassdk://D:/Document8.rep",OpenReportOptions._openAsReadOnly);
                   System.out.println("Titre du doc : "+myDoc.displayName());
              } catch (ReportSDKException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    but i always get the following error stack (ReportSDKException) on the open method of the doc :
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Impossible de charger le rapport.---- Error code:-2147483123 Error code name:failed
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.do(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
         at com.metrixware.test.MyBoTest.main(MyBoTest.java:22)
    The document is at the right location on my local machine where my test is running. The RAS server is up and running on the CMS.
    Can you help me on this problem.
    Also i have another question. Can you tell me if i'll be able to read through this object the generated SQL select statement of the report.
    Thanks.
    Julien Pignatel

    try the following instead:
    ReportClientDocument myDoc = new ReportClientDocument();
    myDoc.setReportAppServer("AGIRC-DEMO");
    myDoc.open("rassdk://D:
    Document8.rpt",OpenReportOptions._openAsReadOnly);
    Also make sure that on RAS command you have added: -ipport "1566" -reportdirectory "D:/"
    Please note:
    1. Don't need to use ReportApSession class
    2. what do you use Document8.rep, you cannot open a Deski document with RAS. RAS can be used only with crystal reports.
    Hope that helps.
    Best Regards
    Aasavari

  • Unable to Open Bex report from SAP APO User Menu

    Hi All,
    I am an  SAP APO consultant, and have not miuch expereice in BEx reporting. As APO uses Build in BI for reporting and pulling history from either external BW or R/3.
    Now my issue all BEx reports we use are assigned ot my user menu and when I select a report, I would expect report to open but an excel sheet opens and closes and nothing happens. However I am able to open this reports from my desktop menu selecting Business explorer and Analyzer and linking my SAP system. I use Excel 2007 , Is this some compactibilty issue or is there anything I need to do?

    Hi KV,
    There's a couple of possible root cause why you dont see properly the Bex Report.
    Can you share to me the APO version and the BW software component being used?
    In case this is still in the 3.x, 4.x APO, I think, a separate BW add on is needed for you to run your BEx report properly. You can ask your basis team for this separate installation.
    Btw, is this report working before, meaning was it pulled successfully already in the past?
    Can you try doing this again in a separate workstation, as the BW add on is installed separately per workstation.
    Its possible that this is also an auth issue that the user you are using is not capable enough to run BEx.
    As of now, I have not encountered any Bex issue that is related with the Excel version, I have tried running Bex in Excel 2007 no issue also. I think it maybe more related with the OS you are using, if its in Vista already what I know is you need to add your excel as a trusted document before you can run bex fro Vista.
    Let me think of other possibilities.
    Hope this helps.
    - Jeff

  • How to open Crystal Report from the SAP GUI ?

    Hi experts,
        We have developed some reports for our ECC 6.0 system by using Crystal Report 2008 and SAP integration kit , these reports are published to BO edge 3.1 server.  To view the report, our user have to open IE and login Infoview first.
       For convenience, we want to open Crystal report from SAPGUI directly without login BOE, How can we do it? 
    Thanks.

    Hi
    please take a look here
    Crystal Reports
    Regards,
    STratos

  • Error while Opening the report  from template builder

    hi all,
    After log in in the BI publisher template builder, tried to Open the report from the report Template . Then the message is displayed as Error occurred: ‘Please check the settings and try again’.
    I am using the OBIEE 10.1.3.3 version and Ms-Office 2000......
    Please give me the solution very urgent............
    Regards

    Hi,
    I am having the same issue. I am not able to import Crystal Report.
    the error is "No matching records found  'Queries' (OUQR) (ODBC -2028)  [Message 131-183]"
    I have previewed the report using Preview external crystal report option and is running perfect.
    please guide ASAP.
    Regards
    Sonil

  • Open OBIEE report from web application

    Experts, I want to open OBIEE report from a web application. I have a question regarding the security here. Say I login as 'USER1' in web application, I would have to pass 'USER1' in nquser parameter. Correct? Also, this report has access to 'Sales Group' users only. So, does 'USER1' in web application need to be assigned to 'Sales Group'? Or, any user in the web application can open this report as long as I pass nquser in the GOURL.
    thx,
    parag

    You don't need to specify group details.
    When the report hits OBIEE, it will determine the permissions based on the nquser.
    Hope it helps.

  • BIP not able to open the reports from the catalog

    Hi everyone,
    I am trying to open the existing reports from the catalog. When i try to expand the folders am getting all the subfolders and evrything and when i am trying to open a particular report am unable to open it, am not getting the data. For all the reports in the catalog am getting the same pbm. What might b the pbm for that, Could anyone pls ans my question bcoz i am having requirement on BIP which am new to it.,,,,
    Regards
    Lalitha

    Hi,
    I am trying to open the reports from the shared folders. But am unable to expand the content of that folders and reports. I am using the database as TERADATA. Do we need any security changes for that to acess all the content from the shared folders from BIP side. I am working with the administrator role.,
    Regards

  • Open pdf files from button

    Hello, please i need help with my problem. Is there any way to open pdf files from button? How can i set this in DVD Studio? Thanks for your answer.

    Just to pick up from Shawn - even if you do use DVD@ccess you cannot use a button to launch the link, you have to use a full menu. In practice, you use two identical menus and set the button for the PDF to go to the second menu, which is set to time out very quickly and jump back to the original menu. It gives the visual effect of a button launching the asset, but in fact it was the opening of the second menu which did the trick.
    And just to emphasise what Shawn rightly said - don't use DVD@ccess. It is at best unreliable and for many PC users won't work at all. It is far better to add the PDF as ROM material and put a message on a menu screen that tells the user there is additional content on the disc, and how to access it. This has the added advantage of letting those using a set top player know the material is there without frustrating them that something doesn't 'automatically' work (you can't open a PDF on a set top player, only on a computer player).

  • Simulate Copy-From Button Click on Delivery Document

    Hi Friends,
    How can I 'programmatically' click on Copy From button, and then select the Sales Order?
    (I could get a forum post to capture the Copy From button click in the delivery document, but I want to do clicking also programmatically)
    I could click on the Copy-From button programmatically.
    After that, till I manually click on "Sales Order", control is not returned to the program (It acts similar to a message box:( )
    Do you know any ways to acheive it?
    Thanks.
    Regards,
    Geetha

    Hello Rajkumar,
    I came upon this thread but did not find it to be quite complete (and see that you were looking for a similar answer).  I just wanted to let you know how I am using "Copy To" to copy a Sales Order into an A/R Invoice.  I realize you are desiring a "Copy From" but I believe the steps will be the same (and believe others will value seeing this).  I know there is discussion above that the copy to is a matrix but I found the simplest approach is to just treat it like a combobox.  Here is my code in C#:
    // Declare my variables
    SAPbouiCOM.Form oForm = null;
    SAPbouiCOM.Item oItem = null;
    SAPbouiCOM.ComboBox oCombo = null;
    // Set my form to the currently active form
    oForm = SBO_Application.Forms.ActiveForm;
    // Simulate a "Click" on the Copy To (for A/R Invoice)
    oItem = oForm.Items.Item("10000329");  // This is the Item Number for Copy To
    oCombo = (SAPbouiCOM.ComboBox)oItem.Specific;
    oCombo.Select("A/R Invoice", SAPbouiCOM.BoSearchKey.psk_ByDescription);  //If I want to copy to an A/R Down Payment, I simply change the "A/R Invoice" to "A/R Down Payment"
    In short, by using the combo and "Selecting" the parameter I want, my belief is that SAP automatically initiates the remainder of the work.  Hope this helps you (and others).

  • Unablo to open Crystal report from infoview

    Hello Experts,
    I have an issue while opening crystal report from BOBJ Infoview.
    The report opens for some users and some users are getting this error.
    " Internal error. Please contact your system administrator. [RCIRAS0216]  ", the report is based on bw query and the users has access to this query,the users are able to execute other report based on same query.
    Even some users who are administrator group members are getting this error.
    Any help is appreciated.
    Thanks
    Kish

    It happens to only one report,but when i changed the option to "Use same database logon when report is run" in CMC, it resolved the issue.
    But i was wondering why the report encountered this error for the same user for whom it was working good in the past.
    Thanks,
    Sai

  • Opening new window on button click from pdf without loosing session

    Hi,
    In my Java web applicaion on click of a link, we are opening a new window in which we are displaying a pdf. There are 5 buttons on this pdf.
    On clicking of this button again we are opening a application link in new window. But in this window we are not gettting our session, which is there in first two window.
    For opening new window from pdf button click we are using
    var dynamicUrl3 = myappurl;
    app.launchURL(dynamicUrl, true); 
    How can i open new window with the same sesion from the pdf button.
    Please help for the same.
    Thanks,
    Abhijit Mohite.

    Yes, with target="_blank" in a link or a form.Thanks for ur valuable suggestion. I changed the button to link.
    Its working fine now without JavaScript.
    Now i got another requirement. When user select some items and press a button in the new popup window, the window must close on button click and the parent window must refresh. This must also be done without using JavaScript.
    Is this possible? Please give me an idea to do this.
    Thanks.

  • HELP FOR OPEN IE FROM BUTTON CLICK ?

    Hello All,
    i make a jframe i want to open internet explorer window for particuler site by button
    click any body tell me plz.
    Thanks ...
    Arif.

    See this Application below, use it in your application
    //to open an application during the run time use runtime
    //n no of applications can be opened during the run time
    import java.awt.*;
    import java.io.*;
    public class RT
    public static void main(String str[])
    try
    Runtime rt = Runtime.getRuntime();
    rt.exec("notepad"); //exit or execute
    // rt.exec("wordpad");
    rt.exec("c:/progra~1/netscape/communicator/PROGRAM/NETSCAPE.EXE");
    /* Process p = exec(perl xyz.pl);
    DataInputStream dis = new DataInputStream(p.getInputStream());
    System.out.println(dis.readLine()); */
    catch ( Exception e)
    e.printStackTrace();

  • Open Dialog box on button click using Visual Webpart

    Hi,
    I am trying to create New Item,Edit Item & Delete Item button in Visual web part.On clicking on the button it should open the corresponding custom form on dialogue box.I don't want to create any button in the ribbon.I just want to create UI page for
    all buttons and also corresponding input forms on button click in Visual web part.
    Is it possible through visual web part?
    I will be needing your initial guidance to achieve this.
    Please help.
    Thank you.

    Hi,
    According to your post, my understanding is that you want to open modal dialog in a visual web part.
    To open a modal dialog, there are multiple ways, such as using JavaScript.
    However, for your scenario, you should register the script from the C# code, there are some articles for this topic, you can refer to them.
    http://www.ashokraja.me/articles/How-to-Programmatically-Show-or-Hide-a-Modal-Popup-Dialog-with-Server-Side-Code-in-Share-Point-2013
    http://blogs.perficient.com/microsoft/2012/01/sharepoint-2010-closing-a-modaldialog-manually-from-code-c-and-javascript/
    More reference:
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Error while opening a report from worskpace

    I have created a report in WebAnalysis (http://server:19000/WebAnalysis) using analytical connection.
    When I try to open the same report from http://server:45000/worskpace following error is given
    'getContent' is null or not an object. click ok
    Required application module analyzer.reportview is not configured. Please contact your administrator.click ok
    http://server:45000/WebAnalysis/conf/AnalyzerConfig.xml
    Please can anybody help me out in this regard.
    Thanks,
    -Shantanu

    Hi,
    You can't access workspace directly through that port if you want to use other functionality, you should workspace through http://<workspace machine>:19000/workspace/
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • SOAP request to XI via external application

    Hi, We have the following scenario: there is 3rd party application (Sending SOAP Request)->SAP XI->IDOC We are using sender SOAP Adapter,we have done the following: ->We have generated WSDL by using define webservice from Integration Directory. ->We

  • Entourage

    Every 15 minutes or so a window pops up asking if I want to stay connected or do I want to connect, stopping all other activity. This has to be simple, but HOW DO I TURN IT OFF? Thanks ramoltron

  • Is it j2ee.jar and jdk1.5.0.jar same

    when i search for j2ee.jar in google it is showing jdk1.5 but link is j2ee.jar download. is it same.in my tutorial they are saying download j2ee.jar if it differ ples send me link for download.

  • Are you aware of any software similar to ADSL Navigation Tools that can be used with in Mac?

    Are you aware of any software similar to ADSL Navigation Tools that can be used with in Mac?

  • How to start JSPM on linux

    Hi I want to upgrade Netweave 2004s sp9 to sp11, it is on linux plateform, I loged the server user <SID>adm, when i run the go script, it hanged at " Waiting for SDTServer to connect to hostname xxxxxxxx socket 6240" , anyone met the problems and how