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

Similar Messages

  • 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

  • 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 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

  • 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

  • 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

  • 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

  • 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.

  • Crystal Report Windows Forms Viewer Error in 1 Workstation after upgrade of PL

    Hi all,
    We just upgraded SAP from 8.82 PL02 to 8.82 PL15.
    Afterwards, in just 1 workstation, Crystal Reports layouts have Crystal Report Windows Forms Viewer error I attach.
    Before the upgrade this error did not happen.
    No permissions or authorizations were changed  in the workstation.
    The Crystal Reports layouts remain working fine in server and in the other workstations.
    In the workstation following are installed:
    - Operating System Windows 7;
    - Microsoft .NET Framework 4.5;
    - SAP Crystal Reports runtime engine for. NET Framework;
    - Crystal Report 2008 Runtime SP6;
    - Microsoft SQL Server 2008 R2 Native Client.
    All, but the operating system, are equal to the other workstations.
    User has edit access to SAP folders, temp and access to the attach path.
    We already uninstalled SAP client and client agent and re-installed it but with no avail.
    Can anyone help me?
    Thanks in advance.
    Best regards,
    Pedro Mariano

    Hi San Xu,
    Thank you for your input.
    However I'm facing problem with each software is suitable.
    I installed SAP Crystal Reports for SAP Business One (CR 2011 V14.0.4.738), but with no avail.
    Thanks in advance.
    Best regards,
    Pedro Mariano

  • 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

  • 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?

  • Crystal Report Windows Forms Viewer problems - table could not be found

    Hi,
    I installed Crystal Report Viewer in SAP Business One 2007. All the while, I can run the reports without any problem. but when I loaded some of the new report, it gives me the following error message:
    the caption says: "Crystal Reports Windows Forms Viewer"
    the message says: "The table 'paymentVoucher' could not be found.
    Error in file C:\...paymentVoucher.rpt. The table could not be found."
    By the way, I can run the report in another workstation.
    Any help or ideas of why this is happening or how to solve this will be greatly appreciated.
    Thanks in advance.

    The report is not created by me. I just help others to transfer the report from one workstation to another workstation. PaymentVoucher is a view in the database and it is being put at a workstation that can be shared by everyone.
    I've go through other forums and found out that it might be permission issues and now managed to solve the problem already.
    Thanks everyone for the advice.

Maybe you are looking for

  • My bluetooth earphones won't stay connected to my Apple Watch!

    As you are reading this question, be sure to note the distinction between PAIR and CONNECT. They are not the same thing and in this question I use them according to their separate definitions/functions. I have an Apple Watch and had no trouble pairin

  • Dynamic Image Issue url:{concat(../DIR_ID2,'/',Filename_ID357)} command

    Hello. I'am actually using dynamic images depending of a filename and directory. This is working fine. My problem is that my dummy image have a form (is in horizontal) and the dinamic images that i want to import to my template have multiple forms, i

  • Need help regarding tree control

    hello guys, i m working on one Flex slideshow application and i m using Xml loaded tree control with swf loader for this. i want to create next previus button for nevigate this slideshow but i dont know much about action script... please help me i wi

  • Billing milestone not appearing in Sales Billing Plan

    Hi , I am using Assembly Procssing scenir and Milestome billing plan. After creating a sales Order my project is created automatcially. Std Milestone are getting Copied from Templted. These milestone are linked to Sales Order billing plan after ticki

  • Can I remove the Edge Animate stage from the body of my HTML but keep the .js file in the head?

    Howdy, I have designed a couple of Edge Animations for a client to insert on a single page of their website. The client wants to package all .js files as one for the site to reduce the pageload - but if they do that and simply remove the stage elemen