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

Passing Parameters from Silverlight ReportViewer

0 Answers 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vuyiswa
Top achievements
Rank 2
Vuyiswa asked on 25 Mar 2011, 11:13 AM
Good Day All

I have a Silverlight App that uses Telerik Reports. I can see my report. basicaly my report display a Barcode and i get the Barcode generated Value from the Database and i filter the Data. i am using SQLDatasource and i have a stored Procedure that is defined like this

CREATE PROCEDURE sp_GetReportbarcode
(
@KIDID INT
)
AS
SELECT  TEMP_BARCODE  
FROM KIDS_DETAILS
WHERE KIDID = @KIDID


and i am passing a Parameter from my silverlight page like this

KidsModelExtended selectedkid = lstkids.SelectedItem as KidsModelExtended;
if (selectedkid != null)
{
    int Kidid = selectedkid.iKidid;
    args.ParameterValues["KIDID"] = Kidid;
}
i  have debugged the code and it does and pass the Correct value to the parameter , but when i run my app, i only see a header of the Report not a barcode because it seems like the value has not been passed as depicted in the Screenshot. So to see if the SQlDatasource Control was configured correctly , i passed a value on the parameter on the control and i ran it and it brought me a barcode as depicted below.

Thanks







No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Vuyiswa
Top achievements
Rank 2
Share this question
or