Quantcast
Channel: SCN : Popular Discussions - SAP Crystal Reports, version for Eclipse
Viewing all articles
Browse latest Browse all 893

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

$
0
0

We are migrating from an old Visual Basic 6.0 Crystal SDF to the Java SDK.  We are using "SAP Crystal Reports for Java runtime components - Java Reporting Component (JRC) that is available using url http://scn.sap.com/docs/DOC-29757. The downloaded zip file associated with this is crjava-runtime_12.2.218.zip  The jar files assocaited with these components are downloaded to a workstation and used with a Java Swing Web Start application.

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 in the report. I don't see an equivalent of this in the Crystal Java SDK. I have an issue where all parameters are returned via:

 

Fields<IParameterField> myFields = dataController.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 "needCurrentValue", we would skip over those parameters that were "false".  I cannot find a way to detect that a parameter is not being used in the Crystal SDK. Does anyone know how?


Viewing all articles
Browse latest Browse all 893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>