cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Default values for parameters in Java API

Former Member
0 Likes
352

I have a Crystal report formats with some input parameters set to default values. How do I retrieve them in the Crystal Java API?

Thanks,

Chandra Prakash

View Entire Topic
Former Member
0 Likes

I normally do not look at this forum as about all I know about Java is that it comes out of the coffee machine in the kitchen...

But see if the following KBA will help, even though it is written specifically for .NET:

1202315 - How do I get a parameters default value's description via the NET SDK?

- Ludek

SCN Moderator

Former Member
0 Likes

Ludek,

Thanks for your help. I found the Java methods here:

https://help.sap.com/javadocs/cr/xi/jrc/en/com/crystaldecisions/sdk/occa/report/data/ParameterField....

ParameterField.getInitialValues() and getDefaultValues()

Thanks,

Chandra Prakash

Former Member
0 Likes

Many thanks for that Chandra

Now I have something to "bite" into and actually try to help

Happy coding,

- Ludek

Former Member
0 Likes

Chandra Prakash,

I used getDefaultValues() method to retrieve the values. But its not in a string readable format.

Example default values :

How do i convert them to String Readable format?

[com.crystaldecisions.sdk.occa.report.data.ParameterFieldDiscreteValue@7a36a2, com.crystaldecisions.sdk.occa.report.data.ParameterFieldDiscreteValue@198c6f3]

Thanks,

Bharath