Supressing Parameter dialog box on Refresh Report

After some tinkering, I've figured out how to get a parameter passed from a VB.NET form to a Crystal Report:
Dim paramFields As New CrystalDecisions.Shared.ParameterFields()
Dim paramField As New CrystalDecisions.Shared.ParameterField()
Dim discreteVal As New CrystalDecisions.Shared.ParameterDiscreteValue()
paramField.ParameterFieldName = "MyDateRange"
discreteVal.Value = Common.MyDates
paramField.CurrentValues.Add(discreteVal)
paramFields.Add(paramField)
crvBalances.ParameterFieldInfo = paramFields
This works just fine when the report is first opened in the Crystal Report Viewer.  If I open the report a second time, however, using a different parameter, the old data is still on the report, and when I click the Refresh button in the report viewer, up pops that Parameter dialog box.  I set the option to discard any saved data when loading the report, but that didn't help at all.  Is there a way to KEEP the parameter dialog box suppressed and be able to refresh the report?
I'm running Visual Studio 2008, and using the version of Crystal that comes with same.  Any help anyone can provide would be greatly appreciated.

I am not sure I quite understand the flow, but here is my view of it:
Load report
Enter parameters
View report
Close report
Re-load the same report
Re-use the parameters entered in (2) above
View report
For ensuring that the previous data is not on the report (e.g.; step (3)), make sure that the report is disposed correctly ( use .close and .dispose on the report object). As long as the "Saved Data" option is not enabled (see KBA 1984381), the report should not have any data on re-use.
Re-using the same parameters as you used in (2) will require that you somehow save what the user entered and on second load of the report, step (5) you enter those parameters in your code. There are no CR APIs that will do this for you.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter

Similar Messages

  • How to disabled the input parameter dialog box in crystal reports 9

    Post Author: Murtaza
    CA Forum: General
    Hi friends,I have got stuck with a weird problem.  In my
    crystal report, I have set up some input parameters.  I am setting
    values for these parameters somewhere inside code.  But I don't
    want to show the default input parameter dialog box. Under any case,
    user should not see the ugly parameter dialog box that crystal
    presents.   Please suggest me how I can achieve
    this.  I cannot do this through code, because our environment does
    not allow that.  I have to do this in crystal reports viewer and
    by setting some property of the crystal report object. But everything
    must be done on UI, not through code. So, the solution should not be the following. 
    // step before step 1
    // **** the line needs to refer to the report and be set before setting
    ReportSource in the viewer to myReport
    myReport.EnableParameterPrompting = False
    Any help would be greatly appreciated.  Murtaza

    Post Author: sleahcim
    CA Forum: General
    Hi Murtaza,
    Unfortunately, I am not aware of any method to suppress the prompt for the input parameters, but still use them.  It is truly a design-related issue for the report.  The reason that the prompt appears is because the parameter it is prompting for is used in the report; in particular either the Group or Record Selection, or referenced in another formula.
    The only way I can think of to not show the prompt, is to not use the parameter in the report.  You did mention that you are setting the value of the parameter inside of the report -- are you doing this through using a formula?  Perhaps you can just remove the parameter and only use the formula that you are setting the default values with.
    -Michael

  • Change File Name In The "File Download" Dialog Box For Web Reports

    Hi All ,
    I followed the below note to change the "File Download" name.
    How To Change The File Name In The "File Download" Dialog Box For Web Reports? Doc ID: Note:418366.1
    However its not working. Has anyone tried this and works fine ?
    Basically I wanted to change the name "rwservlet" when a report is run in an
    excel format.
    Rajesh Alex
    Rajesh Alex

    Hello,
    Have you checked if a HTTP header "Content-disposition" is returned ?
    You can use ieHTTPHEaders for IE
    http://www.blunck.se/iehttpheaders/iehttpheaders.html
    and
    Live HTTP Headers for FireFox
    https://addons.mozilla.org/en-US/firefox/addon/3829
    Regards

  • Problem of Date format in Parameter dialog box

    This problem happen In Crystal XI but not in version 8.5. When a parameter dialog box showing up it provides a calander for users to select a date. When the user select a date from the calander the prompt alway return a date in the format of (yyyy-mm-dd) regardless of whatever we set in the Windows's "Regional Settings". In our region we set date as dd-mm-yyyy.
    When we edit the date in the parameter field box to dd-mm-yyyy and click OK the prompt complains and says "the date should be in the format of "yyyy-mm-dd"". Why?. Could Business Objects or anyone let me know is there a way to edit option. In our regional our clients are used to with the date format of dd-mm-yyyy. 
    Thanks,
    Robert

    Thank Sastry,
    With an IT professional or a computer expert it does not seem to be a matter as they understand this is just another way to write date but many of our clients already used to with the dd-mm-yyyy and they are not American. If you say this was by design howcome in CR 8.5 the date in this dialog box follows the format in the regional settings. In CR 8.5 when you change date format in regional setting it reflect immediately in the parameter box. Asume what you say is true I would like to ask Business Objects that this is a backward development or just a way to purse every one in this world to follow the American style.
    Come back to the parameter box. Our clients have used our software that uses CR 8.5 for many years. Not all but many of them just type in the date directly to the box. If this can't be fixed how will our support staff tell our customers? I would like to hear something from Business Objects.
    Rob

  • Suppress the pop dialog box in ALV report

    Hi Gurus,
    I have developed an ALV report where we can edit the data and save to data base.
    For a field, it checks the value on value table and displays a pop with error "This value does not exsit". Automatically.
    I have not written an validation for this field.
    When i try to close the dialoge box it does not close.

    Hi,
    What the field reference you have given, there is check table which it is validating for the field, check it there might be a check table.
    Regards,
    Madhukar Shetty

  • Text dialog box instead of Report tab

    I'm using TS3.5 and customizing the LabVIEW version of the OI.  I would like to do two things.  (1) Make the Test Sequence and Test Execution tabs visible at all times.  Currently, the Execution tab (along with the Report tab) appear when "Test UUT" is selected or Executions is selected in the Listbox to the left of the SequenceView control. (2) I would like the report information to appear on the Sequence and Executions tabs as a Text Dialog box, to the right of the SequenceView control (that currently displays Step,Status,Flow Control).
    Can someone get me started?

    Hey Mr. Bean,
    1) There is a subvi called Configure Event Callbacks in the block diagram.  Inside of here there is a callback VI for the UIMessage handling.  It is called Page Change CBack.  Inside of there you'll see a subvi called Show Appropriate Tabs.  This is where the tabs are being set for which one is shown.  You can tweak this code to do what you expect.
    2) You can just copy and paste the ReportView control onto the execution Tab.  You will have to change some things in the block diagram to get it to look right.  Like the code in resize controls subvi so that your execution control doesn't overshadow the new reportview control  and you'll most likely have to make the new reportview control ConnectReportView.  You can see how this is done by looking at the other one.
    Regards,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • To supress print dialog box

    HI all,
    here i kept my smartform in a loop.
    i have to supress my print preview dialog box .
    can any one please give me the parameters to pass
    wtih regards
    anand

    Hi,
    please check this
    In the SSF_OPEN function module,
    Set the OUTPUT OPTIONS paramter TDDEST to your printer name.
    Set the CONTROL PARAMETERS and control parameters as shown below,
    control-preview = 'X'.
    control-no_open = 'X'.
    control-no_close = 'X'.
    control-no_dialog = 'X'.
    control-device = 'LP01'.
    control_parameters-no_dialog = 'X'.
    control_parameters-no_open = 'X'.
    control_parameters-no_close = 'X'.
    OUTPUT_OPTIONS-TDDEST = 'LP01'.
    OUTPUT_OPTIONS-TDNOPRINT = 'X'.
    CALL FUNCTION 'SSF_OPEN' 
    EXPORTING   
    output_options     = output_options   
    control_parameters = control  
    user_settings      = ' '
    EXCEPTIONS   
    formatting_error   = 1   
    internal_error     = 2   
    send_error         = 3   
    user_canceled      = 4   
    OTHERS             = 5.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Best regards,
    raam

  • How to supress the dialog box in smartforms

    Hi Experts,
    Can any body tell how to supress the dailog box while executing the smarform.
    valid answers will be rewarded.
    Thanks,
    Satish.

    data p_out like ssfcompop.
    Look at smartform function module,there could be option like
    p_out-tdnoprev = 'X'.
    pass p_out to smartform function module

  • Supress Printer Dialog box (Operating System) in Payslip Printing

    Hi All,
    I have design the smartform to print the payslip. In the main window i have created the loop and then  desing the templates to display the details of employee and the wage types.I have only one page in it. I have develop the print program to call the smartfform. But when i try to print the payslip for number of employees the printer dialog box (Operating system Level) is appearing for the number of times the employees i have selected.I am able to suppress the Print Preview dialog box from SAP it is not showing and i have given the parameters to print immediately.But the Problem i am facing is if i select 3 employees the printer dialog box is coming 3 times. i have to click 3 times to print the payslips .
    Mustafa

    Hi,
    Please find the code below. I have made the changes but agian it is asking for the printer dialog box for the number of times the employees i have selected.
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
       formname                 = 'ZHR_F_MMG_PAYSLIP'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
    IMPORTING
       FM_NAME                  = V_FM_NAME
    EXCEPTIONS
       NO_FORM                  = 1
       NO_FUNCTION_MODULE       = 2
       OTHERS                   = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    loop at i_payslip_details.
      gv_control-no_dialog = 'X'.
      gv_control-no_open   = 'X'.
      gv_control-no_close  = 'X'.
      I_SSFCOMPOP-TDDEST = 'ZMMG_Print'.
    I_SSFCOMPOP-TDNEWID = ''.
    I_SSFCOMPOP-TDNOPREV = 'X'.
      AT FIRST.
        gv_control-no_open = ''.
        endat.
        AT LAST.
          gv_control-no_close = ''.
          ENDAT.
    CALL FUNCTION V_FM_NAME
    EXPORTING
       CONTROL_PARAMETERS         = gv_control
       OUTPUT_OPTIONS             = I_SSFCOMPOP
      TABLES
        I_PAYSLIP_DETAILS          = I_PAYSLIP_DETAILS
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endloop.

  • Supressing Parameter form when called a report from a Form

    Hi all,
    How can I supress the Parameter Form of a Report when called from a Form. I am using RUN_PRODUCT built-in to invoke the report.
    Thanks in advance
    Krishna

    Pass a parameter to your report .
    the parameter name is "PARAMFORM" and the value it should have is "NO".

  • Supressing F4 dialog Box

    Hi All,
    I have an external application in .NET which calls RFC "RHF4_RFC_FIELD_VALUE_REQUEST" to get the F4 help for the required field in SAP.
    Following import paramters are supplied to get help values of material:
    TABNAME                         RMMG1
    FIELDNAME                       MATNR
    SEARCHHELP                    MAT1
    SHLPPARAM
    DYNPPROG                        SAPLMGMM
    DYNPNR                              0060
    DYNPROFIELD                     RMMG1-MATNR
    STEPL                                  0
    SUPPRESS_RECORDLIST   X
    My question is executing this RFC, gives out a selection pop-up, clicking Ok gives back the results. I do not need this pop-up. How can i do that, is there any other known FM to you which can give back the list without selection pop-up?
    Regards
    Munish Garg

    My requirement is not to have custom coding. I need standard RFC/RFM which can solve the purpose.
    I am supplying following paramters to RFM - RHF4_RFC_FIELD_VALUE_REQUEST
    TABNAME                =         RMMG1
    FIELDNAME              =         MATNR
    SEARCHHELP          =          MAT1
    DYNPPROG             =          SAPLMGMM
    DYNPNR                  =          0060
    DYNPROFIELD         =         RMMG1-MATNR
    STEPL                      =         0
    SUPPRESS_RECORDLIST     =     X
    CALLBACK_PROGRAM        =    YZ_MG_TEST11
    RETURN_ALL_FIELDS           =    *
    This is supressing the output list but not the pop-up which comes for selection. Please help
    Regards
    Munish Garg

  • How to supress dialog box in SUBMIT (Program_name) clause

    Hello Experts,
    statement like this:
    SUBMIT RKACOR04  using SELECTION-SET 'TEST' EXPORTING LIST TO MEMORY
                  AND RETURN .
    but during the process there is a dialog box which prevend automatic processing. is it possible to supress the dialog box via additional clause?
    Thanks

    Are you sure you want to use this report, it is not intended for a regular/periodic use, this program adjusts total and detail records in CO tables in case of difference
    Use RKACOR04 only with support from the SAP Hotline service or from an expert consultant for CO data structures.
    also
    SAP recommends running the report in the background.
    You should correct the cause of dysfunction, and then only run once this report when actually needed, also read the OSS notes on this report.
    Regards,
    Raymond

  • How to supress dialog box when calling smartforms and just create a spool..

    Hello Experts,
    I want to supress the dialog box where you can print preview or print your smartforms. What
    I want is to just create a spool file for this one. Think of it as smartforms running in background.
    Thank you guys and take care!

    Hi again Vishwa,
    I modified my code according to your last reply but it still wouldn't work. The dialog still pops up without the print and print preview buttons. Below is my code:
    MOVE 'X'    TO ltyc_control-no_open.
        MOVE 'X'    TO ltyc_control-no_close.
        MOVE 'X'    TO ltyc_control-no_dialog.
        MOVE 'X'    TO ltyc_options-tdnewid.
        MOVE 'X'    TO ltyc_options-tdnoprev.
        MOVE 'X'    TO ltyc_options-tdnoprint.
        MOVE 'LOCL' TO ltyc_options-tddest.
        MOVE space  TO ltyc_options-tdimmed.
        CALL FUNCTION 'SSF_SHOW_DIALOG'
          EXPORTING
    *        ARCHIVE_PARAMETERS         =
            user_settings              = ''
            output_options             = ltyc_options
            control_parameters         = ltyc_control
    *        OK_BUTTON                  = ''
          IMPORTING
    *        E_ARCHIVE_PARAMETERS       =
            e_output_options           = ltyc_options
            e_control_parameters       = ltyc_control
          EXCEPTIONS
            formatting_error           = 1
            internal_error             = 2
            send_error                 = 3
            user_canceled              = 4
            OTHERS                     = 5.
        IF sy-subrc <> 0.
    *      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname                 = lcc_z2574ffi_ra_cimb
    *        VARIANT                  = ' '
    *        DIRECT_CALL              = ' '
          IMPORTING
            fm_name                  = ltyc_function
          EXCEPTIONS
            no_form                  = 1
            no_function_module       = 2
            OTHERS                   = 3.
        IF sy-subrc <> 0.
    *      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CALL FUNCTION ltyc_function
          EXPORTING
            control_parameters = ltyc_control
            output_options     = ltyc_options
            user_settings      = ''
            im_adrnr           = gtyc_adrnr
            im_name1           = gtyc_name1
            im_name2           = gtyc_name2
            im_str_suppl1      = gtyc_str_suppl1
            im_str_suppl2      = gtyc_str_suppl2
            im_str_suppl3      = gtyc_str_suppl3
            im_post_code1      = gtyc_post_code1
            im_city1           = gtyc_city1
            im_vblnr           = gtyc_vblnr
            im_zaldt           = gtyc_zaldt
            im_swnes           = gtyc_swnes
          TABLES
            im_regup           = gt_regup
          EXCEPTIONS
            formatting_error   = 1
            internal_error     = 2
            send_error         = 3
            user_canceled      = 4
            OTHERS             = 5.
        IF sy-subrc <> 0.
    *      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    Edited by: Viraylab on Nov 26, 2008 10:55 AM

  • FTP Upload - Replace File Dialog Box

    Hi,
    Am running LR3 on Vista 64, and using FTP export via the FTP Publisher plugin now available.
    In principle everything is working fine, but if I am updating existing files, then for each and every file a LR dialog box pops up asking if I want to replace the file on the server.
    There is no option for 'Replace all' so it becomes a rather tedious task of sitting in front of the PC whilst the upload takes place and accepting each file - not much fun with around 400 files.
    Does anyone know if there is a way to supress this dialog box? Have tried using Passive, Enhanced Passive and Not Passive n the FTP settings, but makes no difference.
    Thanks for any help,
    Andy.

    If using the LR FTP to overwrite an existing gallery the usual behaviour should be for LR to ask once if you intend to overwrite the whole gallery, not for each separate file. Perhaps you should try resetting the warning dialogs in the preferences menu and see if this returns the warning to its usual function.

  • SQL Expression Fields (Field Explorer dialog box)

    I have Crystal Reports Version XI.  When I open the field explorer I can't see "SQL Expression Fields (Field Explorer dialog box) "
    Please help.

    The following information helps you
    Symptom
    In Crystal Reports 9 and later, the 'SQL Expression Fields' is unavailable in the 'Field Explorer' dialog box. The report is reporting off a stored procedure or command object.
    Why are 'SQL Expression Fields' unavailable in the 'Field Explorer' dialog box?
    Resolution
    'SQL Expression Fields' are unavailable in the 'Field Explorer' dialog box because the report is based on a stored procedure or command object.
    When connecting to a Stored Procedure or using a command object the SQL Statement is predefined and cannot be modified by Crystal Reports therefore the SQL Expression field will not be available when connecting to either of these objects.
    The SQL Expression field works by adding an entry into the SELECT portion of the SQL Statement in a Crystal report. A SQL Expression Field is only available in a report when:
    u2022 The report connects to tables or views.
    u2022 Crystal Reports generates the SQL statement.
    regards,
    Raghavendra

Maybe you are looking for

  • Print HTML FILE

    Hi all : I save a HTML FILE ,, I want to print this file from labview ,, how can I do that thanks

  • Error 'RecoveryMgr.exe is not a valid Win32 application' when trying to restore in Win7

    I really hope someone can help as this is driving me mad! System details - G62 Notebook running Windows 7 The notebook crashed after a Windows update and wouldn't boot up.  I made it into the recovery manager and back my files before restoring to fac

  • Open in new window with different window size

    Does anybody know of a way to make a hyperlink and the window open to a new page where the window size is different from the page before? I want to open to a new page where it's a quicktime thats just in a smaller window. thanks!

  • Problem in fetching data from 0025IT

    Hello... Here we are working on One Page Profile and when i had made enteries in dev server  for employee first aparaisal in infotype 25 , it has shown one record correctly.But in the table HRP1001 , it created two records with same  dates and rating

  • Sudden Audio problem in CS 5.5

    I've always been able to hear sound in BOTH my RAM preview AND when I SAVE my RAM preview. Now, even though I still hear sound in my preview, there are no more sounds in ANY of my SAVED Ram Previews. I checked that my "audio" was checked in the right