Scheduling report in C# with parameters

Post Author: lk4772
CA Forum: .NET
Hello. I'm going nuts here. I've written a custom web app that will serve as our new InfoView. My dev machine is Windows XP, I'm using Visual Studio 2005, ASP.Net 2.0 and Crystal SDK version XIR2. I have everything working properly with one exception....applying the parameters to the report when it's being scheduled. I have tried several different options that I've found online and in the Help files, but nothing seems to work properly. Absolutely any suggestions would be great! Here's what I've been trying/seeing.... First try - getting parameterFieldInformation from the reportViewer object - but the question here is, if I'm trying to schedule the report, how do I reapply the parameters to the InfoStore object for scheduling?  Second try - getting the parameter information from the InfoObject propertyBag - but when trying to add to the propertyBag the current/new values, it tells me that I can't add the Property "si_value1"    ex: io.ProcessingInfo.Properties["si_prompts"].Properties[x + 2].Properties["si_current_values"].Properties.Add("si_value" + (x + 1));         io.ProcessingInfo.Properties["si_prompts"].Properties[x + 2].Properties["si_current_values"].Properties["si_value" + (x + 1)].Properties.Add("si_max" + (x + 1), pdt.ToValue);         io.ProcessingInfo.Properties["si_prompts"].Properties[x + 2].Properties["si_current_values"].Properties["si_value" + (x + 1)].Properties.Add("si_min" + (x + 1), pdt.FromValue); Third Try - using the CrystalDecisions.Enterprise.Desktop.Report object to get the ReportParameters, however when trying to set the value of a range parameter, I keep getting the error message "One or more arguments are invalid." - I've tried setting the value to a ReportParameterRangeValue and a ReportParameterValue - both recieve the same error message - code is below and yes the e.FindControl does return the proper value entered by the user    ex: if (parm.ParameterName == "dt")                            {                                rval = parm.CreateRangeValue();                                TextBox txt1 = (TextBox)e.FindControl("txtRange1." + x.ToString());                                rval.FromValue.Value = txt1.Text.ToString();                                TextBox txt2 = (TextBox)e.FindControl("txtRange2." + x.ToString());                                rval.RangeValue.ToValue.Value = txt2.Text.ToString();                                parm.CurrentValues.Add(rval);                                                            }

Post Author: Argan
CA Forum: .NET
Check the C# samples:
http://support.businessobjects.com/communityCS/FilesAndUpdates/bexi_csharp_samples.zip.asp
There is a sample called ENTXI_csnet_rpt_ScheduleParameters

Similar Messages

  • Schedule Crystal Reports on BOE with Parameters

    Hi
    I would like to schedule Crystal reports with parameters on BOE. How can I pass a parameter if the job is scheduled to run nightly?
    Any help is greatly appreciated.
    Thanks!

    Hello!
    I am going to assume that you know how to schedule a report to run nightly and how to set the parameters/prompts, and what you are really asking is how to change what the parameter/prompt value will be every night?
    If that is the case there is no default functionally that can do that.  How ever you could create a Java application (or another supported programming language) application that will run as a Program Job Object.  The PGO (Program Job Object) will be what is scheduled nightly.  Inside the  PGO you would schedule your report to "run now" with the parameters/prompts you want for that night.
    I hope I have answered your question.  Cheers!

  • Scheduling reports to run with Report Server

    How do I schedule a report to run with Report Server.... OR Where can I find information about setting up a schedule for reports with Report Server?
    Thanx in advance.
    ~Vannette

    look in the online help for the schedule parameter in the reports command line. also have a look at the reports queue manager new job options.

  • How can I place report on dashboard with parameters

    Hi all,
    If i want to place a report with 2 parameters on the dashboard how can I do it ???
    Regards

    Have a look here in the OBIEE tutorial:
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
    regards John
    http://obiee101.blogspot.com/

  • Invocation report (Discoverer Viewer) with parameters from an application

    Hi everyone,
    I'm proving report in Discoverer Viewer invoking them from an application, which sends parameters to him.
    I cannot obtain, that they directly execute when doing click in the URL of execution with its parameters, but that opens the screen where it requests to enter the parameters, without assigning those that they are arriving to him in the URL.
    I verified if the problem were in the name of the parameters and apparently it takes the values from such by the order in which they arrive.
    Also I verified that the values of parameters are arriving correctly from the application.
    Somebody can help me with this?
    Thank you very much
    Ana

    Hi,
    I could resolve the problem.
    The creation parameters in discoverer reports is case sensitive with the parameters that arrive from an application.
    Anyway, thank you
    Ana

  • Oracle report runs correctly via report builder but call report via form with parameters skips one of the plsql formula

    Hello everybody,
    I created a oracle report i.e Bank Book having banks transactions receipts and payments and opening balance w.e.f 01-jul-2014. parameters are bank code, from_date and to_date. opening balance calculates (return ope from table bankinfo +total receipts-total payments). reports runs correctly via report builder. balances are ok. but the problem is when i run this report via oracle form opening balance return only ope from table bankinfo and skips total receipts-total payments.....
    i dont think so why this happend at all. some body help me...
    thanks
    Abdul Salam

    Hi ,
    This community is to discuss Oracle Application Server specific issues, you can post this query in for better response:
    Oracle Reports (MOSC)
    Regards,
    Prakash.

  • Reports 9ids query with parameters

    I've created a basic report that pulls from one table. However, I need to have it read two different global variables from the form from which it is run from. I have not been able to make that happen. currently I'm running the report by utilizing WEB.show.document. I need it to pull in the report where two of the fields are equal to the two global variables. How do I do this?? Any help would be great. Part of the URL i've created a keycommand in the cgicmd.dat file.
    Thank you

    If I understand correctly, you want to base the output of your report on some global data in the form from which you're invoking the report. In that case, you can create user parameters in your report, and base your query on those user parameters (say, P_1 and P_2). Pass the values of these parameters in the report invocation URL.
    That's only as far as I understood your question. Also refer to the Building Reports Manual and the Publishing Reports Manual for more insights.
    -Manish

  • FRM-41214 unable to run report from forms with parameters

    Hi all,
    I am unable to run a report from forms if I pass parameters. Report is running fine in reports builder and in url if I access the report straightly.
    I used set_report_object_property to pass the parameters.
    Any clues to solve this problem?
    Priya

    Hi Jeneesh,
    Code is below:
    myreport1 :=find_report_object('MYREP');
    reportdata := Get_Parameter_List('reportsdata');
    IF NOT Id_Null(reportdata) THEN
    Destroy_Parameter_List( reportdata );
    END IF;
    reportdata := Create_Parameter_List('reportsdata');
    Add_Parameter(reportdata, 'account_number', TEXT_PARAMETER, :parameter.account_number);
         /* Setting the properties into Report Object */
         SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_DESTYPE, CACHE);
         SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_DESFORMAT, 'htmlcss');
         SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_SERVER,vc_reportserver);
                   SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_FILENAME, 'C:\priya\forms\EmcySummary.jsp');
              SET_REPORT_OBJECT_PROPERTY(myreport1,REPORT_OTHER,'account_number='|| :parameter.account_number);
         /* Value of v_rep identifies the report that is currently running either locally or on a remote report server */
         vrep := RUN_REPORT_OBJECT(myreport1,reportdata);
    /* Checking for Report Server is started or not, if not throw an exception else proceed */
         if vrep = vrep||'_0'then
         raise form_trigger_failure;
    end if;
         vjob_id := substr(vrep,length(vc_reportserver)+2,length(vrep));
         vrep_status := REPORT_OBJECT_STATUS(vrep);
         /* Checking the status of the report */
         WHILE vrep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    vrep_status := report_object_status(vrep);
    END LOOP;
    /* When the report status is successful then report is generated in Web */
         IF vrep_status = 'FINISHED' THEN
         --     COPY_REPORT_OBJECT_OUTPUT(vrep,v_tempstorage);
              WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||vjob_id||'?server='||vc_reportserver, '_blank');
         END IF;
    ---Any clues?

  • When we try to run one of the reports in server with parameters, we get the following error, do you have any idea what might be causing it.

    Failed to retrieve data from the database. Details:[Database Vendor Code:936] Failed to retrieve data from the database. Error in file - 29D140CA-540C-42AC-9A4E-224304492642-.rpt: Failed to retrieve data from the database. Details:[Database Vendor Code:936]

    Or google Database Vendor Code: 936
    E.g.;
    Crystal Reports XI SQL Expression error: ORA-00936
    Error in Compiling SQL Expression
    Etc., etc., etc.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Scheduled report with parameters

    Hello Experts!
    Is it possible to pass or somehow set two date parameters for a Scheduled Report????
    Typically this report is executed on an On-Demand bassis prompting the user for these values. But I would also like to run it as a scheduled report where I pass two dates that populate the params automatically..
    Thanks
    Dan

    Hi,
    The request you need is not present in enterprise.
    However you can schedule reports as recurring with different time period.
    Thanks,
    Subheads Ghosal

  • Running report in background using parameters

    Hi friends,
    i have an abap report that needs to run in background because it runs longer than profile timeout parameter allows to. now my question is:
    if this report uses dynpro with parameters, how do i have to modify it to run in background and to pass those parameters to ? ( SUBMIT ? ).
    Thanks for your help!
    Clemens

    Hi,
    DATA: seltab type table of rsparams,
          seltab_wa like line of seltab.
      seltab_wa-selname = 'PNPPERNR'.
      seltab_wa-sign    = 'I'.
      seltab_wa-option  = 'EQ'.
    load each personnel number accessed from the structure into
    parameters to be used in the report
      loop at pnppernr.
        seltab_wa-low = pnppernr-low.
        append seltab_wa to seltab.
      endloop.
      SUBMIT zreport with selection-table seltab
                                    via selection-screen.
    Reward points if useful....

  • Crystal Report Server - Scheduled Reports Have Failed - SMTP_E_TCPSOCKET_SE

    Hi,
    Recently, several scheduled reports have failed with the error message "server error. CrystalEnterprise.Smtp: SMTP_E_TCPSOCKET_SEND(3)". It happens randomly, to different reports at different times. Can anyone let me know what information does this need to troubleshoot. Thanks!
    Senthil

    Hi
    I would like to suggest you following things:
    1) Please check the SMTP settings on the respective report's job server. Like Severname of the SMTP
    server. Port number of the SMTP and domain.
    2) Check whether are you able to send the mails from mail client to the desired destination.
    3) Verify the Port number given to the SMTP, by default it is 25. And also verify it is not blocked on the
    firewall.
    4) Also verify whether ip address of the server machine where job server is installed is included in the
    allowed list at the SMTP server end.
    Regards,
    Hrishikesh

  • Crystal Report Server - Schedule reports have failed.

    Hi,
    Recently, several scheduled reports have failed with the error message "server error. CrystalEnterprise.Smtp: SMTP_E_TCPSOCKET_SEND(3)". It happens randomly, to different reports at different times. Can anyone let me know what information does this need to troubleshoot. Thanks!
    Senthil

    Hello Senthil,
    I recommend to post this query to the [BusinessObjects Enterprise Administration|BI Platform; forum.
    This forum is dedicated to topics related to administration and configuration of BusinessObjects Enterprise, BusinessObjects Edge, and Crystal Reports Server.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all BOE Administration queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Scheduling report By inserting in BI scheduler schéma

    Hello,
    Can I schedule report by inserting with queries directly in database, not by BI Publisher (Web).
    Thanks
    Djam75

    If you explain more , of what you are trying , it will be of helpful here to figure out
    But to answer
    You can if,
    you need to understand it well , how to do that.

  • Scheduling Reports with Parameters

    I need to schedule reports with given parameters at given date and time. Also I need the scheduled
    reports in PDF or Excel format. Is that possible for Deski, Webi and Crystal Reports using SDK?
    Thanks for Reading....
    Regards,
    Bhuvan R

    Hi...
    look the page... https://www.sdn.sap.com/irj/boc?rid=/webcontent/uuid/5001d5de-f867-2b10-00bf-8d27683c85a0
    in section of .NET SDKs
    download 2 files... are examples with crystal report...
    I use this, but now find with webi... but not found...
    I hope fjfffff

Maybe you are looking for

  • OS on external hard drive

    How can i install os x on my external hard drive?

  • Mail Merge & cell references

    Hi @all, I have several tables in numbers (09). On is for users input, the other for calculating values I need in a mail merge. In the first table, the user types a date in this format "DD.MM.YYYY hh:mm" (german datetime). In the second table, there

  • GR Posting Time

    Hi SAP Experts, Greeting to all of you!!! In one of the report I wanted to perform some calculation related to GR Date and time. So I was looking for field that would contain the DATE and TIME at which the GR was done. I tried looking at the MSEG tab

  • Gif icons no longer transparent?

    I have dozens of icons on my desktop, the images are white-ish shapes with transparent backgrounds. After upgrading to Leopard, all of the transparent parts of the icons have turned white. So now I have just a bunch of white squares. Not very useful

  • Clients not Accessible

    Hi! The configuration manager console shows the client is Active but when we try to connect to it using either "Remote Control" or "Remote Desktop Client", it does not work. Is it a known issue or the console is not updating the status of the clients