Parameter Field Value Elimination Based on Another Parameter

I'd like to make 3 grouping parameters with static values to produce 3 drop downs in the user prompt.  The problem is, I'd like for the second drop down to eliminate the choice made from the first drop down and the third drop down to have been eliminated to only one choice.  Is there a way to edit the parameter field values from the formula workshop?...Or maybe this would be better handled in the group selection formula area.  Any help would be very much appreciated.

Can't be done unless you use one of the 3rd-party Crystal viewers listed at http://kenhamady.com/bookmarks.html
A simpler approach is to have a record selection formula that causes no records to be retrieved if 2 parameters have the same selected value.  You can then unsuppress a text object telling the user their parameter selections can't be the same.

Similar Messages

  • How to use a parameter field value as a substring in a "like" statement?

    Hi all,
    I'm trying to use a parameter field in a Record selection formula where the parameter field value would be a substring of the data stored in the field.
    My parameter field (SlctResearcher) is constructed as follows:
    Type: string
    List of Values: static
    Value Field: (Reports) RptAuthors
    (in Value Options) Allow custom values?: True
    {Reports.PubDate} in DateTime (2009, 04, 01, 00, 00, 00) to DateTime (2010, 03, 31, 23, 59, 59) and
    {Reports.RptAuthors} like "*{?SlctResearcher}*"
    When I hit F5 to generate the data, I get no results (and the parameter prompt field does not even come up...)
    If I modify the formula to put a hard-coded string, like
    "*Jones*"
    after the 'like', I get results (all the reports where "Jones" is a substring in the RptAuthors string.) If I modify the formula to just use the parameter field without the quotes/stars like:
    {Reports.PubDate} in DateTime (2009, 04, 01, 00, 00, 00) to DateTime (2010, 03, 31, 23, 59, 59) and
    {Reports.RptAuthors} like {?SlctResearcher}
    I do get the parameter prompt field, but still no results even if I put in a valid substring value (since it is not searching for a substring anymore...)
    How can I do this?
    Thanks,
    Will

    1st thing... Make a copy of your report before doing anything!!!
    To use a SQL Command, you'll want to open the Database Expert and look at the Current Connections. Expand the data source and the 1st option you see is the Add Command option.
    To find the SQL That CR is currently using, choose Database from the menu bar and select Show SQL Query...
    You can copy this and paste it directly into the command window. (If you you can write your own SQL you don't need copy CR's, it's just an option.)
    You'll also want to take not of any parameters that you have, you'll need to add them the the Parameter List of the command as well... be sure to spell them EXACTLY as they are in the design pane.
    Anyway, once the SQL statement is in the Command window you'll be able to alter the WHERE clause to use the wild cards.
    For future reference... What type of database are you reporting against???
    Jason

  • Value for a parameter based on another parameter value

    Hi all,
    i am using report 6i and 10g db.
    I have to create a report based on some parameter values. For example
    Two parameter named as P_emp_code and P_emp_name
    In the first parameter p_emp_code has list of values like empcode emp_full_name ie like 0002108 Vanitha Lanet Mendez
    when user select P_emp_code i want to display the fullname in p_emp_name .
    I tried as follows in list of values
    select emp_fullname from emp_master where emp_code=:p_emp_code
    then getting error bind variable cannot be used
    Please suggest a way .
    Thanks
    Rincy

    Hello,
    The thing you are asking for set and editing the reports parameter form's value. Then i don't think you can do this by using the report parameter form.
    But there are two alternatives for this task.
    1. Create one form using form builder and pass the parameter and run the report from there. So, you can use the code as you showed in your first post.
    2. Why don't you make this Title setting automatically? I Mean using the gender column (with decode/case condition) of same table.
    -Ammad

  • Parameter Field Value returns "no records"

    I am using Crystal 11 and am new to Crystal but not to other Reportwriters.  I have a Crystal report that has 2 parameter fields, one is "Enter Date" that prompts for the start and end date, the other "Select Items" prompts for the supply Item Numbers to be included in the report.  In the "Edit Parameter: Select Items:" edit/create parameter dialog, the Select Item parameter has "Allow Multiple values" and "Allow discrete values" set to true. The report runs fine and returns any items entered in the "Select Items" prompt that has usage during the start & end date.  My problem is ... if the entered Item Number for the Select Items parameter returns no records, I cannot report that Item Number as having zero usage.  I cannot find a way at the time of report running to identify and report the "not found" items.  I would also like to report the Start and End Dates parameters requested, but cannot, the Enter Date parameter returns an empty parameter field across the whole report.  I'm sure other users have had this problem of reporting the requested parameter values.   Need assistance.  

    Jeff's answer is one way to do it.  There are others:
    If you want the items with no data interspersed with the other items (say, in item number order), then you'd change the report to use your item master table and do a left join from that to the usage data.  If a field from the usage table is null, then there was no usage, and you can condition a message based on that.
    Or, if your parameter selects item numbers without some type of "ALL" option, then you can use arrays to keep track of which if the selected items printed.  Then in the report footer, compare the list of items reported to the parameter items, and show which item numbers had no usage.  (This might run a tad faster than the separate subreport that Jeff suggested - but maybe not...)
    HTH,
    Carl

  • How to ignorenon-numeric parameter field value

    Post Author: burhan.survery
    CA Forum: General
    I am passing a parameter to a subreport. While running the report, I get an error which says that the parameter field is a non-numeric value. I'm not sure why since, the parameter field should be passing a quantity. Is there a way for me to check if the parameter field is passing a non-numeric value and if so, ignore it so  that the report continues.
    thanks.
    b

    Post Author: bettername
    CA Forum: General
    Strange! I would have imagined from the fact that it gave you the original "non-numeric" error that it must be passing a string (how can a number be non-numeric!), but that's clearly not the case.  I'm stumped...  What does Crystal identify the 'source' field as (do a 'browse data' or 'show field types')? I assume that the parameter datatype is the same as the source field? 
    What's your data source (SQL Server, DB2 etc...)?  Is there a way you can validate everything is numeric outside of Crystal?

  • Report parameter field value has a single quote. need to escape before pass

    Report has a parameter whose value might have a single quote in it. If I pass that value directly into the SQL Command... like
    where ... user_name = {?parm_user_name}...
    which would translate to
    user_name='O'Donnel Honda'
    I am getting an error... so would like to convert this parameter value into 'O''Donnel Honda' before passing into the query.
    I created a formula called parse_user_name with following:
    Replace ({?parm_user_name}, "'", "''")
    And used in the query like
    where ... user_name = {@parse_user_name}...
    I am getting an error like invalid SQL92 character...

    I think you should use the condition like this
    where ... user_name = '{?parm_user_name}'
    keep the parameter in single quote at the command level itself.
    Now use the same formula like
    replace({?Parameter},"'","''")
    This works only if the parameter is a single value parameter but not multi value parameter.
    Regards,
    Raghavendra

  • Passing field values to form from another form

    Hi,
    I have multiple detail table for a master table. The master table is project table and the details tables are all related to the project table. In the portal forms we cannot have a form based on multiple child tables. So I am trying to enter one detail table at a time. I have created a master-detail table based on project table and a detail table (cost table). After I enter data in this MD form I want to carry the projectid to another form based on another detail table (resource table) on the next page. I want to navigate to this next form by clicking on a next button after I have entered data on the previous MD form.
    The projectid is a hidden field in the first MD form and is generated by a database sequence. I understood that there is many ways to send field values to a form:-
    1. By creating a moduleid link on the next button. This link will have the projectid value
    2. By calling the form from a PL/SQL procedure on the CALL/GO of the first MD form.
    I am not sure how to get the 'projectid' value generated from the sequence and pass it to the link or a procedure. Will the projectid value be stored in the session ? How do I get it ?
    Is the above way of entering multiple detail tables feasable ? Please advice.

    Hi,
    I have multiple detail table for a master table. The master table is project table and the details tables are all related to the project table. In the portal forms we cannot have a form based on multiple child tables. So I am trying to enter one detail table at a time. I have created a master-detail table based on project table and a detail table (cost table). After I enter data in this MD form I want to carry the projectid to another form based on another detail table (resource table) on the next page. I want to navigate to this next form by clicking on a next button after I have entered data on the previous MD form.
    The projectid is a hidden field in the first MD form and is generated by a database sequence. I understood that there is many ways to send field values to a form:-
    1. By creating a moduleid link on the next button. This link will have the projectid value
    2. By calling the form from a PL/SQL procedure on the CALL/GO of the first MD form.
    I am not sure how to get the 'projectid' value generated from the sequence and pass it to the link or a procedure. Will the projectid value be stored in the session ? How do I get it ?
    Is the above way of entering multiple detail tables feasable ? Please advice.

  • URGENT:Making a poplist value freezed based on another poplist value

    Hi,
    I have a requirement to make a poplist value freezed(should get disabled so that no further change can be done) based on another poplist value.
    for ex : poplist 1 : A,B.
    poplist2: yes,no
    if A is selected, yes,no should appear in the poplist2.
    if B is selected, only YEs should appear in the poplist2 and it should get greyed out(disabled for further changing).
    Please help.
    Thanks,
    Veena.
    Edited by: Veena. on Dec 31, 2012 4:00 AM

    Veena,
    there is nothing urgent on this forum!
    You know that you should provide your jdev version so that we can help you solve your problem.
    Next it would help if you provide the code (of the page) so that we see how you setup the 'poplist' (whatever that exactly is).
    If you mean a selectOnceChioce you can implement a valuechangeListener on poplist A and depending on the new value set the value of poplist B to yes and disable it.
    Timo

  • Pass parameter field value to a formula

    Hi ,
    I want to pass a parameter value to a formula. I have a formula FX rate and want the user to be prompted to enter a fx rate and that value to be passed to the FX formula.
    Thanks!
    Romeo

    Yes, it is.  Similarly to my last post.
    Do something like this to the formula that has Fx Calculation.
    ({?FX Rate} * {another.field})/{some.other.field}
    Whatever value the user inserts to {?FX Rate} will be populated or passed to the formula seen above.
    I hope that makes sense.
    Regards,
    Zack H.

  • How do I validate one field's length based on another field's selection?

    I am creating a form for our offices where I need to check one field for length of a serial number based on the answer to a previous field's selection.  Depending on the product selection, the serial number has two different lengths.  Both fields are marked as required, but I want to make sure that we receive the full serial number for our product.  Previous forms were done on paper and instructions were for the last 4 digits only which now we want the full serial number.  One product has a 12 digit number and the other is 6.
    I'm guessing that I need a validation script in the serial number field, but I am not a JavaScript coder and haven't found the right thing when searching.  Any help would be great!
    Thanks!

    Never trust your users to follow what you expect them to do... That often leads to mistakes and problems later on.
    I would reset the s/n field when a selection is made in the drop-down. To do so set the drop-down field to commit the selected value immediately and add code as its custom validation script:
    this.getField("Serial Number").value = "";
    To validate the s/n field you can use something like this as that field's custom validation script (of course, you'll need to adjust the field names and values to match the actual ones in your file):
    event.rc = true;
    if (event.value) {
         var selection = this.getField("Dropdown1").valueAsString;
         if (selection=="1" && event.value.length!=6) {
              app.alert("Error! The s/n must be 6 digits long.");
              event.rc = false;
         if (selection=="2" && event.value.length!=12) {
              app.alert("Error! The s/n must be 12 digits long.");
              event.rc = false;

  • Sorting a field in mapping based on another

    Hi,
    I have a strucutre like the following...
    SOURCE
    <node>
        <aa>B_test</aa>
        <bb>iu</bb>
        <cc></cc>
    </node>
    <node>
        <aa>A_test2</aa>
        <bb>NO</bb>
        <cc>resource</cc>
    </node>
    <node>
        <aa>C_test3</aa>
        <bb>No</bb>
        <cc>resource</cc>
    </node>
    after mapping, my message is like this......
    TARGET
    <node>
        <aa>A_test2</aa>
        <bb>NO</bb>
      *bold*   <cc>NIMOY</cc>
    </node>
    <node>
        <aa>B_test</aa>
        <bb>iu</bb>
        *bold* <cc>resource</cc>
    </node>
    <node>
        <aa>C_test3</aa>
        <bb>No</bb>
        <cc>resource</cc>
    </node>
    but it should be like this
    <node>
        <aa>A_test2</aa>
        <bb>NO</bb>
    *bold*     <cc>resource</cc>
    </node>
    <node>
        <aa>B_test</aa>
        <bb>iu</bb>
    *bold*     <cc>NIMOY</cc>
    </node>
    <node>
        <aa>C_test3</aa>
        <bb>No</bb>
        <cc>resource</cc>
    </node>
    I have to check <bb> for the value "iu". This is no problem. If it contains "iu" then map the constant NIMOY to <cc>. Then sort the <node> element in ascending order based on <aa>. The problem is that I cannot get <cc> to sort. It just stays in the same order. I've been trying to use combinations of SortByKey and FormatByExample.  The fields <aa> and <bb> will sort but not <cc>.Any ideas??

    Damien,
    I hope the below logic helps, if not reply back.
    Mapping
    http://www.flickr.com/photos/8764045@N06/2267740258/sizes/o/
    http://www.flickr.com/photos/8764045@N06/2267740260/sizes/o/
    http://www.flickr.com/photos/8764045@N06/2267740262/sizes/o/
    http://www.flickr.com/photos/8764045@N06/2267740266/sizes/o/
    Results
    http://www.flickr.com/photos/8764045@N06/2267740270/sizes/o/
    raj.

  • Running total field which evaluates based on another running total field

    I'm figuring out how to use running totals in my reports.
    For each ProductCategory, there're many Products.
    For each Product, there're different ProductVersions.
    For each ProductVersion, it takes different Parts.
    My report should look like this
    Group1: ProductCategory (e.g. Catergory 1)
    Group2: Product (e.g. Product1)
    Group3: ProductVersion 1
    Details: Version 1: 3 * Part1 + 2 * Part2 + 4 * Part3
    GpFooter3: Total of 9 parts used
    Group3: ProductVersion 2
         Details: Version 2: 1 * Part1 + 2 * Part2 + 3 * Part3
    GpFooter3: Total of 6 parts used
    Group3: ProductVersion 3
         Details: Version 3: 2 * Part1 + 2 * Part2 + 3* Part3
    GpFooter3: Total of 7 parts used
    I've a running total at GpFooter3 to count number of parts, reset on change of Group3.
    But for each Product, I'm only interested in the details of the most recent version, that is the version with the greatest version number. So I hide all details and GpFooter3, and want to show
    GpFooter2: Product1, ProductVersion3, 7 parts
    How can I make a running total at GpFooter2 to select the ProductVersion which has the greatest version number among the Group "Product1"? The problem is, the number of versions for each Prodcut is not fixed, so I can't create a running total which evaluates on a particular version number. I tried to use a running total to obtain the maximum version number per Product, but I can't use this in the running total at GpFooter2 as a evaluation formula.
    Your help is much appreciated. Thank you very much.

    Create formula fields that are placed in Group Footer 3 that store the value(s) in global variables (basic syntax):
    global maxVersion as number
    global numParts as number
    maxVersion = {version}
    numParts = count({part}, {version})  ' Assuming grouped on {version}
    formula = ""
    Then use other formula fields to retrieve the values:
    global maxVersion as number
    formula = maxVersion
    And similarly for numParts...
    HTH,
    Carl

  • How do I set a NULL value for the parameter field

    Hi
    I've another question. I'm going to set single values for parameter fields.
    // e.g. set today for StartDate parameter field
    fc.setCurrentValue("", "StartDate", new Date());
    It should be possible to set a NULL value for date parameter fields.
    fc.setCurrentValue("", "StartDate", (Date)null);
    But this do not work. How do I set a NULL value correctly?
    Thank you in advance.
    Best regards,
    Thomas

    First question - is it a stored procedure parameter?
    You can't set a regular parameter field value to a null value.
    There was an issue with old version of the JRC, where it was allowing null to go through, but had unexpected behavior at times.
    Sincerely,
    Ted Ueda

  • Parameter default value issue

    Hi, I am using SQL Server 2008 R2 database & SSDT (Visual Studio 2012) to develop reports. I am trying to modify an existing report after the upgrade and something seems not right especially with report parameter default values. I am using the expression
    below and for the default value its always returning the false part. When I put this expression in a textbox to test results it works as expected. Thanks in advance.
    =IIf(Parameters!Area.Value = "Test Area", "1", "2")
    Ione

    Hi Lone,
    Per my understanding you are experiencing the issue that the report parameter’s default values not work, the default values for this parameter is using the expression based on another parameter, but now it not always display the correct value, right?
    I have tested on my local environment and can reproduce the issue, the issue can be caused by you have not specified available values for this parameter base on their parent parameter(Area), so the parameters will not refresh when the value of the first
    parameter has changed. In Reporting Services, if we want to create cascading parameters, we should specify both available values and defaults values for child parameters.
    Please specify the Available values as below, using both the expression in the Label and Value:
    =IIf(Parameters!Area.Value = "Test Area", "1", "2")
    You also use an alternative method to create this parameter without using the expression:
    Create an Dataset using below query to get the Parameter(“1”,”2”):
    select distinct (CASE WHEN (@Area) =' Test Area' THEN '1' ELSE '2' END) AS  FieldName  from TableName.
    In  the Second Param(Param2) In both the “Available Values” and “Default Values” select the “Get values from a query”.
    For more information about how to create cascading parameters, please see MSDN document which tell us how to do it steps by steps.
    http://msdn.microsoft.com/en-us/library/aa337498(v=sql.105).aspx.
    If your problem still exists, please feel free to ask.
    Regards
    Vicky Liu

  • How to Hide the Parameter field at run time....

    Hi,
    I have a parameter field which behaves differently depending on the User logged in.
    It has the LOV coming from following SQL.
    SELECT customer_name FROM Cust_mast;
    If the user = 'INTERNAL' then the Where clause will be
    WHERE cust_id in('DELL', 'SBC', 'BANK')
    Else there will be no WHERE clause or the parameter field
    should be hidden in the parameter form.
    So my questions are:
    1) How to hide the Parameter field during Run time?
    OR OR OR
    2) How to change the LOV select statement during Run time?
    Thanks.
    Ram.

    Hi Ram,
    Is there any way to play with the sql query SELECT using DECODE ?I'm not sure of this part, maybe someone else can suggest a way.
    However, what you want can be done in 2 other ways:
    1. Build 2 reports. Both reports will just be duplicates of each other, only difference being that the 'LoV where clause' will be different. Now you can fire the appropriate report in many ways. For example, if the customer is alreay logged inside your custom application, and therefore you already know whether the user is internal of external, you can design your button or link which launches the report to contain logic such that one of the 2 reports is fired depending on who the user is.
    1. Use a JSP parameter form, not a paper parameter form In this case, just build an HTML parameter form in the web source of your report. Use Java logic to populate the LoV drop-down list. When you have to launch the final report, just launch the paper-layout of the report. For example (you will have to modify this):
    <form action="http://machine:port/reports/rwservlet?report=ParamForm.jsp+..." name="First" method="post">
    <select name="selected_customer" onChange="First.submit()" >
    <option value="">Choose a Customer Name
    <rw:foreach id="G_cust_id" src="G_cust_id">
         <rw:getValue id="myCustId" src="CUSTOMER_ID"/>
    <rw:getValue id="myCustName" src="CUSTOMER_NAME"/>
    <option value="<%=myCustId%>"><%=myCustName%>
    </rw:foreach>
    </select>
    </form>
    In the code above, you will have to make sure that your report's data model defines 2 CUSTOMER_ID's (like CUSTOMER_ID_INT and CUSTOMER_ID_EXT). These 2 will be internal and external Cust ID's. Use Java logic to show one of them.
    Navneet.

Maybe you are looking for

  • Questions about the future directions of InfoPath and Microsoft Access

    Because I have been confused about the future directions of InfoPath and Access, I wrote a short blog post, which I have pasted below.  My question is, can Microsoft provide some more guidance on Access vs InfoPath?  If Access is indeed the the futur

  • HT204409 WI FI won't connect after upgrade to IOS 7.1

    I upgraded to 7.1.  Now my phone connects to my Western Digital MyNet900 but will not go to internet.  Have tried WPA and WPA\WPA2 and WPA2 (personal) encryption but nothing works.  WMM is enabled.  I have an Amped Wireless access point AP300 set up

  • Problem in Authenticating Clients using SSL certificates in EP 7.0

    Hi all, Our team is configuring client authentication using ssl certificates to Enterprise Portal 7.0. We have exhausted our search on SDN and have also brought SAP on board to resolve this issue. We have completed our configuration as defined in fol

  • Upgrade CRM4.0 to CRM7.0

    Hi, we are planning a CRM upgrade from 4.0 to 7.0 and we are trying to get the picture what it would require. If someone could give some general answers or recommend suitable documentation for the below it would be most appreciated! 1. We use for exa

  • Send email weirdness (PHP)

    I've set up an web form on a site, which works fine, except that my client is getting emails through OK, but apparently from my email address rather than the address of the person sending them (or at least the email address they enter into the email