This is a migrated thread and some comments may be shown as answers.

Multiple Default Values for MultiSelect Parameter

2 Answers 100 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 09 May 2016, 03:52 PM

I have a multi-select parameter where I want to set 2 default values (MTD, YTD).  The parameter dropdown allows the user to select which periods they would like to view.  For Each Organization, the periods have different ID's and can have different names.  But there are some commonalities.

Some orgs use YTD, some use FYTD.  SO I need to be able to set my default value something like:

               = Array(Field.ShortName Like '%YTD%' OR Fields.ShortName Like '%MTD%')

However, I have tried this and it does not work.  Does anyone know a solution for this?

Thanks,

Phillip

     

2 Answers, 1 is accepted

Sort by
0
Phil
Top achievements
Rank 1
answered on 09 May 2016, 06:44 PM

I also tried this:

= IIf(Fields.ShortName Like "%MTD%" OR Fields.ShortName Like "%YTD%", Fields.PeriodId, Null)

This only selects the top value from the parameter dropdown.

0
Stef
Telerik team
answered on 12 May 2016, 11:16 AM
Hi Phil,

Please check the Using Multivalue Parameters article, and test the approaches where you can list the IDs (ValueMember) of the desired displayed values, or you can use a custom function to get their IDs.

I hope this information is helpful.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Phil
Top achievements
Rank 1
Answers by
Phil
Top achievements
Rank 1
Stef
Telerik team
Share this question
or