Showing posts with label form. Show all posts
Showing posts with label form. Show all posts

Friday, March 30, 2012

Report Parameter Limitation

Hi all,

I create one report with one report parameter call “Report_Parameter_0”.I access this report though HTML Form.Ex

<FORM action=http://hodb04/reportserver?/report/Report12 method="post">

<INPUT type="hidden" value="Render" name="rs:Command" ID="Hidden1">

<INPUT type="hidden" value="HTML4.0" name="rs:Format" ID="Hidden2">

<INPUT type="hidden" value="true" name="rc:Toolbar" ID="Hidden3">

<INPUT type="hidden" value="true" name="rcStick out tonguearameters" ID="Hidden4">

<INPUT type="hidden" value="request " name="Report_Parameter_0" ID="Hidden5"> <inputtype="Submit>

</FORM>

If I update the Report_Parameter_0 value from “request” to the string with more then 2000 characters, then I will receive the follow error message from the Internet Explorer

“res://C:\WINDOWS\system32\shdoclc.dll/dnserror.htm#http://hodb04/reportserver?/DmReport/Report12”

My question is what it the limitation on the parameter passing thought HTML.What are the max characters I call pass to the report parameter?

Thanks,

tomas

In IE you can have a maximum of 2083 characters, of which no more than 2048 (2KB) can be in the path (the bit after the host). You will also have to watch out for characters that get url encoded, as these don't use up one character position, they use up three (i.e. a space gets url encoded from " " to "%20").

Other browsers have different (and generally much higher) limits.

|||Thanks for your respond. This is not good since all our reports access thought IE, and we require to pass the parameter more than 2083 characters. How can I solve this limitaion? Sould I use Web Service?|||

A web service could work, as those limitations are for IE, not IIS. Alternatively, you could redesign the HTML form or the report - 2KB of parameters is a lot!

|||Thanks, what do you means to redesign the HTML form. Is there a way to remove the 2083 characters limitation. The reason is we need to pass the SQL query to the report parameter to generate the report. Some of the SQL queries have more than 2083 characters.|||

Could you pass the SQL query to a field in a table in the database before you run the report, and use an identifier to retrieve the query afterwards?

Here is another posting that may help.

http://openacs.org/forums/message-view?message_id=110868

cheers,

Andrew

|||

TomasLeung wrote:

Thanks, what do you means to redesign the HTML form. Is there a way to remove the 2083 characters limitation.

There is no way to remove the limitation - it is a limitation with IE. Other browsers have much larger limits. Other technologies don't have those limits. But as i said before, 2KB of query string parameters is a lot.

TomasLeung wrote:

The reason is we need to pass the SQL query to the report parameter to generate the report. Some of the SQL queries have more than 2083 characters.

Maybe i am missing something here, but i find it incredible that you are passing SQL in this way - it is a big security hole and you are asking for trouble. What happens when someone changes their query string to read "delete from products"? I would change the design so that you are only passing *parameters* to the report, which are then passed to a stored procedure to get the data.

|||thanks for your advise, actually the query we passing to the parameter is the MDX query. Futhermore, the MDX query is create by another set of controls for example time and product control. So we know what kind of MDX we passing in. But the MDX query can be exceed 2083 characters.|||

There is no reason why you cannot use another browser to view the HTML form that puts together the MDX, this will get around the 2083 character limitation (did you eliminate unneccessary characters like whitespace?). But i have no idea how the report will render in that browser (i have never tried using a non IE browser to access a report - why don't you give it a try?).

Another option would be to use something like an ASP.Net page, and using either Ajax or postbacks you could build up the query string on the server, then do a call from the server to RS to generate the report, then redirect the client to the generated report.

These are just some ideas i'm throwing around - they may or may not work. Like i said back at the start, the only real way to fix your problem is to redesign the process you are using (unless the change of browser works).

Wednesday, March 28, 2012

Report Parameter As CheckBox

Hello Sir,
I m working on Microsoft SQL reporting service tool 2005.
I want to know how can display a checkbox on report parameter form
which is automatilcally build by reporting service tool.
Means i want parameter field as checkbox.
I have a query :
select name from employeesTbl
where Sex = @.ParameterValue
User select designation from multiple CheckBox.
and i think remeber i want to know also that user select only one
checkbox at a time.
There may be number of checkboxes for this.
e.g : Male,Female,OtherOn Jun 21, 2:34 am, Dheeraj <dheeraj.dhiman.daffo...@.gmail.com> wrote:
> Hello Sir,
> I m working on Microsoft SQL reporting service tool 2005.
> I want to know how can display a checkbox on report parameter form
> which is automatilcally build by reporting service tool.
> Means i want parameter field as checkbox.
> I have a query :
> select name from employeesTbl
> where Sex = @.ParameterValue
> User select designation from multiple CheckBox.
> and i think remeber i want to know also that user select only one
> checkbox at a time.
> There may be number of checkboxes for this.
> e.g : Male,Female,Other
If I'm understanding you correctly, you will only be able to use a
checkbox as part of a multi-select parameter. Is there a particular
reason why you can't use the standard drop-down list for the parameter
selections?
Enrique Martinez
Sr. Software Consultant

Wednesday, March 21, 2012

Report Model Filtering

When creating a filter with Report Model against my cube (or perhaps any
source) - it seems to force me to free form type how the filter will work.
For example -
Attribute: Does_Client_Smoke
Values: Yes, No, N/A, Won't Answer, Cannot Answer
When I create the filter it makes me type in one of the above values instead
of letting me select it from a pull-down such as how BIDS works - what am I
doing wrong here?Can someone help me on this question below. When using the report viewer,
there is a BACK button but when using browser, it won't page back correctly.
I'm using latest IE beta - maybe that's my issue?
"Joe" <hortoristic@.gmail dot com> wrote in message
news:%23ZxRAzSzGHA.772@.TK2MSFTNGP05.phx.gbl...
> When creating a filter with Report Model against my cube (or perhaps any
> source) - it seems to force me to free form type how the filter will work.
> For example -
> Attribute: Does_Client_Smoke
> Values: Yes, No, N/A, Won't Answer, Cannot Answer
> When I create the filter it makes me type in one of the above values
> instead of letting me select it from a pull-down such as how BIDS works -
> what am I doing wrong here?
>

Wednesday, March 7, 2012

Report Layouts

I have a report that I want to create and I would like to know the best way
to lay it out. I want a report that looks like a full page form (i.e., like a
survey form). Would I use a table with many detail rows for each row I want
on my report or is there a better way?A table has fixed rows and columns... If your form is MORE than fixed rows
and columns , then you would probably need to start wth a list.. A list
allows more flexible layout than a table..
--
Wayne Snyder MCDBA, SQL Server MVP
Mariner, Charlotte, NC
I support the Professional Association for SQL Server ( PASS) and it''s
community of SQL Professionals.
"Mike Collins" wrote:
> I have a report that I want to create and I would like to know the best way
> to lay it out. I want a report that looks like a full page form (i.e., like a
> survey form). Would I use a table with many detail rows for each row I want
> on my report or is there a better way?|||I had just started looking at lists. Thanks for confirming that I was finally
heading the right direction.
"Wayne Snyder" wrote:
> A table has fixed rows and columns... If your form is MORE than fixed rows
> and columns , then you would probably need to start wth a list.. A list
> allows more flexible layout than a table..
> --
> Wayne Snyder MCDBA, SQL Server MVP
> Mariner, Charlotte, NC
> I support the Professional Association for SQL Server ( PASS) and it''s
> community of SQL Professionals.
>
> "Mike Collins" wrote:
> > I have a report that I want to create and I would like to know the best way
> > to lay it out. I want a report that looks like a full page form (i.e., like a
> > survey form). Would I use a table with many detail rows for each row I want
> > on my report or is there a better way?