Skip to Content
avatar image
Former Member

How to determine if a parameter is actually being used in the crystal report

We are migrating from an old Visual Basic 6.0 Crystal SDK to the Java SDK. In the VB API, a parameter field obtained from crxReport.ParameterFields has a variable "needsCurrentValue". A false value told you the parameter was not used on the report. I don't see an equivalent of this in the Java SDK. I have an issue where all parameters are returned via:

Fields<IParameterField> myFields = dataDefController.getDataDefinition().getParameterFields() even if some of the fields are not used in the report. The legacy system passes only parameters that are used and using "needsCurrentValue", we would skip over those params that were "false". I cannot find a way to detect that a parameter is not being used in the Java SDK. Does anyone know how?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • May 20, 2015 at 08:40 PM

    In the IReportParameter class, there is a method isInUse() that you can use to determine this.

    -Dell


    Add comment
    10|10000 characters needed characters exceeded