Report file name as parameter

There's probably a simple answer to this but I can't figure it out...
I have made a jsp-page to view my report using CR4E's Create Viewer JSP wizard. Instead of hard-coded report file name, I'm taking the name from URL parameter like this
myviewer.jsp?report=myreport.rpt
The report shows fine until I click any of the controls (next page, print, export, etc.) in HTML-viewer. This seems to run some javascript code that calls the myviewer.jsp again, but loses all URL parameters! How can I preserve those parameters?

Page navigation with the viewer works by post-back to the page where you've defined the viewer - the viewer interprets the postback GET parameters for the action required.
This means that the ReportSource must be available for every postback - usually, it's stored in HTTP Session.
Check out the following sample codes:
http://support.businessobjects.com/communityCS/FilesAndUpdates/crxi_r2_jrc_web_samples.zip.asp
Sincerely,
Ted Ueda

Similar Messages

  • Overwrite crystal report file name with new version but keep history

    I am writing a Crystal Reports .NET SDK in C# code to upload a crystal report files from its destination to CMC folder on BO XI R2 Platform.
    On "Upload Button" click_event, validate the two check boxes controls named "Keep History", and "Remove History". Once "Keep History" check box is selected, check If the SAME report file name exists in the same destination CMC folder, if Yes, overwrite it BUT Keep the History and all its associated objects like "recurring objects". If "Remove History" is selected, then remove the existing report and upload the new report file name.
    Please provide me some codes on how to do this task. This is definitely a "WIN" - "WIN" effort and contribution to my Team Goals.
    P.S. This is a similar scenario when you are uploading report on BO Enterprise R2 CMC.
    When Uploading a new report to a folder but same report file name exists, the BO System will promt message "Report File Name" already exists. Do you want to Overwrite it?" If Yes, then system will overwrite the file but it will keep the history and recurring objects.
    Any help would be greatly appreciated.
    Thanks,
    Bien

    Suggest looking at [this|https://wiki.sdn.sap.com/wiki/display/BOBJ/NETBusinessObjectsEnterpriseSDKSamples] wiki for links to pertinent samples. Also, check out the [Developer Help File|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/WS_SDK/wssdk_server/default.htm]. Searching these forums for similar queries may also prove to be fruitful
    Ludek

  • 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 can I change the report file name depending on which seq file is run in the main seq?

    I'm using TestStand 3.0.
    I have a main sequence file with a menu option to select one of several sequence files to run.
    How can I get TestStand to change report file name to the selected sequence file rather than the main sequence file name?
    Thanks
    Harminder

    Hi Harminder
    Try RunState.Root.Locals.ReportFilePath = "PathToMyFile.xxx"
    regards
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • Retrieve Current Report File Name

    i am using Forms and Reports 6i.
    in Forms, i am using the following statement to get the current form name -
    GET_FORM_PROPERTY (:system.current_form, FILE_NAME)
    i didn't find a similar statement in report to get the report file name,
    plz help...

    Hello,
    You will have more chance to get an answer by sending this question in the Reports forum.
    Francois

  • Get report file name in oracle report builder at run time

    Dear All,
    Is there any way to get the report file name in oracle report builder at run time?
    for example "HR_REP012.REP"
    i need this very important...
    Regards,
    Yousef
    Edited by: Yousef_m on Jun 2, 2012 5:18 AM

    Hello,
    Did you try the builtin SRW.GET_REPORT_NAME built-in function ?
    Example
    function AfterPForm return boolean is
    my_var varchar2(80);
    BEGIN
    SRW.GET_REPORT_NAME(my_var);
    SRW.MESSAGE(0,'Report Filename = '||my_var);
    RETURN (TRUE);
    END;
    Regards

  • Get report file name

    i am using 9ids
    i use
    web.show_document() to run report.
    now report gets generated into cache and then it is viewed. now i want two things.
    1) i want to get the genrated report file name.
    2) copy that file to user-end.
    through webutil.
    pls help me how or give me function/procedure to do this.
    thanks.
    now report has run.
    please guide me further how to get file name from report/cache.
    and download into user-end.

    Rajendra,
    webutil can download files based on a URL. Just provide the URL that you usually put into web.show_document() to webutil.
    From the comments in webutil.pll:
    * DownLoadFromURL - pulls a file from the specified URL on * the server and sends it via http to the specified destination
    * on the client
    * If you specify file size we can so a comparison after
    * download to ensure that the sizes match
    * Additionally of you specify withProgress and size you
    * will get a progress bar
    * Note that the Title, subtitle and message strings cannot
    * contain the '|' character
    FUNCTION DownLoadFromURL(sourceURL in VARCHAR2,
    clientDestination in VARCHAR2,
    fileSize in PLS_INTEGER default 0) return BOOLEAN;
    FUNCTION DownLoadFromURLWithProgress(sourceURL in VARCHAR2,
    clientDestination in VARCHAR2,
    fileSize in PLS_INTEGER,
    progressTitle in VARCHAR2,
    progressSubTitle in VARCHAR2,
    progressMessage in VARCHAR2) return BOOLEAN;
    Frank

  • Adding batch serial number to report file name in sequential model

    Hi,
    I'm using a Sequential model in TS 4.0 and have learned how to add the UUT serial number to the report file name. But I would like to add the batch serial number instead. Is this possible? Any modifications to the ReportOptions callback seem to only modify the temp report name.
    Thanks!
    Chris

    Hi Chris,
    While Paul's suggestion may be useful in this case, if you would like the flexibility of customizing your Report File Pathnames further, you may want to consider upgrading to TestStand 4.2.
    In TestStand 4.2 we introduced predefined macros and the ability to use custom expressions to specify the Report File Pathname. For example, the <Batch> macro will add the Batch Serial Number to the Report File Pathname as you specify it.
    Please see the Using Expressions to Customize Report File Paths section of the TestStand 4.2 Reference Manual for more information on these new reporting features and how one might use them. For a specific explanation of the different macros and what they might be used for, please see the Specifying Report File Paths by Expression section of the TestStand 4.2 Online Help.
    Manooch H.
    National Instruments

  • Report file name error with Chinese Date format

    Hello,
    I am seeing an error at
    step Write UUT report in the standard model files.  This step is
    calling the API method save on the object Runstate.Report.
    The issue occurs on computers using chinese localization with the date in the report file name.
    Is this a known issue?  Is there a way to modify the filename before calling the above method to eliminate the problem?
    Solved!
    Go to Solution.

    An Error Message is attached. 
    WE have seen this on both Vista and XP.  We are using TestStand version 4.1.1.  I am not sure about the localization, but I have seen this on computers from Taiwan, Korea and Japan.  
    If I put a breakpoint in the Model file at the Write UUT Report Step, you can see Chinese Characters in the time portion of the file name.
    If you change the report name to not include the time and date, the error does not occur.
    We have seen this with ASCII and xml.  With XML, the error also occurs at the step "Add Root Tags to XML Report"
    Attachments:
    FileNameError.JPG ‏134 KB

  • Modify UUT report file name

    Hello,
    I use TesStand 3.1 in Batchmode with 4 Testsockets and generate a XML Testreport for every UUT with the serial number in the file name.
    I leave the "Enter UUT Serial Number" dialog boxes at the begin empty.
    After that i read out the Serial Number of my UUTs at the runtime via CAN and use the "PostUUT-Callback" to modify the "Parameters.UUT.SerialNumber".
    Because of that the UUT Serial Number appears in the Report Header.
    But the report filename is always "Report[NO_UUT_SERIAL_NUM0][date][time].xml".
    Is it possible to modify the "UUT Serial Number" in the Report File Name, too?
    Thanx for your answers!
    Greetz ALIEN

    We modify the report name to include error count, Model, build, etc. but it requires that the Report be complete at that point (file no longer locked by TestStand). 
    In order to do this, you'll need to create a Sequence (with no Process Model) to call the test sequence using Subsequence call with the "Run Sequence in a New Execution" selected in the "Specify Module", Multithreading selection ring.
    There may be other ways to do what you're attempting, but this gives you freedom to rename the file. 
    Mike

  • How to pass file name as parameter into url: or fo:external-graphic src

    Hello gurus,
    In my rtf I want to dynamically get the name of the image file and display the image in the report. If use hard coded image file name it works but if I try to get the name into a variable and pass that variable it is not working.
    Basically my client is having different logos for each operating unit. in the OA_MEDIA directory there are separate logos for each OU. during run time based on OU name we need to display the corresponding image. If I can get this entire path($OA_MEDIA/logo.jpg') in XML field<?CF_OU_LOGO?> then I'm able to print the logo using url:{CF_OU_LOGO}
    But I'm using seeded data source and I cant modify the data source, I need to handle this in RTF only. I could able to get the file name into a variable but not sure how to pass to url.
    could some one help me on this. I tried the following options
    <fo:external-graphic src="url($ln)" />
    url:{$ln} in web etc...
    here 'ln' is the variable which holds '$OA_MEDIA/logo.jpg'. ln is defined as <xsl:variable name="ln" select=".//CF_OPERATING_UNIT" />
    later I set the values as <?xdoxslt:set_variable($_XDOCTX, 'ln',translate( concat('${OA_MEDIA}/','Logo',.//CF_OPERATING_UNIT,'.jpg'),' ',''))?><?xdoxslt:get_variable($_XDOCTX, 'ln')?>
    thanks,
    Vijay

    Vijay
    What version of EBS is the customer running? I read somewhere that in R12 all of the concurrent parameters are passed to the XMLP template. I have not tried this but if true. You could create a conc program parameter that would hold the location of the image. You could either have the user pick the image or maybe derive it from the other parameter choices.
    Lets assume the token name is DLOGO you can reference that in your template.
    <?param:DLOGO?>
    this needs to be at the top of the template. Then where you need to embed the image just reference the value using
    $DLOGO
    You can embed this in the external graphic field
    As I mentioned I have not tested it yet, hopefully its there, if not there are ways around it. Try it first.
    Tim

  • Pass along Crystal Report file name on export to Excel

    Hello, I am using Crystal Reports 10 and create numerous Crystal reports, all of which end up being exported out to Excel.  Is there a way to export the name of the Report or its file name out to Excel as well?  I work with so many reports that I can't always trace back the Excel version of the report back to its Crystal report roots.
    Thank you.

    Hi
    In field explorer  Use Special Field called File Path and Name drag and place it  in Report Header
    If you want just the report Name then use Report Title.
    Cheers
    Rahul

  • Pass in file name as parameter

    Can canyone help me in how to pass the filename as parameter? I have a list of xml files so i hope to pass the files. Does anyone have a code sample of showing me how to do? Thanx

    i have a java program that is to print out the xml files such as Declaration.xml, Aviation.xml and Financial.xml so i hope to create a class that is to pass in these file names to this program.

  • Add serial number in the report file name when using batch process model

        I would like to append a string containing the current UUT serial number to the base name of the report file. For example, uut_report.html becomes uut_report[SN000001].html. This setting is not available if I use NI BatchModel.seq as my process model.
    Thanks!
    Jacky

    duplicate post
    Ask your question only once.

  • Serial number does not appear in report file name

    HI,
    I'm using TS4.1.  I'm getting a report with the serial number.  However, the filename of the report does not include that serial number.
    example:
    UDT_Report[NO_UUT_SERIAL_NUM3][2 35 46 PM][9 15 2009]    (see attached file)
    Any idea what happend or where to look
    thanks
    Rafi
    Attachments:
    UDT_Report[NO_UUT_SERIAL_NUM4][2 40 58 PM][9 15 2009].txt ‏10 KB

    Hi Rafi,
    How are your report options set up?
    Charlie Rodway
    Test Design Engineer
    Rolls-Royce Controls and Data Services Ltd

Maybe you are looking for