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

how to display parameter value(s) in textbox

1 Answer 211 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Emrys
Top achievements
Rank 1
Emrys asked on 26 Aug 2011, 07:21 PM
I have a multi-value report parameter generated from a SQL query.  The values are retrieved from the database table and listed in a drop-down list.  I have a textbox on the report that should display the selected value(s); however, its' not working.  How do I display the selected value(s) inside that textbox?  The textbox is displaying system.object[].

Thanks,
Rob

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 31 Aug 2011, 05:55 PM
Hi Robert,

In order to handle array values in an expression, our suggestion is to convert the object array to a string with a user function. Check out the following sample:

public static string GetItemValue(string[] values, int index)
{
    return values[index];
}

You can also review the usage of the FormatArray user function which you can find in the source file of the ProductLineSales report definition in our sample class library which comes with the product.

Kind regards,
Peter
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
General Discussions
Asked by
Emrys
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or