Get count of multi-value parameter

3 posts, 0 answers
  1. Diego
    Diego avatar
    7 posts
    Member since:
    Jul 2017

    Posted 22 Aug Link to this post

    Hello,

    I need to count how much values can be selected from a multi-value parameter, so I can display "Selected 15 of 20". So somehow I need to get the 20.

    I can display how much values I have selected (15) with "= Parameters.v_test.Value.Length", but I can't find a solution for the other value (20).

    Maybe someone has any idea. Is this possible without user functions?

    Thanks,
    Diego
  2. Katia
    Admin
    Katia avatar
    574 posts

    Posted 22 Aug Link to this post

    Hi Diego,

    You can use ReportParameter.AvailableValues.Count to get the total number of values, for example:
    selected {Parameters.Parameter1.Value.Length} of {Parameters.Parameter1.AvailableValues.Count}

    Hope this helps.


    Regards,
    Katia
    Progress 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
  3. Diego
    Diego avatar
    7 posts
    Member since:
    Jul 2017

    Posted 24 Aug in reply to Katia Link to this post

    Hi Katia,

    perfect - it works.

    Thank you very much,
    Diego

Back to Top