Skip to Content
0
Jun 26, 2019 at 07:42 PM

Parameter is displayed in header but not used in search

327 Views Last edit Jun 26, 2019 at 07:44 PM 3 rev

Scenario:

  • A user enters the parameter: loc_arg
  • ....e.g., loc_arg entered as D200_001
  • The selection formula, from Report | Selection Formulas | Record... (e.g., Formula Workshop - Record Selection Formula Editor, is:
  • ....{CR_Events.Location} = {?LocArg}

Results:

  • In the SAP Crystal Reports development environment (SAP Crystal Reports 2016 SP5):
  • ....The report will display the user entered parameter in the header Record
  • ....Selection will be limited to the user entered parameter, loc_arg
  • This is desired behavior

Problem:

  • The problem is with a MS VS developed app, using C#, the record selection fails:
  • ....The report will display this value in the header (as above)
  • ....All records are displayed - the selection formula is ignored
  • This in not the desired behavior

Environment:

  • VS Professional 2017
  • SAP Crystal Reports development environment (SAP Crystal Reports 2016 SP5)
  • .NET Framework Components 13.0.3500.0
  • Looks like only the CrystalDecisions.Web components are check (installed?)
  • In addition, the ParameterPromptControl is not checked (SAPBusinessObjects.WPF.Viewer)