Passing Degree Symbols in a Parameter Field

We have a parameter on a crystal report configured to look up data from the database to allow a user to select values.
If someone selects a value that has a degree symbol in it then tries to run the report we get a parameter not valid error.
We see the error when we run the report in Crystal Developer as well.
We are using Crystal XI reporting against an Oracle 10g unicode database. We are using an ODBC connection.
Are we using the right driver for this?

Hi Dan Robinson,
As you said, the report parameter is not able to identity / compare Degree symbol with your database field.
If it is a number field then try the follwoing in record selection formula, if not please place your formula to check the syntax.
Totext(DatabaseField} = Totext({?ParameterValue})
Thanks,
Sastry

Similar Messages

  • Passing a value to a Parameter Field From a VB Form

    Post Author: as1971
    CA Forum: General
    Hello everyone
    I'm using Visual Basic 6.0 and Crystal Report 9.0
    I built a report using Crystal Report and named it Player_Statement.rpt. I then included it to my VB project and named it Player_Statement.Dsr
    In this report I have a Parameter Field called P_Player_ID which I'm using in Record Selection Formula.
    I'm using the following code to pass a value to the parameter:
    Dim Report As CRAXDRT.ReportSet Report = New Player_StatementReport.ParameterFields.GetItemByName("P_Player_ID").AddCurrentValue CLng(cmbPlayerNB.BoundText)
    When I execute the application I get the error message "The value or range you are adding has already existed" at the last line of code (Where I'm assigning the parameter a value)
    Could anybody help me please

    Post Author: VinoTinto
    CA Forum: General
    Dim Report As CRAXDRT.ReportSet Report = New Player_StatementReport.GetItemByName("P_Player_ID").ClearCurrentValueAndRange                                               Report.ParameterFields.GetItemByName("P_Player_ID").AddCurrentValue = CLng(cmbPlayerNB.Boundtext)

  • VERY URGENT!! How to Pass a "% " symbol from form to Report

    Hi
    I am using oracle 10g and passing a symbol "%" as a parameter to the report from a form. But it shows error as follows:
    REP-52006: Failed to decode the specified URL PARAMETER1=%.
    But it is working when it runs in the Report directly.
    Then Why we can't pass the symbol "%" to the report from form.
    Please reply me as soon as possible. IT IS VERY URGENT !!

    Hi,
    Try using a lexical parameter(&parm_1) for a string of values or a bind parameter(:parm_1) for a single value
    Thanks,
    Kimosabe

  • Best way to insert Degree symbol?

    Hello,
    I have an inspection form set up for restaurant/health inspectors.    Often times during an inspection they need to enter temperatures of food and like to use the degree symbol.    They're running this form on a convertible tablet pc, so a normal keyboard is not available to them in tablet mode and when in laptop mode using the combination of ALT+0176 that's still a PITA because the keyboard doesn't have full number pad and the people using this form aren't the most computer literate people out there to be able to activate the Function keys to endable number pad keys and then enter an ASCII code many times during an inspection.
    I was looking for suggestion on how to inforporate something into the form to assist in entering the degree symbol in any text field they are in at the position of the cursor.
    The idea's I've though of are:
    1.) A command button that inserts the symbol, but I'm afraid clicking the button would lose focus of the destination field and there'd need to be a lot of scripting to remember which field was the last one they were in to insert it in the correct one.
    2.) A Button or On Load event which somehow inserts the degree symbol into the Windows clipboard, but during the course of an inspection they might copy and paste something else thus clearing it out.
    3.) Some kind of auto-replace of text.  Not sure if that's possible in an adobe form.  E.g. if they type 'deg.' have the form auto replace it to '°'.
    4.) A special key press.  Not sure if Adobe can listen to a special key sequence not used by Adobe and Windows, say CTRL + D which when pressed inserts a degree symbol in the current location.  
    5.) Any way to place a special icon on Adobe's tool bar to insert the degree symbol at the currently location?
    Those were some ideas I'm thinking of.  Many are probably dead ends.   If you had this problem, how would you approach it?
    Thanks!
    -Mike

    Magnus, thanks for not giving up on this yet.   In your last post that is making some progress, but there's also some con's too.
    1.) That's running off of an 'On Exit' even which inserts the ºF at the end of the text.   In some cases that would work, but it others it would not work, like in this text field example of real data:      "White fish was a 51°F.  *Corrected* Witnessed manager throw away fish."    
    With your proposed java, that would put the °F at the end of the line when it needs to be in the middle of the line.
    2.) Many types of written text can be put in these fields.  Not every scenario would involve a temperature, so having it pop up your popupmenu might get in their way when it is not needed.
    What I'm thinking needs to be done is to somehow insert the °F exactly wherever the cursor is at the time when it is triggered to do so (how to trigger it?).   
    OR  
    On an On Exit event searcingh for and replacing the text they have entered.   Perhaps replace ' deg' with '°F' so that if they type:
          "White fish was a 51 deg.  *Corrected* Witnessed manager throw away fish."
    When the On Exit fires it replace deg with °F so that the text field now reads:
          "White fish was a 51°F.  *Corrected* Witnessed manager throw away fish."

  • Field-Symbols as Method Parameter

    Hi all,
    is there a way to create a field symbol within a method and export this field-symbol directly as a method parameter?
    The problem is that we can't pass a field symbol as method parameter unless it's assigned, but we would like to assign the field symbol within a method and give the result back to the calling program.
    We have managed to create a field symbol within the method and give back the result as a reference (we used the type ANY).
    We would like to pass the result field-symbol directly as a Method parameter.
    Any ideas?
    Best regards Dominik

    Hi all,
    thanks for you help. I managed to do the method calls with reference parameters but I'd like to do it with fieldsymbols instead.
    Your suggentions for field-symbold worked, but I could use them only with primitive datatypes.
    In my requirements the table must be created within the method, so the caller doesn't know the tablestructure.
    If a dummy table is assigned to the field-symbol before the call, the error "Two internal tables are neither compatible nor convertible" is produced.
    Is there a solution?
    Thanks in advance
    Dominik
    class ZZX0_CL_TEST definition
      public
      final
      create public .
    public section.
      class-methods FIELD_SYMBOLS_TAB_TEST
        changing
          !FS type ANY .
    METHOD FIELD_SYMBOLS_TAB_TEST .
      DATA: it_t000 TYPE TABLE OF t000.
      FIELD-SYMBOLS <field_symbol> TYPE ANY TABLE.
      ASSIGN it_t000 TO <field_symbol>.
      fs = <field_symbol>.
      EXIT.
    ENDMETHOD.
    REPORT zzx0_mini.
    DATA: it_mara  TYPE TABLE OF mara.
    START-OF-SELECTION.
    * Tabellen test
      FIELD-SYMBOLS: <fs> TYPE STANDARD TABLE.
      ASSIGN it_mara TO <fs>.
    *  ASSIGN it_t000 TO <fs>.
      CALL METHOD zzx0_cl_test=>field_symbols_tab_test
        CHANGING
          fs = <fs>.
      EXIT.

  • Pass the results from a selection formula to the default values for a parameter field

    Post Author: kevans
    CA Forum: General
    Crystal 10 u2013 SQL 2000
    I want to create a parameter field that will display all of our IT Departments so the end user can select the one they want to run the report against, such as IT-Security, IT-Network, etc. about 40 in all.  BUT I donu2019t want this to be a static list where I type in all 40 depts in the default list, I was hoping I could do something more dynamic such a formula field that says u201C if {group.name startswith u2018ITu2019 then {group.name}u201D and then have the parameter field pull from this source.
    Iu2019m sure this has been answered in a previous post but Iu2019m not finding it.  I see stuff on creating a record selection formula such as u2018if {?group} like u2018IT-Secur*u2019 thenu2026u201D  but this leaves too much room for error if people donu2019t type the name correctly.  Maybe Iu2019m not using the record selection formula correctly?  Sorry if I offend anyone but I just upgraded from 8 to 10 and thought for sure this option would be in 10, perhaps built right into the parameter default value page where you can place in select criteria but NOTHING has changed.

    Post Author: sharonmtowler
    CA Forum: General
    if you are creating the parameters in the rpt file, it will only pull values you enter, or directly from the database
    in the record selection you can do something like this, so if they only enter the first 2 characters it should pick up only the IT etc.
    (if eft(,2)={?parameter} then true else ={?parameter})

  • How to pass null parameter fields to Crystal JRC

    Post Author: picage
    CA Forum: Crystal Reports
    Hi! I'm trying to set some parameter fields to NULL, however
    when I set the params I get this message: "The types of the
    parameter field and parameter field current values are not
    compatible". Isn't this possible in the newest versions of the JRC?
    It's really urgent. Thanks!
    Paulo

    Post Author: picage
    CA Forum: Crystal Reports
    Hi! I'm trying to set some parameter fields to NULL, however
    when I set the params I get this message: "The types of the
    parameter field and parameter field current values are not
    compatible". Isn't this possible in the newest versions of the JRC?
    It's really urgent. Thanks!
    Paulo

  • Passing multiple values for a single field in URL to call sap Transaction

    Hi All,
    I need to pass multiple values for a single field to SAP transaction .
    means if i have say a field "Date" which can contain more than one value, <b>but its not a range which has two fields</b> . How is it possible.
    Let me know pls.
    Regards,
    Sirisha.R.S.

    Hi Satyajit,
    I need to call a transaction with multiple values which gives me the report based on those values.
    So I need to pass multiple values for a single parameter.
    I hope u got it.
    Regards,
    Sirisha.R.S.

  • Get the parameter fields defined in crystal report

    I am porting my application from crystal 8.5 written in C++ to crystal 2008 in .net.
    Here I am not making use of crystal report viewer neither I am creating .rpt in .net code.
    I have a set of already created .rpt files.
    I have written a function in .net to export the crystal report.
    Its a generic function and will be called for multiple crystal reports.
    I am passing the parameter values to the report by making use of the following function :
         ReportDocument repDoc;
         repDoc.SetParameterValue(APPTYPE, strNextToken[0]);
         repDoc.SetParameterValue(COMPORROLETYPE, strNextToken[1]);
    Similarly I are setting other parameter values.
    The problem here is that, all the reports do not have parameter fields defined that I am trying to set.
    They may be present for one report and absent for another. In this case , if the report does not have a particular parameter
    field, then it gives error on setting parameters and subsequently fails.
    Now I want to find out through code what all parameter fields are defined in the report. Then I will only set those
    parameter fields?
    Please guide how can this be done.
    Thanks
    Sonam

    Not as trivial as you might think. You will have to loop through all the sections of the report looking for the objects you need. I don't have a code specific to parameters, but looping through al the sections would be something like the code below. But... this will only show you parameters in a section. It will not show you parameters used in a formula, record selection formula, group selection formula, text field or a conditional formula. In order to get those parameters, you's have to parse out each of those objects looking for parameters. And this is probably not an exhaustive list of places to look for a parameter in the report.  I get a headache just thinking about this...
    Dim crSections As Sections
    Dim crSection As Section
    Dim crSubreportObject As SubreportObject
    'set the crSections object to the current report's sections
    crSections = crReportDocument.ReportDefinition.Sections
    'loop through all the sections to find all the report objects
    For Each crSection In crSections
    crReportObjects = crSection.ReportObjects
    'loop through all the report objects to find all the subreports
    For Each crReportObject In crReportObjects
    If crReportObject.Kind = ReportObjectKind.SubreportObject Then
    'you will need to typecast the reportobject to a subreport
    'object once you find it (***you'd go to setting the parameter here - or not...)
    crSubreportObject = CType(crReportObject, SubreportObject)
    'open the subreport object
    crSubreportDocument = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
    'set the database and tables objects to work with the subreport
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Getting Error with date parameter field -"Invalid DATE"

    Hi
    I created a report with 9.2 version. And  i created 2 date parameter fields in it. And within crystal reports it works fine.
    But If, I call from the VS2005 crystalreport.net(report document) SDK , i am getting error as Invalid Date" enter a Date Value". Actually it is a dtp control. how can i modify it.

    <p>There&#39;s not enough details to get a good understanding of your scenario, but it sounds like you&#39;re using some kind of date control to retrieve the date value and pass it to the report&#39;s parameter field at runtime. </p><p>If this is correct, it sounds like the format of the date value from the control may not be what the report is expecting. To debug, I would first use hardcoded values when you set the report parameter fields to see what works. Then compare that to what the return value is from the control to see if they match. I suspect the formats differ. </p><p>I did a quick search on the BOBJ kbase and found a couple of articles that may help you. I recommend searching as there are lots of information on how to set parameter fields at runtime. </p><p><span style="margin-left: 5px"><a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2010247&sliceId=&dialogID=8582434&stateId=1 0 8584068" target="_blank">c2010247</a></span><span style="margin-left: 5px"><span style="margin-left: 5px"><a href="http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=c2010251&sliceId=&dialogID=8582434&stateId=1 0 8584068" target="_blank">c2010251</a></span></span></p><p>-MJ</p>

  • Set default value for parameter fields

    Good day!
    Situation:
    1. I have 2 parameter fields in reports (dateFrom and dateTo)
    2. Before running report in ASP.NET I change value this fields (dateTo = today, dateFrom = today - 3 days)
    3.I use for this source:
    foreach (ParameterField crParam in CrystalReportSource1.ReportDocument.ParameterFields)
                            CrystalDecisions.Web.Parameter crParametr = new CrystalDecisions.Web.Parameter();
                            string ParametrName = crParam.Name;
                            crParametr.Name = ParametrName;
                              crParametr.DefaultValue = ActionReportParameter.GetParametrValue(ReportName, ParametrName);
                             CrystalReportSource1.Report.Parameters.Add(crParametr);
    4. And repurt run without request value parameter fields.
    5. BUT!!! now I need request value parameter fields before report start running - I want set default values for filelds and offer user change its before report start run.
    How do this?
    Thanks

    I believe you need to create your own parameter promt screen. Capture what the user entered and pass that to the report(?).
    slv

  • How to pass value to select-option parameter using SET PARAMETER Command

    Hi,
        Am passing values to selection-screen fields in report RV13A004 ( used in VK11, VK12 and VK13). using below statement but material number is select-option in this report. am able to pass  MATERIAL FROM using SET PARAMETER ID, can i know how to pass values MATERIAL TO range in select-options fields using SET PARAMETER Command ??
    Passing values to parameter id
    set parameter id 'VKS' field kschl.
    set parameter id 'VKO' field vkorg.
    set parameter id 'VTW' field vtweg.
    set parameter id 'KDA' field erdat.
    set parameter id 'MAT' field matnr_from.
    Change condition price.
    call transaction 'VK12' and skip first screen.
    Thanks in advance.
    Regards,
    Balamurugan.

    Hi,
    instead of using set parameters and dden call transaction use this..........
    submit RV13A004  WITH SELECTION-TABLE rspar
    Effect
    If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
    SELNAME (length 8),
    KIND (length 1),
    SIGN (length 1),
    OPTION (length 2),
    LOW (length 45),
    HIGH (length 45).
    To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
    SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
    KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
    SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
    If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
    The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
    Notes
    In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary.
    When entering values, you must ensure that these are entered in the internal format of the ABAP values, and not in the output format of the screen display.
    Cheers
    Will.

  • How to make Parameter field not mandatory while running CFL through SAP B1

    Hi Experts.......
    I have a small doubt if anybody can help me.......
    I have created a simple report for testing purpose by taking table OITM and it is diplayng CFL symbol in B1 scressn when I import. Upto this it is working fine and showing correct input.
    Now I made some changes according to my logic is that When I select any value in condition parameter say any Item Group it shows me output for that particular ItemGroup. And when I select nothing in Parameter then it is displaying all data from all the group and this si what I want. But when I import the same CR in SAP and running same report it is not allwoing me to paas Null value so that I can get all the data as output.
    This is giving right result if I dirctly run CR by refreshinh Parameter but same thing I run from SAP and put the parameter field blank it is giving me error that Parameter (ItemGroup) is mandatory
    Can anybody assist me how to solve this?
    Thanks & Regards,
    Rahul Moundekar

    Hi
    I had the same issue.  As noted by Julie SAP published a workaround.
    See my original thread post below.  Go straight to the last entry.
    Crystal in B1 8.8 - optional parameters not working
    The problem is that when called from B1 the hasvalue command always returns true, hence the checking for nulls and spaces etc. as well.
    You keep the parameter definition as Optional.
    This works find for character fields, both single select and ranges, and I have gotten around it for numerics etc by using a SQL formula to cast these to character fields in the data being queried.
    I have yet to be motivated enough to see how to code around this for multi valued fields.
    Hope this helps.
    Rob

  • QE parameter field ''{0}'' could not be found.

    Post Author: fpoulet
    CA Forum: Deployment
    Hi,
    We are running crystal report from our web application using
    JRC API. For performances concerns, we decided to use a
    Stored Procedure, but we can not make it run from the web
    appilcation, because we are getting this error:
    The QE parameter field '''' could not be
    found.
    All the parameters are teh same thna when we were using
    connection to normal tables, so we know that the parameters
    values are populated just fine in the reportSource passed to
    the reportPageViewer.  (I double check in debug mode, and
    I'm sure the value are populated).
    I know also that there is no issue with the connection,
    because when we tested a dummy report, which ddin't use
    any parameters but were using a stored procedure, I could
    get the results in my application.
    Any idea, why this is not working ? Also, I can not figure
    out what the error message mean.Any idea, help will be really appreciated.
    Thanks,

    Hi,
    I did try to hard code the parameters values, and it still didn't work. However, I did get a little bit closer, I found out that it doesn't work only whne my stored procedure uses a temporary table.
    Any though, why the temporary table would cause this error ?
    Thanks

  • Parameter Field Type Date

    Post Author: Pursuit
    CA Forum: Crystal Reports
    How can i change my Parameter Field Type "Date" so it requests the date as dd-mm-yyyy and not yyyy-mm-dd

    Hello,
    You can still accept the date as it is, but you can convert the date in the report level with the folowing formulas when you pass the date to data base.
    DayFormula: ToText(Day(Date(yyyy-mm-dd)),0) output you get day eg:  DD
    MonthFormula: ToText(Month(Date(yyyy-mm-dd)),0)  output you get eg: MM
    Year Formula: ToText(Year(Date(yyyy-mm-dd)),0) output you get eg: YYYY
    DashFormula: "-"
    Now combine all
    CompleteDateFrmula= DateValue(& & & & {Year Formula})
    You can pass this
    Hope this help!!!!
    Ashok

Maybe you are looking for