Passing Parameters to Crystal Report

Dear all,
I wonder if anybody has tried out the crystal report bundled with workshop
in SP2.
I got some problems when I try to pass a parameter from a jsp in workshop to
crystal report according to part 4 of tutorial in the Crystal Reports for
BEA Weblogic workshop Developer's guide.
This message show in the web browser:
com.crystaldecisions.report.web.viewer.CrystalReportViewer
Some parameters are missing values
However, the report viewer works fine in workshop if I am not passing
parameters.
If anyone has successfully setup a report which involves parameter passing
in workshop, I would appreciate you can share the tricks how to make it
work.
Thanks!
Orion Yiu

Hi Orion,
I have the same issue like the one you sent to bea helpdesk . Please, if you got any positive response on that issue. Need help. Thanks you for you time.
Abdellah

Similar Messages

  • PASSING PARAMETERS TO CRYSTAL REPORTS THRU FORMS!

    Hi! all,
    Is there someone who passed parameters to crystal reports from
    forms 5.0?
    The problem is when I call the report executable from the form,
    its giving a login prompt again which is not desirable as @ this
    stage the user has already logged in once. So is there a way to
    pass this as a parameter to crystal or may be any better way???
    Thanx for the solution,
    Hima
    null

    First make sure you are on SP 3:
    https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe
    SP 3 msi     
    https://smpdl.sap-ag.de/~sapidp/012002523100007123592010E/cr2008sp3_redist.zip
    SP 3 msm     
    https://smpdl.sap-ag.de/~sapidp/012002523100007123582010E/cr2008sp3_mm.zip
    Have a look at [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]
    (The above does apply to your version of CR also)
    Have a look at the samples:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    And look at the Developer Help file:
    http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm
    And don't forget to use the search box at the top right corner of this web page. It will bring up KBases, blogs, wikis, articles and more. Searching these forums is also a good idea.
    - Ludek

  • How to Pass parameters to Crystal report 10 based on Oracle Stored Procedur

    Hi,
    I use the following code to pass the parameters:
    Rep.Tables[0].ConnectBuffer := Connection_Str;
    Rep.Tables[0].AliasName := 'REP';
    Rep.Connect.Propagate := True;
    Rep.ParamFields.ByName('Lang', '').CurrentValue := IIF(BiDiMode = bdRightToLeft, '2', '1');
    Rep.ParamFields.ByName('SESSION_ID', '').CurrentValue := IntToStr(Session_id);
    Rep.WindowState := wsMaximized;
    Rep.Show;
    The 1st parameter 'Lang' which created from crystal report pass well,
    but the 2nd parameter 'SESSION_ID' which created from Oracle Stored Procedures give the following Error:
    Error: 202 Parameter Name could not be found u2013 ParamFields.ByName
    However in MS SQL Server the above code work fine with the 2 Parameters.
    Any one has solution,

    Hello,
    Click on the businessobjects Tab above and then select Samples and dowload the sample app you for your SDK. There are a few samples for changing/setting Parameters.
    The Parameter collection has all parameters.
    Thank you
    Don

  • Passing parameters to Crystal Reports 2008; C#

    Hi,
    we are developing a .NET C# application and would like to call a Crystal Reports document (version 2008) from there passing some parameters.
    So we will build the Crystal reports with the necessary parameters - however, how can I pass them from our C# application? The Crystal reports will be stored locally.
    Thanks!

    First make sure you are on SP 3:
    https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe
    SP 3 msi     
    https://smpdl.sap-ag.de/~sapidp/012002523100007123592010E/cr2008sp3_redist.zip
    SP 3 msm     
    https://smpdl.sap-ag.de/~sapidp/012002523100007123582010E/cr2008sp3_mm.zip
    Have a look at [Crystal Reports for Visual Studio 2005 Walkthroughs|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2081b4d9-6864-2b10-f49d-918baefc7a23]
    (The above does apply to your version of CR also)
    Have a look at the samples:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    And look at the Developer Help file:
    http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm
    And don't forget to use the search box at the top right corner of this web page. It will bring up KBases, blogs, wikis, articles and more. Searching these forums is also a good idea.
    - Ludek

  • How do I pass parameters to a report thru Report Viewer?

    hi,
    I am moving from Crystal Reports 8.5 to XI in VB6.
    How do I pass parameters to a report thru Report Viewer?
    Old VB code:
    crReport.ParameterFields(0) = "FrProp;" & Trim$(.FrProp) & ";TRUE"
    crReport.ParameterFields(1) = "ThProp;" & Trim$(.ThProp) & ";TRUE"
    crReport.ParameterFields(2) = "RunDate;date(" & Format(Cntl.Run_Date, "yyyy,mm,dd") & ");TRUE"
    crReport.ParameterFields(3) = "FrDate;date(" & Format(.FrDate, "yyyy,mm,dd") & ");TRUE"
    crReport.ParameterFields(4) = "ThDate;date(" & Format(.ThDate, "yyyy,mm,dd") & ");TRUE"
    Bill todd

    Hi Bill,
    Download sample code from the following link:[https://boc.sdn.sap.com/codesamples] 
    Hope this helps!!
    Regards,
    Shweta

  • Passing Value from Crystal Report (special function) to Business View parameter

    Friends,
                 Í have a scenario where i need to pass value from Crystal Report to a Business view's parameter.
    Eg : CurrentCEUsername (func in crystal report)-- gives login user  which i should pass to parameter in a Business view (used in the same report).
    Will be able to explain more if required.
    Thanks in Advance,
    Bharath

    I guess you got the picture wrong.  User_id is not a report_level parameter .
    In Data Foundation, below query is used..
    select Acc_Number, Account_Group,User_id  from Accounts where user_id={?User_id}
    where in {?User_id}  is the BV parameter...
    The Filter was a solution. But it takes long time to Query all the data from DB and then filter at BV level.
    How do i pass the CurrentCEUsername to {?User_id}
    Value should ve CurrentCEusername always. so that query will be
    select Acc_Number, Account_Group,User_id  from Accounts where user_id=CurrentCEusername
    It will restrict the data pulled from DB to BV .. right?

  • OBIEE 11G - Issue passing parameters between two reports

    Hi folks,
    I am struggling to pass parameters between two reports in OBIEE 11G.
    My first report contains the following columns: Rolling Year Type (VCHAR), Year(VCHAR), Month(VCHAR), Cost(Double).
    My second report contains the following columns: Rolling Year Type(VCHAR), Year(VCHAR), Month(VCHAR), Category(VCHAR), Cost(Double).
    My requirement is to pass the Rolling Year Type, Year and Month values from report 1 to report 2.
    On the Month column properties of report 1, I have created an Action Link called 'Drill to Category'. I have clicked on 'Navigate to BI Content' and selected Report 2.
    Then on Report 2, I have included three filters: Rolling Year Type is prompted, Year is prompted, Month is promted.
    When I run the report I always get the following error:
    The specified criteria didn't result in any data. This is often caused by applying filters and/or selections that are too restrictive or that contain incorrect values. Please check your Analysis Filters and try again. The filters currently being applied are shown below.
    When I check the cursor cache, the filter values are correct. Does anybody have any idea why Report 2 does not display?
    When I remove the Month filter, the report works correctly.
    I have since changed the third filter to be Month No and although Report 2 does display, it does not pick up the filter on the Month No.
    I initially thought this may have been a caching issue and so I have disabled BI Server Cache but this does not fix my problem.
    This was never an issue on OBIEE 10G as I found it very easy to navigate between two requests.
    Has anyone else experienced problems with passing parameters between two request in 11G?
    Any help appreciated.
    Thanks
    Gavin

    Hi,
    I once tried this kind of requirement(with dashboard prompts though) and hit at similar issue. I later found out that the problem is with the space in the parameter values. Can you please let me know, if the same is the case with you?
    Suppose the parameter passed is "Jan 2010", but the report on the destination takes the value as "Jan" & "2010". Yes, it kind of split the parameter value to two based on space. I think we can notice the filters the destination report got, by enabling filter view.
    In this case, since you pass only value at a time, could you try placing the parameter value anyway in double quotes? I think the Server then will understand it as one value.
    Thank you,
    Dhar

  • "Date / Date Time" type parameters in crystal reports 2008

    i am using parameters in crystal report to select records. one of the parameters is "From Date" of type Date Time.
    i mapped this parameter to a field "DateIn" of type smalldatetime in my sql table.
    Now, when i open the report it asks for "From Date" but b y default it sets the time to current time so i have to change it to 00:00:00 manually. i want it to show 00:00:00 by default. which means i don't want time here.
    For this if i select the datatype of parameter "From Date" as Date only then i am not able to map it to the "DateIn" field of the sql table.
    Please help me out of this.
    Edited by: rohit0825 on Jun 2, 2010 2:25 PM

    >
    Deepravs wrote:
    > Hi Rohit,
    >
    > Change the Parameter to Date Datatype and use this formula in the "Record Selection Formula " (Report Tab -> Selection Formulas -> Record)
    >
    > = CDateTime ({?From Date})
    >
    > Though the parameter is date datatype it converts to datetime datatype amd maps to the desired column.
    >
    >
    > Thanks,
    Great !!!
    this is working.
    i found another way, i changed the datatype of parameter to Date and click ok and everything was good, it doesn't require any conversion to date time.
    Thank You so much. All Points You.
    Edited by: rohit0825 on Jun 3, 2010 10:47 AM

  • Pass parameters to a report

    Hi all,
    I would like to know how to pass parameters to a report to filter the data from an external application, for example a Oracle ADF app.
    Thanks,
    Jhon
    BI PUB 11.1.1.7

    hello arjhay,
    webelements 2.3 will not work seemlessly, unfortunately, with xir3.
    in xir3 the dhtml viewer has changes in it that are more web 2.0.
    things that will not work and are deprecated for webelements & xir3 are the functions in WEViewer. this is due to the toolbar in the new viewer being a widget as opposed to a set of divs. however, opendocument for xir3 will allow one to switch off the toolbar using an opendocument paramter and will also allow one to switch off the new style tab bar.
    the new dhtml viewer also does not encase report fields & functions etc. within a form tag. many webelements controls require a form so the new design for xir3 will be to put a new WEFormStart at the top of each report using webelements. what this does is basically start a form in the viewer and allow the controls to function properly.
    so in summary there are 2 changes for xir3:
    a) each report using webelements must have a WEFormStart function added to the beginning of the report
    b) references to WEViewer must be removed from reports that are used in xir3
    there will be a new 2.4 function suite out in several weeks and this will contain the new WEFormStart as well as other syntax changes to allow reports to work in xir3.
    jw

  • Default Parameters in Crystal Report

    Hi all visitors
    I have created one crystal report and now i want to set the parameters to my report by using parameters in Crystal Report(  the parameters not from sql).My parameters are datetime datatype. in my report, i create one formula( get date from DocDate field from sql).How can i set the default "Todate" parameter as current date?
    Best Regards,

    Hi,
    So all of the seleciton is done using selecct expert.  They have alot of default values there...but if you go to advanced then you can do much more still.  So if you just want to only use the currentdate then you can just do something like
    date({IT_ChangeManagement.Deployment Date/Time}) = currentdate
    In the above case there would be no parameters needed and would show the currentdates information. You could of course do a varity of >= or <= using the above method. 
    If you want more flexability then you could create a parameter or two . Here is an example.  This is again done in select expert....
    if {?Start Date} <= date("01/01/2000") then
    date({IT_ChangeManagement.Deployment Date/Time}) = currentdate
    else
          {IT_ChangeManagement.Deployment Date/Time} >= {?Start Date} and
          {IT_ChangeManagement.Deployment Date/Time} <= {?End Date}
    The above defaults to the current date if the start date is older than 2000, otherwise it uses the start & end date parmeters.
    Make sense?

  • Passing parameters from portlet reports to portlet forms

    Hi,
    I'm tring to pass parameters between a Report displayed as a portlet in a page ( page 1) and a form displayed in other page ( page 2).
    The problem is i can't do this.
    I only can pass parameters from a report ( running as normal or in a portlet displayed in a page) to a form running "normal" by using application links. Can i do this between a report that show's me every employees of scott.emp table. Then when i click on each employee, it open's me another page with the portlet form of the specified employee.
    I'm not sure i made myself clear. Please send me some feedback.
    Pedro

    I have the same problem. Please let me know if this could be done.
    In particular my form is a type of "Form on Table/View."
    Thanks
    Henry

  • Passing Parameters to RDF Reports with Parameter_list in Forms9i

    Hi,
    I am trying the Oracle 9iDS, and I encounter a problem.
    When passing parameters to my reports, if my parameter contains the space or other special char, I cannot run the report. It give me the REP-56033.
    For example, it's my code:
    add_parameter(pl_id,TEXT_PARAMETER,' and deptno=56');
    Then, when I run the form. It cannot run the reports. In rwservlet/showjobs, I cannot see this job.
    And If I change the code to
    add_parameter(pl_id,TEXT_PARAMETER,'anddeptno=56');
    Of course I cannot get a correct output, but I use the rwservlet/showjobs to get this failed job.
    Any one can give me a hand. Thanks!

    Of course I use run_report_object. I can run my other report successfully.
    Just these report with special char parameter. I can not call them.
    And I can search out there are some questions about this problem in the forum. But they all arenot get the answer.
    Please help me.
    Anyone can try to run your report, or run the test.rdf, which is the demo given by oracle, with a paramters containing a space, such as ' aaa bbb'. You will find that the report cannot run. Even in the showjobs, u cannot find it!!!!
    Please!!!

  • Passing parameters to QBE Reports?

    I currently have an SQL Report that I filter dynamically with parameters from the page. I would like to be able to use this same functionality with a QBE Report that the client can more easily specify.
    Is it possible to pass parameters to QBE Reports? If so, how?
    Thanks,
    Mark

    As Chetan has correctly suggested, it will be better to use a table to store
    the emp no and their pin against their login session ids.
    You can have a table as :-
    create table emp_pin (
    session_id integer,
    emp_no integer,
    emp_pin integer,
    constraint emp_pin_fk1 foreign key (session_id) references <portal_schema>.wwctx_sso_session$(id) on delete cascade
    When a user logs into portal, a session_id is created and this session_id is
    deleted when the user logs out. The delete cascade rule will clean up your
    table entry when the user logs out.
    You can get this session_id using the <portal_schema>.wwctx_api.get_sessionid function.
    Now you need to create 2 functions that would return the emp_no and emp_pin.
    You can then use these functions in the sql query of your reports. This way you
    need not use bind variables at all.
    Example:-
    create or replace function get_empno(p_sess_id in integer)
    return varchar2
    is
    l_empno varchar2(2000);
    begin
    select emp_no
    into l_empno
    where session_id = p_sess_id;
    return l_empno;
    end;
    create or replace function get_emp_pin(p_sess_id in integer)
    return varchar2
    is
    l_emp_pin varchar2(2000);
    begin
    select emp_pin
    into l_emp_pin
    where session_id = p_sess_id;
    return l_emp_pin;
    end;
    Now, these functions can be used in SQL query of your reports as :-
    select <col1>, <col2>, <col3>
    from <table>
    where empno = get_empno(<portal_schema>.wwctx_api.get_sessionid)
    and emp_pin = get_emp_pin(<portal_schema>.wwctx_api.get_sessionid)
    and ....
    In a form, you can use these functions to set the default values of the empno,
    emp_pin fields.

  • Passing SQL to Crystal Reports Server using JAVA

    Hi all,
      We are in the process of redoing our Java app and we would like to create SQL query and pass this to Crystal Reports Server to have it generate a report.
      I've looked all over but still could not find any info on it.  Does anyone know how this is done or know where I can find some information on this?
      I've looked at some of the examples from BO but did not find anything relating to what I need to have.
    Thanks in advance.
    -S.C.-

    Hey,
    Have a look at https://boc.sdn.sap.com/node/452
    There some other great webinars on the left side also.
    Hope that helps.
    Else if you wanting to run some SQL before loading the report search for something along the lines of:
    (But I warn you this is not the correct coding, I have just quickly cut and paste a
    few bits from one of my reports but you should get the idea, hopefully,
    might have to use your imagination.)
    Connection connection = null;
    CallableStatement cs;
    Class.forName(dbDriverName);
    // Create a connection to the database
    connection = DriverManager.getConnection(dbConnectionURL, dbUsername, dbPassword);
    // Call a procedure with one IN parameter
    cs = connection.prepareCall("{ CALL " + str_ProcStatement + "}");
    cs.setString(1, str_Param1);

  • Passing Parameter to Crystal Report

    Hi Experts,
    I have created and designed a Report in Crystal Report 2005. I am displaying the report in SAP B1 using Win Form . Here I want to pass 2 parameters to Report ---@FromDate and @ToDate . I have coded to pass these two parameters this way :
    Dim RptDoc As New ReportDocument
            Dim ParamValue As String = String.Empty
            Dim crtableLogoninfos As New CrystalDecisions.Shared.TableLogOnInfos
            Dim crtableLogoninfo As New CrystalDecisions.Shared.TableLogOnInfo
            Dim crConnectionInfo As New CrystalDecisions.Shared.ConnectionInfo
            Dim CrTables As CrystalDecisions.CrystalReports.Engine.Tables
            Dim CrTable As CrystalDecisions.CrystalReports.Engine.Table
            Try
                RptDoc.Load(Application.StartupPath() & "\" & ReportName & ".rpt")
                RptDoc.SetParameterValue("@FromDate", "01/01/2008")
                RptDoc.SetParameterValue("@ToDate", "12/31/2008")
                Dim oForm_ReportViewer As Frm_ReportViewer = New Frm_ReportViewer()
                oForm_ReportViewer.CRViewer.ReportSource = RptDoc
                With crConnectionInfo
                    .ServerName = oCompany.Server  '"(local)"
                    .DatabaseName = oCompany.CompanyDB '"SBODemoIn"
                    .UserID = oCompany.DbUserName
                    .Password = "manager@123" 'oCompany.DbPassword
                 End With
                 CrTables = RptDoc.Database.Tables
                'Loop through each table in the report and apply the
                'LogonInfo information
                For Each CrTable In CrTables
                    crtableLogoninfo = CrTable.LogOnInfo
                    crtableLogoninfo.ConnectionInfo = crConnectionInfo
                    CrTable.ApplyLogOnInfo(crtableLogoninfo)
                Next
               oForm_ReportViewer.Text = frmTitle
                oForm_ReportViewer.WindowState = FormWindowState.Maximized
                oForm_ReportViewer.ShowDialog()
            Catch Ex As Exception
                MessageBox.Show(Ex.ToString)
            End Try
      But When I view the report in B1 , it throws an Exception "Report or Procedure expects parameter @FromDate which is not    supplied. "
    Please help me where I am making mistake , what could be the cause of this exception..
    Thanks and Regards,
    Pooja Singh.

    Hi Pooja Singh,
    You have only set Dim ParamValue As String = String.Empty.  Where are two parameter @FromDate and @ToDate?
    SetParameterValue will only work if you have defined the parameters already and the parameters have the right format.
    You may check this thread:
    Re: Crystal report open instead of PLD with same form reference.
    Thanks,
    Gordon

Maybe you are looking for

  • Setting path for "Content-disposition" filename

    I'm trying to figure out how to set the filename in the following: String path = "/usr/local/jakarta-tomcat-4.1.29/webapps/myapp/my_images.zip"; response.setContentType("application/octet-stream"); response.setHeader("Content-disposition","attachment

  • Unable to find schema where procedure is created.

    I have created a trigger : create or replace trigger atp_bookstest_trigger before insert on atp_bookstest for each row DECLARE cnt number; BEGIN select count(*) into cnt from atp_bookstest where title = :new.title; IF(cnt > 0) THEN call MY_PROC(:new.

  • Split the value using comma as delimiter and then pass each value to query to get the description

    Hi, As i am new to crystal reports,  I need help in getting one field. In my report i am using 2 tables: one is like : code_id code_desc 1 aaa 2 bbb 3 ccc 4 ddd and the another is : reason_ind 1 2,3,4 2,3 1,2,3,4 3,4 In this report i have a column :

  • Labels and Ratings - question

    Hi, thanks for looking at my question. Bridge comes with 5 colored labels/ratings.  In Bridge preferences, the first four -- red, yellow, green and blue -- have keyboard shortcuts. Is there a way to apply a keyboard shortcut to the fifth -- purple la

  • [SOLVED] Trouble with running systemd user service on login

    I'm trying to get emacs to run as a systemd/user service so that it will start up faster, as suggested in the wiki article, but I'm having some problems. I can't get the service to run as soon as I log in. I can run the service with systemctl --user