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

Mandatory and optional parameter fields in Java API

Former Member
0 Likes
480

How would I distinguish the mandatory input parameters from the optional parameters in Crystal report format when using Java API?

Thanks,

Chandra Prakash

View Entire Topic
Former Member
0 Likes

Hi Chandra,

There is a method in the IParameterField interface odf RAS API's, which lets you know whether the parameter is optional or not. Below is the defination of it.

getIsOptionalPrompt
boolean getIsOptionalPrompt()
Gets whether the parameter is optional.

Optional parameter prompts do not require a parameter value to be provided. No visual cue in the parameter dialog indicates that a parameter is optional; however, the report designer may add custom text to the prompt text indicating it is optional.

If an optional parameter prompt is given a Values collection whose “IsNoValue” property is set to true, the user will not be prompted to enter a value.


Returns:true if the parameter is optional.

You can find the API referrence from the below link
http://help.sap.com/businessobject/product_guides/boexir31/en/rassdk_java_apiRef_12_en.zip

Hope it helps.

Thanks,
Prithvi

Former Member
0 Likes

Prithviraj,

This definitely helped.

Thanks,

Chandra Prakash