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

UriReportSource parameters

3 Answers 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pradeep
Top achievements
Rank 1
Pradeep asked on 11 Jul 2017, 02:33 PM

Hi All,

I am passing a GUID value as one of the parameters in UriReportSource parameters collection and I get the report loaded correctly. From the documentation, it seems GUID is not a valid type for the parameter. I am confused as to why the report loads correctly without throwing an error if GUID is not a valid type or am I wrong in any way?

Many Thanks

3 Answers, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 11 Jul 2017, 02:54 PM
Hi Pradeep,

Guid is not a supported type for report parameter. The report still can work correctly if you use the approach provided in How to use a Guid as value for report parameter or data source parameter? KB article.

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
0
Pradeep
Top achievements
Rank 1
answered on 12 Jul 2017, 10:52 AM

Hi Katia,

Thanks for your response and I get your point. But even if I am not using any of these methods suggested in the KB article, I have the report working with a GUID parameter. However, the GUID parameter I set is mapped to a report parameter of type string in the designer. Without using the conversion suggested in the KB article will the GUID gets parsed to string automatically?

Thanks

0
Katia
Telerik team
answered on 13 Jul 2017, 02:55 PM
Hi Pradeep,

On our side, passing the Guid parameter with ReportSource.Parameters collection will result in a message "Missing or invalid report parameter" on the report's preview. This is due to the incorrect type of the passed parameter (conversion to supported type is required).

We would need to check the settings of the report and the code used to pass the parameter from the application and to set the viewer's ReportSource in order to provide you further suggestions.


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
Tags
General Discussions
Asked by
Pradeep
Top achievements
Rank 1
Answers by
Katia
Telerik team
Pradeep
Top achievements
Rank 1
Share this question
or