Jump to content
We've recently updated our Privacy Statement, available here ×

Optional Parameter Prompts


emir_abushala

Recommended Posts

There are so many answers on the internet regarding this implementation, yet neither is 100% accurate.

So I am trying to create an optional parameter prompt, when nothing is inputted all results are displayed. When specifics are inputed, those results are supposed to be displayed.

I created 2 parameters, {param} and {paramA}

On my sql, I am calling for {paramA} which has default value expression -

($P{param} != null && $P{param}.trim().length() > 0) ? $P{param}: "New"

 

This method works, problem is, if you have more values than 'New', how do you implement that?

 

Thanks,

EA

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...