Dynamically populated parameter clears previously entered parameters

Software: Crystal Reports XI with MS SQL Server 2008
I've created a report that asks for three parameters, 2 dates, and a string which is dynamically populated. The report has two tables added in the database expert.
The first table is a command object which passes the two date parameters to a stored procedure:
exec sp_MyStoredProcedure {?startdate},{?enddate}
The second table is a stored procedure object used to populate the string parameter {?_users}. The criteria for the string parameter are:
Prompt with Description only: False
Allow multiple values: True
Allow discrete values: True
Allow range values: False
This stored procedure object requires no parameters, and was originally a view in the database, but it the same problem occurs whether i dynamically populate the string parameter options from either a view or a stored procedure. I'd like to go back to using a view, as i do not need to pass any kind of parameters to the stored procedure
The string parameter is used for defining the record selection formula:
IF {Command.user_name} in {?_users} THEN true ELSE false.
The two tables are not linked in the database expert, but linking them does not seem to solve the problem I am having with this report, the problem being this:
No matter which order I set the  parameters, it always first displays a form showing only the prompts for the date values. After entering these, it then shows a form prompting for the date values again (the previously selected date information now cleared), along with the list of users from which to select. On this 2nd form, the parameters are displayed in the order I set using the field explorer option presented when I right click on the Paramter Fields heading. After entering the date parameter values a 2nd time, and selecting the users from the  dynamically generated list, the report performs as intended.
Edited by: Duraplex on Nov 12, 2010 6:26 PM
Edited by: Duraplex on Nov 12, 2010 6:57 PM - After contacting the tech dept of my employer, they are applying a service pack update to my installation, I am hoping this resolves the issue. Will post an update as soon as I know more.
Edited by: Duraplex on Nov 12, 2010 7:35 PM - After applying SP4 to my installation, the problem persists. I did note however that removing the string parameter and record selection formula, and then recreating them, does somewhat solve the issue temporarily - i still am presented with two forms, but the second form doesn't clear the previously entered date parameters. However,  once i save the report, and reload it, the problem manifests again and the date parameters are cleared when presented on the 2nd form. Has anyone else encountered a similar problem?
Edited by: Duraplex on Nov 15, 2010 8:38 PM - Problem resolved by upgrading from Release 1 to Release 2.

Hi,
Once record status gets change for block you can not populate/repopulate the list item. Keep those list items as non-database item with different names and create different items as database orignal items. Than assign the values in WHEN-LIST-CHANGE trigger to the actual database items.
-Ammad

Similar Messages

  • How to clear previously entered keywords in HUD in one fell swoop?

    Hi,
    Is there an alternative to hunting and pecking (AND MISSING) every previously checked box - and clearing all of them with one click?
    Thanks a lot,
    Raphael

    Question: does it also clear non-keyword selections? How do you clear those?
    You are welcome, Raphael. For non-keyword rules uncheck the checkmark to the left, or delete the rule completely by pressing the "-" sign to the right of the rule. You can add a it back by pressing the "+" that will appear.

  • Date parameter values cleared when dynamically populating string parameter

    Software: Crystal Reports XI Release 1 with SP4, with MS SQL Server 2008
    I've created a report that asks for three parameters, 2 dates, and a string which is dynamically populated. The report has two tables added in the database expert.
    The first table in the database expert is a command object which passes the two date parameters to a stored procedure:
    exec sp_MyStoredProcedure {?startdate},{?enddate}
    The second table in the database expert is a stored procedure object used to populate the string parameter {?_users}. The criteria for the string parameter are:
    Prompt with Description only: False
    Allow multiple values: True
    Allow discrete values: True
    Allow range values: False
    This stored procedure object requires nothing to be passed, it was originally a view in the database, but the same problem occurs whether i dynamically populate the string parameter options from either a view or a stored procedure.
    The string parameter is used for defining the record selection formula:
    IF {Command.user_name} in {?_users} THEN true ELSE false.
    The two table objects are not linked in the database expert, but linking them does not seem to solve the problem I am having with this report, the problem being this:
    No matter which order I set the parameters, it always first displays a form showing only the prompts for the date values. After entering these, it then shows a form prompting for the date values again (the previously selected date information now cleared), along with the list of users from which to select. On this 2nd form, the parameters are displayed in the order I set using the field explorer option presented when I right click on the Paramter Fields heading. After entering the date parameter values a 2nd time, and selecting the users from the dynamically generated list, the report performs as intended. After subsequently running the report  (prompting for new parameter values by pressing F5),  it does not clear the date parameters on the 2nd form's appearance.
    What I need is to be able to enter in these values the first time around, without having the date parameters cleared. Am i going about this incorrectly, or is this a bug?

    What you are experiencing is not a bug... Passing a multi-valued parameter to a Command or SP is not supported in any version of CR prior to CR 2008.
    Your options are #1) Upgrade to CR 2008 or #2) Jump through the necessary hoops to make it work in CR XI
    Check out this link...[SQL Command Parameter - Multiple Value|Re: SQL Command Parameter - Multiple Value]
    It has some good examples a good step by step.
    HTH,
    Jason

  • Export Report to PDF after user has entered parameters

    Hi All,
    I have a problem exporting a report to PDF using "ReportExportControl" after a user has entered parameters, instead of showing the download prompt, it displays the report using the parameters as if it was using "CrystalReportViewer"
    If I program the input fields using "ParameterFieldController" then the exporter works as expected.
    Is there anything in particular needed in order to export a report with user inputted parameters?
    Thanks in advance.
    Michael

    Hi Ted, thanks for your reply,
    What I am seeing at the moment is as follows
    The report requires parameters from the user in order to generate the report, and a webpage asking the user to inputs is shown, the same one that is shown by "CrystalReportViewer" function, once the user has inputted the parameters they click the "OK" button and the report generates on screen, using the parameters entered, behaving like "CrystalReportViewer" function, what I need is once the user click "OK" it will prompt for download as attachment, which is not happening.
    For your suggestion, I already have that coded and its still not working, Please find my code attached
    // Create a exporter object
    ReportExportControl exportControl = new ReportExportControl();
    exportControl.setReportSource(clientDoc.getReportSource());
    // Exporter Options
    ExportOptions exportOptions = new ExportOptions();
    exportControl.setExportOptions(exportOptions);
    exportControl.setExportAsAttachment(true);
    exportOptions.setExportFormatType(ReportExportFormat.PDF);
    // Process the http request to export the report
    exportControl.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
    // Dispose of the exporter object
    exportControl.dispose();
    with the above code the report will display on screen, but if i include this before the code
    //Use the ParameterFieldController to pass parameter values to the report
    ParameterFieldController paramController;
    paramController = clientDoc.getDataDefController().getParameterFieldController();
    paramController.setCurrentValue("", "Parameter name", Val);
    the report doesnt show the input screen and generates as attachment
    Hope this makes my situation abit clearer
    Thanks and regards
    Michael

  • DropDown by index not clearing previous values

    Dropdown by index issue.
    I am having a problem with my dropdown not clearing previous entries. 
    I have a webdynpro that has two views, main and appraisal.  I can enter the appraisal view from the main.  The appraisal view contains a drop down. At this point, I the dropdown appears to work correctly.  However, if I then enter a second appraisal, the drop down displays the value from the previous entry.  I tried clearing out the drop down in wddomodifyview, but that just cleared out the actual line of the previous selection in the drop down, so I removed that code.
    Here is what I have done so far.
    Under Context in the appraisal view, I have created a node named DD1_1 which contains the attributes rating and rtext.
    I have created a Supply Function attached to it called DD_MAPPING1_1, which contains the following code:
    method DD_MAPPING1_1 .
    * create local data variable to access context information
      Data: context_node type ref to if_wd_context_node.
    * create table based on context structure
      Data: it_rating type STANDARD TABLE OF if_appraisal=>element_DD1_1,
            wa_rating like line of it_rating.
      clear wa_rating.
      wa_rating-rating = ' '. wa_rating-rtext = ' '.
      append wa_rating to it_rating.
      wa_rating-rating = '1'. wa_rating-rtext = 'Below Expectations'.
      append wa_rating to it_rating.
      wa_rating-rating = '2'. wa_rating-rtext = 'Met Expectations (low)'.
      append wa_rating to it_rating.
      wa_rating-rating = '3'. wa_rating-rtext = 'Met Expectations (medium)'.
      append wa_rating to it_rating.
      wa_rating-rating = '4'. wa_rating-rtext = 'Met Expectations (high)'.
      append wa_rating to it_rating.
      wa_rating-rating = '5'. wa_rating-rtext = 'Exceeded Expectations'.
      append wa_rating to it_rating.
      context_node = wd_context->get_child_node( name = 'DD1_1').
      context_node->BIND_TABLE( it_rating ).
    endmethod.
    I feel I am missing something, but seeing this is my first time attempting a dropdown, I am not certain what.
    Any assistance would be appreciated.

    I have tried this code in the inbound plug handler:
      DATA lo_nd_dd1_1 TYPE REF TO if_wd_context_node.
      DATA lo_el_dd1_1 TYPE REF TO if_wd_context_element.
    * navigate from <CONTEXT> to <DD1_1> via lead selection
      lo_nd_dd1_1 = wd_context->get_child_node( name = wd_this->wdctx_dd1_1 ).
    * get element via lead selection
      lo_el_dd1_1 = lo_nd_dd1_1->get_element( ).
      clear lo_el_dd1_1.
      lo_nd_dd1_1->set_lead_selection(
        element = lo_el_dd1_1
    and the program is bombing out with the message
    Invalid index 0 when setting lead selection; context node: APPRAISAL.1.DD1_1
    Should I be using set_lead_selection_index?
    Thank you for all your help.
    Edited by: Ed Left on May 19, 2010 5:25 PM

  • Dynamically populating List box

    Hello Everyone:
    I need to create a JSP with two combo boxes and submit button.
    Where the first combo box will be updated from database - which is simple.
    but depending on the selection of the first box the second box should be populated and should be able to make multiple selections in it.
    and in the same jsp page should be able to display the results, of what I added by submiting the previous form.
    Please can somebody help me witha sample.
    Thanks
    ASB

    Dear user,
    If you get any response for the asked question on Dynamically populating List box from anybody please forward the reply to the following e-mail id.
    [email protected]
    --SUBIR                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Process chains to allow parameter to be entered.

    Hi All,
    I am new to process chains. How to create a process chains where "PROCESS CHAIN NEEDS TO ALLOW A PARAMETER TO BE ENTERED - DATE(same as in report)" in 3.5v. Parameters to be entered in process chains, Please provide detailed steps to create.
    Thanks,
    Jaswantha

    Hi,
    Process chain triggers with the help of variables, events etc... you need to create a variant for each process. For example to trigger an process chain you need to create an start variant where you can mention the date and time to trigger the process chain.
    This is just an example. Go through with below link to learn it in detail.
    http://help.sap.com/saphelp_nw70/helpdata/en/8f/c08b3baaa59649e10000000a11402f/frameset.htm
    Hope it helps.
    Mayank

  • 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

  • Users cannot enter parameters in CRM Custom Reports

    Need assistance:
    Out of 200+ users of our CRM deployment, I have two end users who cannot enter parameters into the parameter fields on a report.  The fields appear when the report is selected from the reports list, however the fields are not accessible to these
    two users.  No data can be entered in them, nor can the combo boxes be dropped down to select from.  No other users are encountering this issue on the same report, including me.  It would seem to be a security or permissions issue, but I have
    verified that these users have identical permissions to other users who can populate parameters on this report.
    Please advise, I am happy to provide any other necessary info needed to identify the issue
    EG

    Found a solution. Users needed to change from https to http to force the report param fields to be accessible. This is not the ultimate solution, but is a work around for now. Any other suggestions would be appreciated

  • LM13: Verification field not cleared after [Enter] key

    Hi Experts,
    I'm facing the issue as stated in the OSS note 916654 - LM13: Verification field not cleared after [Enter] key. My current system is ECC, that is why the OSS is already applied to the ECC version. But the problem is, i still faced the problem stated in the OSS.
    Symptom
    In customizing:
    - You have defined [ENTER] in destination screen 302 to SAVE items.
    - You want to verify the destination bin information.
    You use 'Confirm Transfer Order Clustered' RF transaction LM13.
    You scan several SUs and press enter.
    You press [F4-Next pushbutton] to confirm the associated TO(s).
    In the destination screen 302, you scan the verification value for the first item and press [ENTER] key.
    ==> The item is confirmed correctly but when the system proposes the next item, the verification value of the first item is displayed.
    Anyone know how to fix this issue? Pls help.
    thanks
    Hooi Fung

    Hi,
    For example itab-matnr is your screen field
    in PAI
      field: itab-matnr,
             module check_matnr_0700.
    module check_matnr_0700 input.
      move itab_matnr to v_matnr.
    endmodule.
    in PBO.
    move v_matnr to itab-matnr.

  • Hi I'm running Addressbook and cannot clear previous entry easily when searching my data base of around 5,000 contacts.    I prefer to view in All contacts on a double page spread with details on the right page.  Searching doesn't seem to work correctly i

    Hi I'm running Addressbook and cannot clear previous entry easily when searching my data base of around 5,000 contacts. 
    I prefer to view in All contacts on a double page spread with details on the right page.  Searching doesn't seem to work correctly in this view.
    It's always the second search that is problematic.
    I've tried typing over and all it seems to do is confine the search to the the entries that have come up for the previous search.
    I've tried to use the x to clear the previous entry and then type the next search, same problem.  The only way seems to be to move from "All Contacts" to "Groups".  Then the searched name appears and I can return to All Contacts to see full details.
    Surely three key press' are not the way it's supposed to work?
    FYI
    Processor  2.7 GHz Intel Core i7
    Memory  8 GB 1333 MHz DDR3
    Graphics  Intel HD Graphics 3000 512 MB
    Software  Mac OS X Lion 10.7.3 (11D50d)
    Address book Version 6.1 (1083)
    MacBook Pro, Mac OS X (10.7.1), 8Mb RAM 2.7Ghz i7

    AddressBook experts are here:
    https://discussions.apple.com/community/mac_os/mac_os_x_v10.7_lion#/?tagSet=1386

  • How to disable the previously entered user ID's that automatically appear. For example ; when logging into email , first letter of user ID promts the previously used email user IDs... Want to disable this feature---How can ot be done ?

    Question
    How to disable the previously entered user ID's that automatically appear. For example ; when logging into email , first letter of user ID prompts the previously used email user IDs... Want to disable this feature---How can it be done ?

    *Click the (empty) input field on the web page to open the drop down list
    *Highlight an entry in the drop down list
    *Press the Delete key (on Mac: Shift+Delete) to remove it.
    *http://kb.mozillazine.org/Deleting_autocomplete_entries
    * Tools > Options > Security: Passwords: "Saved Passwords" > "Show Passwords"
    * Tools > Options > Privacy > History: "Remember search and form history"
    * https://support.mozilla.com/kb/Remembering+passwords
    * https://support.mozilla.com/kb/Form+autocomplete

  • Note 916654 - LM13: Verification field not cleared after [Enter] key

    Hi Experts,
    I'm facing the issue as stated in the OSS note 916654 - LM13: Verification field not cleared after [Enter] key. My current system is ECC, that is why the OSS is already applied to the ECC version. But the problem is, i still faced the problem stated in the OSS.
    Symptom
    In customizing:
    - You have defined [ENTER] in destination screen 302 to SAVE items.
    - You want to verify the destination bin information.
    You use 'Confirm Transfer Order Clustered' RF transaction LM13.
    You scan several SUs and press enter.
    You press [F4-Next pushbutton] to confirm the associated TO(s).
    In the destination screen 302, you scan the verification value for the first item and press [ENTER] key.
    ==> The item is confirmed correctly but when the system proposes the next item, the verification value of the first item is displayed.
    Anyone know how to fix this issue? Pls help.
    thanks
    Hooi Fung

    Thanks a lot for your prompt answer. Well yes if i clear in the PBO the value gets cleared, but then i wanted to get the next records value into the value field, well the problem got solved in a much easier way i put everything into one chain endchain statement.

  • How to use Dynamic cascading parameter in crystal Report XI ?

    Hi,
    I want to use Dynamic cascading parameter in crystal Report XI which is to be viewed through the infoview without using the Business View.Is it possible?
    I could implemented Dynamic cascading parameter using the CR XI developer without using Business View, but cannot view the report when uploaded it to BOXI, through infoview.
    Please suggest..
    Thanks in advance..
    Rajneesh

    In the crystal reports field explorer>right click on parameter field>create new-->name the parameter field and select the type as dynamic. Now in the value field click the row and add the database field also add another field below that by clicking on the next row so..on. The order should be like this parent field first and then child field next...... Also click on the last column to add parmater for each level.
    Regards,
    Raghavendra

  • Dynamically populating form -

    I need to make a dynamically populating form - I cannot find the instruction - is there a video on adobe tv? Please help me - I am desperate. Thanks a lot! K_S_

    Hi..
    I think you can do it with ADF .When you click field1 in your form get the value to bean using serverListner.And create method in AMImpl to filter records from TableB by passing your field1 value.make sure to add client interface to this filter method(clientInterface in yourAM.xml) and add it to page using bindings to as methodAction.Then you can show filtered TableB using popoup.

Maybe you are looking for