Friday, March 30, 2012
reporting services valid values query based
the text boxes per parameter required by the report. Now comes the problem of
a query based parameter. How to I get the queary based valid values to
populate my drop down list boxEddie,
If I understand your correctly I may have some ideas that will help you with
query based Parameters, but first please clarify the reason you built a UI
for users to pass parameters into the report?
thx.
"Eddie" wrote:
> I have a parameter that is query based. I have created my own UI to list out
> the text boxes per parameter required by the report. Now comes the problem of
> a query based parameter. How to I get the queary based valid values to
> populate my drop down list box|||I have several clients that use browsers which the report viewer doesn't
behave well.
I did figure it out. The valid values come back as array when you call the
GetReportParameter method and set the "ForRendering" to TRUE.
So all I did was add the values to ListItems and populated a drop down.
Also, a nifty thing was to find all the Date type parameters and lock the
text box and provide a calendar. This allowed me to use our application's
Localization methods to handle all the different Date formats.
"RS_CZAR" wrote:
> Eddie,
> If I understand your correctly I may have some ideas that will help you with
> query based Parameters, but first please clarify the reason you built a UI
> for users to pass parameters into the report?
> thx.
> "Eddie" wrote:
> > I have a parameter that is query based. I have created my own UI to list out
> > the text boxes per parameter required by the report. Now comes the problem of
> > a query based parameter. How to I get the queary based valid values to
> > populate my drop down list box
Friday, March 23, 2012
Reporting Services passing values from Subreport to Main report
I hope the following link will help you solve your problem.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rshowto/htm/hrs_designer_v1_1ed0.asp
--Amde
Reporting Services Parameters
string param = "&fundingRef=2" + "&mRef=25";
ReportViewer1.ReportPath = Global.ReportPath + reportPath + param;
Both the parameters have been set up in the SQL report designer in VS2003.NET and will contain several values using the SQL IN statement. My sql statement is to a structure as follows:
SELECT [field names] FROM [table] WHERE (fundingRef in(@.fundingRef )) AND (mastercourseRef in(@.mRef))
When I pass single values, it works fine but when I try to send values e.g. 14, 25, 3, 4, 28, 2, 1, 6, 5. I get the following error:
An error has occurred during report processing. (rsProcessingAborted) Get Online Help
Cannot read the next data row for the data set TTP. (rsErrorReadingNextDataRow) Get Online Help Error converting data type nvarchar to bigint.I have tried declaring the variable as a varchar but although it returns no error, it also returns no records. Please can someone enlighten me as to how I can this to work. Cheers.
Are you using "," as value seperators?D.|||Yes|||This should work with RS 2005 as it support multiple param selections.
I'm guessing this is the reason it's not working now.|||Try using a table function & large varchar parameter if your report can accomodate.
See this article on parsing tokens...|||Cool, thanks for the information wavesmash. I hope this should fix my problem. I'll let you know how I get on.
Cheers again
Reporting Services Parameters
string param = "&fundingRef=2" + "&mRef=25";
ReportViewer1.ReportPath = Global.ReportPath + reportPath + param;
Both the parameters have been set up in the SQL report designer in VS2003.NET and will contain several values using the SQL IN statement. My sql statement is to a structure as follows:
SELECT [field names] FROM [table] WHERE (fundingRef in(@.fundingRef )) AND (mastercourseRef in(@.mRef))
When I pass single values, it works fine but when I try to send values e.g. 14, 25, 3, 4, 28, 2, 1, 6, 5. I get the following error:
An error has occurred during report processing. (rsProcessingAborted) Get Online Help
Cannot read the next data row for the data set TTP. (rsErrorReadingNextDataRow) Get Online Help Error converting data type nvarchar to bigint.I have tried declaring the variable as a varchar but although it returns no error, it also returns no records. Please can someone enlighten me as to how I can this to work. Cheers.
Are you using "," as value seperators?D.|||Yes|||This should work with RS 2005 as it support multiple param selections.
I'm guessing this is the reason it's not working now.|||Try using a table function & large varchar parameter if your report can accomodate.
See this article on parsing tokens...|||Cool, thanks for the information wavesmash. I hope this should fix my problem. I'll let you know how I get on.
Cheers again
reporting services parameter problem
Is there anything I can do? I cannot add a null record in the table itself.
thank you, dreyYou can either allow null for a parameter or use a UNION to add All Months to the available options. (Adding All Months tends to give a better end-user experience.) Note that the following query (because of the UNION) isn't valid in the graphical query designer. You'll be prompted to switch to the generic query designer. You'll have to modify the query to match your particular DB schema.
SELECT MonthNumber, MonthName
FROM Months
UNION
SELECT -1, 'All Months'
Now you've got your parameter values populated. If you're using the 'All Months' option, you'll want to uncheck "Allow null values".
You should now modify your dataset query to:
SELECT column1, column2, column3
FROM table1
WHERE (MonthNumber = @.MonthNumber OR @.MonthNumber = -1)
If you select a month, you will get the appropriate data back for that month. If you select All Months, then MonthNumber = -1 will always be false (since -1 isn't a valid month number), but the second part will evaluate as true for all months.
Hope that helps.
Tuesday, February 21, 2012
Reporting Services Currency Symbol
format 'C' still returns the values in $ and not £
MSDN and an earlier post here mentions the help text that has this section
'you can set a locale on the report and on individual text boxes by using
the Language property'
If I right click on the field on the report and select properties there is
no Language property so I do not understand where it is talking about
Any ideas?
TIA
NeilThe Language property shows up in the VS Property window (hit F4).
Note: every report has a global language property (in the VS Property
window, select "Report" from the top drop-down box and then look for the
Language property). It seems like it is set to "en-US" in your case. You
need to set the Report-Language to "Default" and republish it to the report
server. Then at runtime, the report will be processed in the thread culture
specified in the Internet Explorer language settings.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Neil" <Neil@.discussions.microsoft.com> wrote in message
news:210F44A1-EFFB-42F8-8A72-EEE76B40D3A1@.microsoft.com...
> I have added User!Language to my report which returns en-GB but the
currency
> format 'C' still returns the values in $ and not £
> MSDN and an earlier post here mentions the help text that has this section
> 'you can set a locale on the report and on individual text boxes by using
> the Language property'
> If I right click on the field on the report and select properties there is
> no Language property so I do not understand where it is talking about
> Any ideas?
> TIA
> Neil
>|||Hi Robert,
Thanks, I had just found that myself, the confusion was caused by the text
box having 2 property windows, one was right-click and the other the bottom
right hand corner window, and the help file did not state which to use, so I
was right clicking and selecting properties which had the currency format
style 'C'
thanks
Neil.
"Robert Bruckner [MSFT]" wrote:
> The Language property shows up in the VS Property window (hit F4).
> Note: every report has a global language property (in the VS Property
> window, select "Report" from the top drop-down box and then look for the
> Language property). It seems like it is set to "en-US" in your case. You
> need to set the Report-Language to "Default" and republish it to the report
> server. Then at runtime, the report will be processed in the thread culture
> specified in the Internet Explorer language settings.
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Neil" <Neil@.discussions.microsoft.com> wrote in message
> news:210F44A1-EFFB-42F8-8A72-EEE76B40D3A1@.microsoft.com...
> > I have added User!Language to my report which returns en-GB but the
> currency
> > format 'C' still returns the values in $ and not £
> >
> > MSDN and an earlier post here mentions the help text that has this section
> > 'you can set a locale on the report and on individual text boxes by using
> > the Language property'
> >
> > If I right click on the field on the report and select properties there is
> > no Language property so I do not understand where it is talking about
> >
> > Any ideas?
> >
> > TIA
> >
> > Neil
> >
>
>