HasValue with dynamic parameter

Hi. Here is my hasValue syntax:
(if HasValue ({?Manager - f-name})then {rm_cname.type-code} = "icm" and {rm_cname.f-name} = {?Manager - f-name} and
{rm_cname.l-name} = {?Manager - l-name})
It works when I select the two cascading values, but if I leave f-name blank, it fails. Also, the dynamic list for f-name stops in mid-J's....A to J is broken into 3 subgroups, but then it stops at Jay with lots of folks after that not showing.
Can anyone help?
Thanks!!
Robin

Thanks to my responders, I will look into the reg entry to control the max number for the dynamic parameter, although reg hacks burn me...too many report users in our envirnoment.
Here is the final code that worked:
(not HasValue({?Manager - l-name}) OR {rm_cname.l-name} = {?Manager - l-name}) and
(not HasValue({?Manager - f-name}) OR {rm_cname.f-name} = {?Manager - f-name})
With the parameter set as Optional, of course.
Hope this helps anyone else having problems with this.
Thanks again.
Robin

Similar Messages

  • IMPORT from database with dynamic parameter list

    Hi Gurus,
    Iu2019m having problems during import from a cluster table.
    I wanu2019t to do an import with a dynamic parameter list, but I cannot get it to work.
    Sample code ********
    DATA: BEGIN OF st_key,
    report LIKE rsvar-report,
    variant LIKE rsvar-variant,
    END OF st_key.
    DATA dirtab1 LIKE cdir OCCURS 10 WITH HEADER LINE.
    DATA dirtab2 LIKE cdir OCCURS 10 WITH HEADER LINE.
    st_key-report = 'ZPRG'.
    st_key-variant = 'VAR1'.
    IMPORT DIRECTORY INTO dirtab1 FROM DATABASE vari(vb) ID st_key.
    IMPORT DIRECTORY INTO dirtab2 FROM DATABASE vari(va) ID st_key.
    DATA: tmp_var(100)   TYPE c.
    This works - P_BWTAR is a parameter from the selection screen registred in VARI
    I'm getting the content of the field in tmp_var
    IMPORT p_bwtar TO tmp_var FROM DATABASE vari(va) ID st_key.
    This does not work - the parameter P_BWTAR is in the dirtab2-name
    I'm not getting the content
    LOOP AT dirtab2.
        IMPORT dirtab2-name FROM DATABASE vari(va) ID st_key.
      ENDIF.
    ENDLOOP.
    I have tried the syntax IMPORT (dirtab2-name) ........
    but this fails the syntax check.
    Please - if you have any suggestions  :o)
    Best Regards,
    Vibeke

    Dear Vibeke,
    Could you please explain us how you solved the problem because you have the same issue ?
    thanks a lot
    KR
    véronique

  • Error when uploading a crystal report with dynamic parameter into Infoview

    Hi All,
    I was trying to upload a crystal report which has a dynamic parameter into a Infoview. It shows an error message that say:- "Failed to read data from report file C:\WINDOWS\TEMP\tmp27A.rpt. Reason: Failed to read parameter object ". Can anybody help me in solving this?
    Thanks!
    Edited by: undefined on Aug 20, 2009 8:57 PM

    Post your question to the Business Objects Forum

  • Scheduling a Report with Dynamic Parameter Values

    Post Author: etlag
    CA Forum: Publishing
    I have created a report using a parameter that has dynamic values - meaning the user can choose a date from a specific field. It works fine once published in InfoView, but when I schedule the report, when I try to enter the parameter I get promted for a login for the database, even though I have already entered this in the CMC report properties.
    I have other reports that are using static values and they can be scheduled without entering the database login.
    Any ideas what I am missing?

    Post Author: amr_foci
    CA Forum: Publishing
    dear etlag
    its known issues, you've to set the default database connection to this report from the "CMC" web-bases appliaction , find this object click it go to "process" tab and then click the "database" tab,,, set your default database connection there and finally dont forget to set "Use same database logon as when report is run" at the end of the page
    and cilck ok
    try it ,, good luck
    Amr

  • Failed to read parameter object using Dynamic Parameter

    Hi All
    In one of my report I am using dynamic parameter, I tried to publish the report in BOXI and got the following error:
    "Failed to read data from report file C:DOCUME1...LOCALS1Temp~crw{u2026u2026..-u2026.-u2026.-u2026.-u2026u2026u2026u2026}.rpt. Reason: Failed to read parameter object"
    but if I change that to static parameter I am able to publish it.
    I am using Crystal Report 2008 Version: 12.1.0.892
                                              Product Type: Full
    BO Version: Product: 12.1.0 © 2008 Business Objects
    I went thru many forums and came up with some settings while publishing but nothing worked out. And some mentioned about the service packs and fix pack issues. But I am not sure which should be installed in order to make this work for my versions.
    Can anyone please suggest, what can be done to publlish a report with dynamic parameter?
    Thanks
    Sree

    Hi Sharon,
    I am facing same kind of issue with crystal report 12.2.0.290 and BO server 12.1.0 © 2008 Business Objects.
    While i am trying publish the report with dynamic parameter, its throwing the error "Failed to read parameter object ".
    I am not sure what to do..can you please guide me ?
    Regards,
    Johnes

  • Parameter with Dynamic prompt - bug encountered

    I am using CRD XI release 2 (SP2) against an Oracle 10 release 2 database
    I have a report fully working with a static parameter
    1. But I have an issue when trying to introduce a parameter with dynamic prompts
    I have a data source (PointofSale retrieving data from a database view)
    I am trying to have the newPointOfSale parameter to prompt the user for values taken out of the PointOfSale source.
    I set up the parameter as indicated by the Crystal RD210 Guide.
    But when I run the report I am prompted for Server Name(greyed out)/user name/password(something I have never had to do for this report until introducing the dynamic parameter)
    In doubt I enter these of the database user I am using as a source for this report
    I get a strange error message telling me there is a problem with another datasource on the report.
    'Prompting failed with the following error message: 'List of Values failure: fail to get values. [Cause of erro: The table 'DLEX_REPORT.DLEX_REPORT_RETRIEVE.AIRLEGSUMMARY_SUM' could noyt be found. UNKNOWN.RPT]'.
    Error source: prompt.ddl Error code 0x8004380D
    There seem to be  bug with parameters and dynamic list of values in Crystal as other people seem to encounter similar issue
    Is there a fix or a workaround?
    2. Also I believe this forum allows to escalate bugs with SAP/business objects. Does anyone know how to do this? As this is very obviously a bug....
    Thanks
    Philippe

    I am not sure whether this will solve your problem since you are using a different implementation of Crystal Reports , but I've received the same error using CR XI Developer Release 2 in conjunction with the Crystal Reports Server XI Release 2.  My solution was to go into the Business View Manager application and fix the Data Connection object associated with the problematic Dynamic prompt by supplying a user name and password for the data connection object and setting the "Runtime Prompt Mode" property to "Never Prompt".  For some dumb reason, the Crystal Reports client will publish the data connection object to the Business Views database without any login credentials associated with it.  So after creating such a prompt in a report, you have perform this extra step before running the report the first time.  The good news is that if you reference this dynamic prompt in other reports, it will work - so you only need to fix it when it is first created.

  • Dynamic parameter with 'type-ahead' capability

    Hi,
    How do I create a dynamic parameter that will return a drop down list of over 11,000 records in alphabetic order that I can then select the value I want by starting to type in the value.  For example, in a list of cities of the world I want to select 'London' so I type in an 'L' and the list moves to the first city starting with an 'L', I then type an 'o' and the list goes to 'Lo' etc.
    At the moment only 30 values appear in the drop-down list and I can only enter the first letter.
    I want to use this value as the parent for a cascading parameter.
    Thanks, Colin

    The dynamic parameter does not have the functionality to 'type-ahead' and go to specific values in the list in that manner. The most you can do is go to values that start with a specific letter and scroll through them. This behavior is occurring by design.
    By default, Crystal Reports will only return the first 1000 unique values for a dynamic parameter. This can be changed through a registry entry.
    For information on changing the values retrieved for the dynamic parameter, you can refer to the following Business Objects Note.
    - Go to this link
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_ossnotes&query=&adv=true
    - Search for the Note: 1218588
    When using a dynamic parameter, the limit will be a combination of all the values return at each level to reach the total number of records returned. Also the more records that you return to the dynamic parameter, the longer it will take to retrieve the data from the database.

  • Dynamic parameter with unlinked table

    Post Author: martinh
    CA Forum: Data Connectivity and SQL
    Hello,
    I have 2 tables in my database. One table (table A) is for selecting the data (all kind of fields)
    The other table (table B) is only to be used to have a parameter selection (table with name, value records). These tables have no link with eachother.
    I need to have 8 parameter fields and each parameter field must pick a value from table B.
    In my recordselection (on table A) I have tests to select records depending on parameters.
    I have this working using 8 static parameters, but I have a list of 16 values.
    So that means that for each of the 8 parameters I must enter those 16 values (and also in formula-fields I have make tests; total 8x16 lines of coding)
    Therefore I wanted to use a table with the 16 values and link the 8 parameters to table B.
    The problem is that CR says that there are 2 startpoints and also I see that the data is selected several times.
    So how can I use table B only for the parameters without the need of linking this table B to table A, because there is no way to link this.
    Hope anyone can help, because I didn't fond any documentation talking about this situation.
    I'm using CR XI and CR 2008
    Thanks for your reply!
    Martin

    The dynamic parameter does not have the functionality to 'type-ahead' and go to specific values in the list in that manner. The most you can do is go to values that start with a specific letter and scroll through them. This behavior is occurring by design.
    By default, Crystal Reports will only return the first 1000 unique values for a dynamic parameter. This can be changed through a registry entry.
    For information on changing the values retrieved for the dynamic parameter, you can refer to the following Business Objects Note.
    - Go to this link
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_ossnotes&query=&adv=true
    - Search for the Note: 1218588
    When using a dynamic parameter, the limit will be a combination of all the values return at each level to reach the total number of records returned. Also the more records that you return to the dynamic parameter, the longer it will take to retrieve the data from the database.

  • Reports with many Dynamic Parameter

    Post Author: Lalit
    CA Forum: Data Connectivity and SQL
    Hi
    I created a report with 5 dynamic parameter in CR XI. There are total 6 SQL command . First one is used for the report purpose and rest is for parameter of the report. There SQL commands are not linked to each other. Performnce of the report is very slow. Data is coming fine on the report. The Command one is returning around 50000 records.
    Paramter are used in record selction to further filter the records
    Please help how i can increase the performance .
    Lalit

    Post Author: yangster
    CA Forum: Data Connectivity and SQL
    eeekwhy don't you create 5 business view objects based on each of your dynamic promptsthis way you can share these parameters in other reports instead of having them all imbedded inside a single reportyou should also be able to schedule the list of values too so they will load faster

  • Populate Parameter Dropdown with Dynamic Description

    Hello all,
    I am programming a report in Crystal Reports 2008 to run on Business Objects XI R3. I have a report that has a dynamic Parameter Field that is populated from the database when the report is opened. The value of this is a numeric key I have placed in the database tables and the description is the text displayed to the user. I use the u201CPrompt with Description Onlyu201D so the user sees only the text. When the report is run the numeric key is used for a more efficient query. However this is CR 2008 so the parameters show up un the report when it is published to InfoView. This is done so the user can use the parameter screen to either make a more finite report or go to a different type for this field (ie Water Sports, Mountain Sports,  Land Sports).
    The problem I am having is I need to keep the u201CValueu201D field the KeyID so the dynamic parameter remains numeric. The drop down in the parameters field is populated from the u201CValueu201D field not the u201CDescriptionu201D field. This means that after the user runs the report the parameter is populated with KeyIDs instead of the user friendly descriptions I created. Is there a way to tell the Parameter Dropdowns to be populated from the u201CDescriptionu201D field instead of the u201CValueu201D field?
    Thanks

    Hello Mohamed,
    Thanks for your reply, but I think I may not have made my point.
    I have the u2018Valueu2019 field filled with a number to fetch the data. I need the u2018Descriptionu2019 field to populate the drop down windows in the prompt when this is published for InfoView.
    My question is there a way to make Crystal Reports populate the drop downs with the description instead of the default?
    Please let me know if this clarifies my needs.
    Thanks
    Scott

  • Records returned with static parameter, but don't when using dynamic

    Hello,
    I am using CR Developer, Version 11.0.0.1282   (BTW, I keep seeing references to Release 1 and Release 2, and I'm not sure which my version is.)
    I have a large database (500,000 land records) and each record has a value for Management Program and for Project Name. Within each Management Program there are many Project Names.
    If I set up a static parameter for Management Program, users are able to select a single Management Program (i.e. WMA, for Wildlife Management Area) from the dropdown list. This returns all records that have WMA listed as the Management Program, which thus includes all Project Names. This works fine, but I want to return just those records that are for a single Project Name.
    So I got rid of the static parameter and instead created a dynamic parameter, where the user first selects a Management Program, and then a single Project Name.
    I think I set up the parameters correctly, and the select formula (see below) includes those parameters. When I then try to run the report, I successfully get the expected drop down boxes, where I can first pick out the Management Program I want, then the Project Names that apply just to that Management Program.
    That part seems to work fine, but no data gets returned.
    The SQL query seems fine:
    SELECT "LAND_RECORDS"."TOWNSHIP",
    "LAND_RECORDS"."TOWNSHIP_DIR",
    "LAND_RECORDS"."RANGE",
    "LAND_RECORDS"."RANGE_DIR",
    "LAND_RECORDS"."SECTION",
    "LAND_RECORDS"."FORTY_DSC",
    "LAND_RECORDS"."GOVT_LOT",
    "LAND_RECORDS"."GROSS_ACRES",
    "LAND_RECORDS"."LAND_TYPE",
    "LAND_RECORDS"."PUBLIC_USE_ADMINISTRATOR",
    "LAND_RECORDS"."PUBLIC_USE_MGMT_PROG_CODE",
    "LAND_RECORDS"."PUBLIC_USE_PROG_PROJ",
    "LAND_RECORDS"."PUBLIC_USE_PROJECT_CODE",
    "LAND_RECORDS"."SURFACE_OWNED_CODE",
    "LAND_RECORDS"."PUBLIC_USE_MGMT_PROG"
    FROM   "LNDREC"."LAND_RECORDS" "LAND_RECORDS"
    WHERE  "LAND_RECORDS"."SURFACE_OWNED_CODE"='Y' AND "LAND_RECORDS"."PUBLIC_USE_MGMT_PROG"='WILDLIFE MANAGEMENT AREA' AND "LAND_RECORDS"."PUBLIC_USE_PROG_PROJ"='AGDER'
    ORDER BY "LAND_RECORDS"."PUBLIC_USE_MGMT_PROG_CODE",
    "LAND_RECORDS"."PUBLIC_USE_PROG_PROJ"
    And here is the selection formula:
    {LAND_RECORDS.SURFACE_OWNED_CODE} = "Y" and
    {LAND_RECORDS.PUBLIC_USE_MGMT_PROG} = {?Management Program - PUBLIC_USE_MGMT_PROG} and
    {LAND_RECORDS.PUBLIC_USE_PROG_PROJ} = {?Management Program - PUBLIC_USE_PROG_PROJ}
    Can anyone tell me why no records get returned when I use the dynamic parameter, while those same records (as well as the other records for that Management Program) get returned when I use the static parameter?
    Thanks in advance for any help you can give me.

    Hi Sanjay,
    When I wrote "glitch", I was pretty sure that was more likely indicative of a glitch in my primitive SQL skills than the software itself...     
    There is indeed a unique ID# associated with each Project. The problem is that there are thousands of projects, and people in the field are much more likely to remember the project name than the 8-digit long ID#.
    However, I found a way to make it work...
    I retained my first two parameters (Management Program, and Project Name), but then added a 3rd parameter for Project Code. The use first selects the Management Program, then the Project Name, and then the project code. But the only project code that appears as an option is the single one associated with the project name, and when they click on that, only the correct results gets returned.
    That one extra mouse click seems like a small price to pay so that you don't get extraneous results returned (i.e. getting results for both ANDERSON and ANDERSON LAKES when you ONLY request ANDERSON LAKES.)
    So, problem solved...thanks again for your help.
    Jon

  • SSRS 05 snapshot with dynamic date parameter

    I want to use snapshot for a SSRS 05 report due to high volume of report data. This report uses 2 date parameter which will keep changing every month ( mmyyyy) format. I read many blogs but it seems I can not have snapshot report in dynamic date situation.
    Can someone please suggest if there is any workaround to use snapshot with dynamic date parameter . The report server version is 2005.
    Gaur

    Hi Gaur,
    In Reporting Services, the snapshot is a report that contains layout information and data that is retrieved at a specific point in time. There’s a couple of requirements in order to use a snapshot:
    Stored credentials for the data source. 
    Defaults for all Parameters.
    Based on my research, we can use snapshot with dynamic date parameter. When we select 'Render this report from a report execution snapshot’ with a schedule and Apply in Execution tab, a snapshot is created and subsequently refreshed on a schedule. When we
    render the report at a time, the report would be rendered with the latest snapshot layout information and data, then use the current parameter value to filter the snapshot report data. In this way, the current data would be different from the snapshot report
    based on the current parameter values, but we can still use snapshot with dynamic date parameter.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to get the list of values for a dynamic parameter using Web Services SDK?

    <p>I am struggling to get the list of values for a dynamic parameter of a report.</p><p>I am using Java Web Services SDK ... I tried to use PromptInfo.getLOV().getValues() method but it does not work.</p><p>First of all ... is this possible (to get the list of values for a dynamic param) using Web Services?</p><p>Second of all, if this is possible, how should I do it ... it seems it works fine when running the report from CMC. It asks for DB logon info and after that it provides a list of values.</p><p>Thx </p>

    <p>Your assumption is correct. We are trying to get the LOVs from the Crystal Report. I was not aware that this is not supported by Web Services SDK.</p><p>We used Web Services SDK to integrated the Crystal Reports in our web application. We implemented some basic actions for reports: schedule, view instances, run ad-hoc reports.</p><p>We encountered this problem when trying to run/schedule reports with dynamic parameters (a list of values from DB). We were unable to get the LOVs.</p><p>Please let me know if you can think of an alternative to look at.</p><p>Thanks a lot,</p><p>Catalin </p>

  • CR2011 Dynamic Parameter does not show list at all

    I am upgrading some Crystal Reports from CR 8.5 to 2011.  Some would be better served by using a dynamic parameter to allow the user to select the data for the parameter from the database information.  I have created a dynamic parameter on the Customer ID and set the description to be the customer name.  I have set it to handle multiple values.
    When I preview the report in the Crystal designer, I get a text box to type in but not a drop down.  To be clear, I am not talking about the LOV 1000 limit here.  There are only 50 customers in the sample file I am working with.  I tried turning the static parameter into a dynamic one, I deleted the original parameter and created a new one.
    In case it matters, the parameter is only used as part of the selection formula and if I enter a proper customer id, it will retrieve the data.  This report has about 7 tables (no stored procedures or views) and a subreport of two tables that is linked to the main report on the customer id.  The parameter is only used on the main report for record selection.  The SQL statement in the main report and subreport did need to be reset when I first opened the report in CR2011 but I did that on both.  I have verified the database and the option to verify on first refresh is checked.  The original parameter did have an imported list of about 3000 customer names.  I tried exporting the CR template to a new file and while the file size changed, the behaviour did not.
    When I create a brand new report on two of the tables, including the same customer table, and create the parameter the same way, it shows me the list properly in a dropdown at the prompt stage.
    I am not sure where to go here or what else to try.  If anyone has any suggestions, I appreciate the help. TIA, rasinc

    Thank for the reply Dell,
    I see the logic in adding the extra table and keeping it unlinked and I do know the crazy data that can come up if I use it linked to other tables or use the fields in other parts of the programming.
    However, I've now tried it several times, creating the parameter on just the name alone, with the ID alone, etc. and I still only get a text box to type into.
    I have made sure the original selection criteria
    {customer.Id} = {?Customer}
    if from the original table, not the new one, which I assume you expected me to do.
    So I decided to run the same report through CR XIR2.  When I update the Set Datasource Location, I am now getting the message
    "Invalid Argument provided.
    Details: The alias requested 'company', contains a combination of characters which is not considered to be valid"
    Company is a table containing information about the main company, not the customers.  The same message pops up for another table as well.
    Then I get a message that says:
    "Prompting failed with the following error message: 'List of Values failure: fail to get values. [Cause of error: The table company does not exist in the document.]'
    Error source: prompt.dll Error code: 0x8004380D"
    This appears to be a database access issue but I know the firewalls are not a problem because I can create a new report and get the LOV properly with the same database and same desktop computer.  I can take that report created in CR2011 and use it in CRXI also and get the proper LOV.  Is it possible I am dealing with template corruption because there were so many items imported into the static list before?

  • Why Dynamic Parameter is not working, when i create report using stored procedure ?

    Post Author: Shashi Kant
    CA Forum: General
    Hi all
    Why Dynamic Parameter is not working, when i create report XI using stored procedure ?
    Only i shaw those parameters which i used in my stored procedure, the parameter which i create dynamic using stored procedure
    is not shown to me when i referesh the report for viewing the results.
    I have used the same procedure which i mention below but can not seen the last screen which is shown in this .
    ============================================================================================
    1. Select View > Field Explorer2. Right-click on Parameter Fields and select New from the right-click menu.3. Enter u201CCustomer Nameu201D as the name for your parameter4. Under u201CList of Valuesu201D select u201CDynamicu201D5. Under the Value column, click where is says u201Cclick here to add itemu201D and select Customer Name from the drop-down list. The dialog shown now look like the one shown below in Figure 1. Click OK to return to your report design.
    Dynamic Parameter Setup6. Next, select Report > Select Expert, select the Customer Name field and click OK.7. Using the drop-down list beside select u201CIs Equal Tou201D and using the drop-down list, select your parameter field (it should be the first field). 8. Click OK to return to your report design and see the parameter dialog.The parameter dialog will appear and show you a dynamic list of values that is updated each time your run your report. It couldnu2019t be easier! In our next tutorial, we will be looking at how to use this feature to create cascading parameter fields, where the values are filtered by the preceding selection.
    Dynamic Parameters in Action
    My question is that whether dynamic parameter is working with storedprocedure or not.
    When i added one table and try to fetch records using dyanmic prameters. after that i am not be able to find the dynamic parameter option when i referesh my report.
    One more thing when i try the static parameter for my report, the option i see when i referesh the screen.
    Please reply soon , it's urgent
    Regards
    shashi kant

    Hi Kishore,
    I have tested the issue step by step by following you description, while the first issue works well in my local environment. Based on my research, this can be caused by the lookup expression or it indeed return Male value based on the logic. If you use the
    expression below, it will indeed only return the Male record. So please try to double-check the record in the two datasets and the expression in your environment:
    =lookup(first(Fields!ProgramID.Value,"DataSet1"),Fields!ProgramID.Value,Fields!Gender.Value,"DataSet2")
    As to the second issue, please try to use the following expression:
    =Count(Lookup(fields!ProgramID.value,fields!ProgramID.value,fields!Gender.value,"DataSet2"))
    Besides, if this issue still exist, in order to trouble shoot this issue more efficiently, could you please post both the .rdl  file with all the size properties to us by the following E-mail address?  It is benefit for us to do further analysis.
    E-mail: [email protected]
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • Using iWeb to publish my mobileme photo gallery -really weird bugs help plz

    I have a really weird problem and have tried searching the forums already with no luck. I'm using iWeb09 to put mobileme photo album on my website. When I initially add the widget onto my page, the widgets will show a "preview" of what pictures are i

  • Differences between ANSI SQL and Oracle 8/9

    Hallo, i'm looking for good online texts or books concerning the problem "Differences between ANSI SQL and different database implementations (ORACLE, Informix, MySQL...)" I want to check a program written in C (with ESQL) that works with an Informix

  • Drives show in disk utility, not on desktop

    A recent development. Some FW 800 drives stopped appearing.

  • Newly bought mac mini: cannot boot / strange grey 'battery' screen

    Hi all I just bought a new mac mini at the apple store in SF. Now I just arrived back in Denmark and try it on for the first time and it doesn't boot! After a few seconds a strange screen comes up which I cannot decipher. Here's how the screen looks:

  • Solution Manager for SAP BI

    I have to use solution manager for an SAP BI/BW implementation. The BW client is currently in SAPERP 2005 (ECC 6.0). Is is possible to use solution manager in the same system or should the BI/BW be implemented in NetWeaver for implementing solution m