Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

How to provide default value in a portlet filter

Highlighted
Nitesh Gupta
Occasional Contributor

How to provide default value in a portlet filter

Hi
I need to provide a default value in a filter for a portlet. So that if I don't select any value for that filter, it automatically filters with that default value.

I have set the default value for the filter while configuring the portlet definition (there is an option under the preference field section) . But still it is not taking that value as default.

Could any one suggest any possible solution for this.

Thanks
4 REPLIES
Mahen M
Honored Contributor

Re: How to provide default value in a portlet filter

If you want to automatically filter with a default value, Why do you need a filter?

Why can't you write a NVL or Coalesce statement?

Regards,
Mahendran M
Nitesh Gupta
Occasional Contributor

Re: How to provide default value in a portlet filter

Actually I don't want the default value evry time. There are also some more values that can be selected for that filter. But one of them should be default. This is what I want to implement.

Thanks
Mahen M
Honored Contributor

Re: How to provide default value in a portlet filter

That is what the nvl is used for.


Encode like this

and nvl ([yourToken], Default value)

Regards,
Mahendran M
Nitesh Gupta
Occasional Contributor

Re: How to provide default value in a portlet filter

Thanks for your help.
//Add this to "OnDomLoad" event