Multiple Default Values for MultiSelect Parameter

3 posts, 0 answers
  1. Phil
    Phil avatar
    30 posts
    Member since:
    Mar 2015

    Posted 09 May Link to this post

    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. Phil
    Phil avatar
    30 posts
    Member since:
    Mar 2015

    Posted 09 May Link to this post

    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.

  3. DevCraft banner
  4. Stef
    Admin
    Stef avatar
    3047 posts

    Posted 12 May Link to this post

    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
Back to Top