Report Viewer - SSRS settings/parameters and List Viewer
Hello
I have 2 questions. Using SharePoint 2010, data are stored in SQL 2012
1. SSRS Report Viewer - is there a way to display parameter panel with the question on the top of the web part or left side (it shows on the right side)? Can't seem to find that setting, but seen some samples of the reports that show parameters drop
down on top of the Viewer.
2. Using List View Web part to display the items from the external content (sql), but can't seem to find a way to select the record without going into details for this record. In other words - I'd like to display a table with few records, have an ability
to select the record and pass the ID as a parameter to the report, but also give a user ability to view details of each record. Is there a way to add the radio button or something like that next to each record?
Thank you!
Alla Sanders
Hello,
This is the answer for 1. This is the way I did it. So, use content editor webpart. Add this script to the webpart. Script shows a label and a dropdown list and attach a javascript function to onchange event of dropdown list. Onchange event creates the dynamic
report url and open that report url in new browser window.
<span>Report parameter one : </span>
<select onchange="loadreport(this.selectedIndex); id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
<script type="text/javascript">
function loadreport(index) {
var ddcars = document.getElementById("cars");
var carname = ddcars.options[index].value;
var rpt = "http://yourserver.com/MA/SIP/_layouts/ReportServer/RSViewerPage.aspx?rv:RelativeReportUrl=/MA/SIP/SC_Reports/Location_Reports/YourReportName.rdl&DefaultItemOpen=1&rv:HeaderArea=None&rv:DocMapMode=Collapsed&rv:toolbaritemsdisplaymode=152&rp:CarName=" + carname + "&rv:ParamMode=Collapsed" ;
window.open(rpt);
</script>
Hope this can help!
Thanks!
Similar Messages
-
Date Parameters and List of Values (error message date format cannot be nul
I'm new to BI Publisher. I began with a simple report that has 4 parameters. The parameters are center code, sales date, customer number, and job number. I am trying to create a list of values on my customer number based on the center code and sales date entered by the user. My query for my LOV is:
select customer_nbr
from ticket
where center_cd = :center
and trunc(trans_date) = :salesDate
salesDate is defined as a date parameter with a format of MM-dd-yy. It's default value is 04-10-07.
When I attempt to view my report after adding the LOV, I receive the error:
Date format can not be null.
What am I doing wrong? Also, I would like the salesDate to default to the current date. I have tried using sysdate as the default value. This isn't working. The salesDate defualts to null when it is set to sysdate."Date - allows the user to enter a date as a parameter. Note that the data type must also be "Date" and the format must be Java date format."
Page 4-9, Adding Parameters and Lists of Values
Oracle® Business Intelligence Publisher
Report Designer's Guide
Release 10.1.3.4
Part No. E12187-01 -
Hi Regarding selection parameters and list box
Hi
This is the test Progra I am Checking for List but
When ever , After selecting from list , if press enter the value is going off,
and after executing I couldn't read P_int
when i am not geting any value into p_int.
REPORT YTEST_VINESH1.
*TYPEPOOLS
TYPE-POOLS : vrm.
*Tables
DATA DICLARATION.
DATA : name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
data: itab like lfa1 occurs 0 with header line.
DATA:P_INT1(20) TYPE C.
*SELECTION SECREEN
PARAMETER : p_int AS LISTBOX VISIBLE LENGTH 20.
*INITIALIZATION.
initialization.
select * from lfa1 up to 10 rows into table itab .
AT SELEECTION EVENTS
AT SELECTION-SCREEN OUTPUT.
name = 'P_INT'.
loop at itab.
value-key = sy-TABIX.
value-text = itab-lifnr.
APPEND value TO list.
endloop.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list.
CLEAR list.
*START-OF-SELECTION.
START-OF-SELECTION.
MOVE P_INT TO P_INT1.
WRITE:/ 'HAI HOW R U',P_INT1.
Thanks & Regards,
[email protected]Hi,
Check this sample code:
REPORT ZDROP_DOWN_LIST.
TABLES: LFA1.
TYPE-POOLS: VRM.
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
PARAMETERS: P_LIFNR LIKE LFA1-LIFNR AS LISTBOX VISIBLE LENGTH 20.
DATA: BEGIN OF IT_ITAB OCCURS 0,
LIFNR LIKE LFA1-LIFNR,
LAND1 LIKE LFA1-LAND1,
NAME1 LIKE LFA1-NAME1,
END OF IT_ITAB.
INITIALIZATION.
SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO IT_ITAB .
VALUE-KEY = IT_ITAB-LIFNR.
WRITE IT_ITAB-LAND1 TO VALUE-TEXT .
CONCATENATE VALUE-KEY VALUE-TEXT
IT_ITAB-NAME1
INTO VALUE-TEXT SEPARATED BY '~'.
APPEND VALUE TO LIST.
ENDSELECT.
NAME = 'P_LIFNR'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
START-OF-SELECTION.
WRITE:/ P_LIFNR. -
How to create parameters and list of values in BI Publisher
Hello friends,
I'm Using BI Publisher 10.1.3. I tried creating a report based on a column's data for ex: dept_no
in the data model i specified the table name to select all columns
I created the list of values taken as type-sql query. in the query I've written select dept_no from dept
In the parameters section i gave it as integer and default value as * parameter type as menu then i selected the list of value name that i previously specified..
now the problem is when I run the report I get all the data inspite of selecting the parameter from which I need that particular deptno's data
What could be the reason
pls let me know
Thanks and RegardsIn your main data model query, have you used this parameter to limit the data to the selected department?
Eg. select dept_name from depts where dept_no = :p_dept
where :p_dept is your parameter..
Thanks! -
Controlling execution of subreport on main Report in ssrs 2008 R2
Controlling execution of subreport on main Report in ssrs
Hi,
Am using more than 100 subreports in my main report using ssrs 2008 R2.
And given conditional Visibility in sub reports based on the Parameter selection in main Report . But the performance is very very slow in main report.
While selecting single sub report executes in seconds. The same report in main report executes in hours.
According to my view,
All the Sub reports executes and finally conditional visibility is working. Can we Control executing sub reports?
Regards, Gayathri devi P.S. : Please click the 'Mark as Answer' button if a post solves your problem! :)Hi,
I think the time to render 100 report sure will be long time and the main report want to render those reports.
So first why you do not separate those report on many reports for different purpose.
second if this is a dashboard report you may use many matrix in the same report and the parameters passed by default or based on expression.
I really hope if you make your report as dashboard report, many matrix many parameters render it once. As I remember I think SSRS will try to execute your
DataSets in parallel which will reduce your waiting time.
I hope this is helpful.
Elmozamil Elamir
MyBlog
Please Mark it as Answered if it answered your question
OR mark it as Helpful if it help you to solve your problem
Elmozamil Elamir Hamid
http://elmozamil.blogspot.com -
BI publisher report does not displays parameters in dashboard
HI to all,
I have created a report in BI publisher with Parameters and list of values and it works as expected while running it through the BI Publisher.
I also added it into a dashboard, the dashboard displays the report correctly but it doesn't allow me to select/choose the list of values or to prompt for other values.
I wonder now if there is something wrong with the Publisher report and/or the dashboard or maybe OBIEE does not allows to place BI publisher report with parameters inside a dashboard.
Thanks
RobertoIf you embed the Bi publisher Report, you won't be able to see the parameters. Instead bring it in as a Link and then when you click on the link you should be able to see a new window pop up with parameters showing.
Alternatively, you can create dashboard prompts and have the publisher report filtered via those prompts.
Thanks! -
QSUF (Query string url filter) and SQL Server reporting services report viewer parameters
Hi,
this is my issue:
I have a SQL Server reporting services web part on a page with a report with 1 parameter, lets say it's a client list
Then i have a QSUF that will be used to filter the clients list through the URL
However, once i connect the filter and the report viewer web part, the parameter goes away and is no longer accessible
I'd like to somehow keep the parameter visible, in case there is no parameter sent through the URL, i would like the user to be able to choose a client from the parameter drop down list
I saw that there is a "send empty if no values are passed" option, but i can't seem to get this working properly and i don't know if this option will make the parameter visible again
Any help would be appreciated
Thanks.Hi,
According to your post, my understanding is that the query string url filter web part not worked well with SQL server reproting services web part.
Did you use the Wiki page layout in your environment?
You can change the page to a web part page, then check whether it work.
There is a similar thread for your reference.
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/4d7584e3-8e1a-48bf-9346-32f8cb480dd1/query-string-url-filter-web-part?forum=sharepointgeneralprevious
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
I have reports in SSRS. I am using remote reports. Reports have multiple pages.
In IE, the print button displays, but in Firefox and Chrome, it does not display.
Below links shows how to display the print button for mozilla and chrome. These solutions only fire the print for the
current page in the report viewer-
http://stackoverflow.com/questions/951009/sql-reporting-services-print-button-not-shown-in-mozilla
http://stackoverflow.com/questions/4208457/ssrs-print-button-in-chrome-and-firefox
I need to be able to issue a print command for all
pages in one go from the reportviewer.Hello,
The common workaround about print button on ReportViewer control for non-IE browsers is add ActiveX print control or create Print function. It has pros and cons.
I am not good at programming. But you can try to disable page breaks by setting InteractiveHeight to 0 so that the report will rendering in single page with Report Viewer control.
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
Database query using report parameters in Report Viewer 2008 and CR-XI
Hi - I have written a report for in-house use on an Access database. The report uses parameters to filter the record selection for reporting. The report operates fine in Crystal XI, but in Crystal Report Viewer 2008, the parameters are not shown and appear to be inaccessible. Is there a way to query the database in CRV2008, as opposed to simply showing the data that was saved from CR-XI in the report? Would I have to use the Crystal Server to do this? Is there a no-cost solution that I could use instead of CRV2008 for such functionality?
Thanks - BarneyHi Barney,
As noted CRV is for reports with saved data only, no prompting allowed. I'll move this post to the OnDemand forums, possibly they have suggestions a s work around.
You should call our Sales team and describe your situation, possibly they have a low cost solution for you.
If you have a .NET or Java developer available you could always write and host your own WEB app that would be simple to use and should not take to much to do.
We have samples that you could use so most of the work is done for you.
Thank you
Don
CORRECTION: Report Viewer is handled by the Report Design Forum so moving the psot back
Edited by: Don Williams on Jan 4, 2010 9:42 AM -
Cisco Secure ACS 5.4/Monitoring and Report Viewer - SNMP Settings
Hello Everyone.
I hope this is the right forum for my question.
We just purchased 8 1121 ACS 5.4 appliances. I have some familiarity with the older 1113 and 1120 appliances running ACS 4.2. So I have a lot to learn.
Right now I'm trying to understand the Monitoring and Report Viewer System Configuration. I set the SNMP V2 read comm. string to the same string I configured from the CLI.
etc-labacsb1-1/admin# show runn | inc snmp
snmp-server contact "ACS1121;XXXXX"
snmp-server location "B1 Lab"
snmp-server community XXXXXX ro
1) It was not the same string as configured on CLI. Does setting this give me access to query more than system type or server type MIB objects.
2) Can you provide an example? (for example to query a switch - snmpwalk -v 1 -c XXXXXX hostname 1.3.6.1.4.1.9.9.43)
3) What is the MIB object tree OID (1.3.6.1.4.1.9.???) for these ACS appliances?
Thanks in advance.
Ray Westphal
EHIthat's correct. here is what we have in ACS 5.4 for snmp.
ACS 5.4 supports Simple Network Management Protocol (SNMP) to provide logging services. The SNMP agent provides read-only SNMPv1 and SNMPv2c support. The supported MIBs include:
•SNMPv2-MIB
•RFC1213-MIB (MIB II)
•IF-MIB
•IP-MIB
•TCP-MIB
•UDP-MIB
•CISCO-CDP-MIB
•ENTITY-MIB
http://www.cisco.com/en/US/docs/net_mgmt/cisco_secure_access_control_system/5.4/device_support/sdt54.html#wp71020
~BR
Jatin Katyal
**Do rate helpful posts** -
Report Viewer Web Part - Override Parameters
We have recently upgraded our SharePoint 2010 farm to SharePoint 2013. When using the report viewer web part, we are now unable to override parameters and have them persist. This functionality was previously working in SharePoint 2010.
A report viewer web part is added to a page
The parameters are loaded in the web part settings, and the option to override the default parameter is selected and populated with the desired value.
After pressing OK, the report loads as expected.
After pressing "Stop Editing" on the page, the report still appears as expected.
If the page is reloaded, the parameters have been removed.
I'm at a loss as to where to start troubleshooting this issue. Any advice is appreciated.
Thanks
PS There are similar issues noted on the forums about issues with SSRS parameters, which appear related to having debug="true" set in the web.config file. I've checked the web.config, and the debug setting is currently set to false.When you modify the page, do you have personalization enabled? In other words, are you modifying the shared version of the page?
There won't be much harm from removing and reinstalling SSRS. Just make sure to delete your SSRS Service Application beforehand. Also, you will lose any stored credentials that were deployed into your environment.
Dimitri Ayrapetov (MCSE: SharePoint) -
Web Part - Report Viewer - Override Parameters are not saving
When I select the override option and check the one parameter out of the list and click apply, or OK, the Web Part refreshes and resets the parameter list with all the items checked again.
Hi Developer_46038,
i tried this steps in sharepoint 2013 SP1,
· A report
viewer web part is added to a standard page
· The parameters are loaded in the web part settings, and the option to
override the default parameter is selected and overridden with the desired value.
· After pressing OK, the
report loads as expected.
· After pressing "Stop Editing" on the page, the
report still appears as expected.
· If the page is reloaded, the
parameters have been removed.
seems the issue reproducible there, i already submit a request for checking, but i cannot make any guarantee regarding the time process.
if should you need urgently, please open a ticket,
http://support.microsoft.com
Regards,
Aries
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. -
SSRS exporting to excel from Report Viewer is not respecting boolean critera
Symptom:
What's happening is that we are selecting a
set of criteria eg: start date, drop down filter and a bit field.
After running the report against this criteria it comes up in the report viewer with the correct results.
However after we export the current results to Excel the results in Excel are different because it seems
that exporting
re-ran the report without the selected bit field when SSRS should have taken the current run and converted it. This isn't happening on all bit fields either
which is the oddest part. However all of the bit parameters are setup the same in the RDL.
We're Loading the report into and rendering it in the Report Viewer control and then leveraging the Report Viewer's Render Routine to export on a button click.
The result to Excel.
<asp:imagebutton
ImageUrl="/Images/excel.png"
id="btnExportExcel"
runat="server"
ToolTip="Export to Formatted Excel"
Height="20"
Width="20"
/>
...logic to setup the out parameters in the Render routine.
bytes = ReportViewer1.ServerReport.Render("EXCEL",
Nothing, mimeType, encoding, extension, streamids, warnings)
Response.Buffer =
True
Response.Clear()
Response.ContentType = mimeType
Response.AddHeader("content-disposition",
"attachment; filename=" & ReportViewer1.ServerReport.ReportPath.Split("/")(2) &
"." + extension)
Response.BinaryWrite(bytes)
Response.Flush()
Response.End()
I wanted to know if anyone has seen this odd behavior and if there's situation where the server would re-render the report when exporting to a particular format? I would also like to add that no errors
came up either.Report Viewer 2008
ProductVersion
FileVersion FileName
10.0.30319.1
10.0.30319.1 ...\Microsoft.ReportViewer.Common.dll
10.0.30319.1
10.0.30319.1 ...\Microsoft.ReportViewer.WebForms.dll
Report Server
SQL Server 2008 R2
Report Server Version
Microsoft SQL Server Reporting Services Version 10.50.2769.0
2008 RDL's
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner"> -
Crystal report viewer does not observe the PaperSize and PageOrientation setting
Hi:
My application is a 3 tier application, where the WinForm client is connected to the WCF Services hosted in IIS server.
The report is generated on server side using WCF service, and export as.rpt with data, the .rpt file is then sent to the WinForm client, the Crystal Report viewer is used to load the .rpt file for preview and print.
On server side I've Microsoft XPS Document Writer installed and set as default printer. On the client side if the default printer is XPS or Nitro PDF creator, the report can be view and print correctly, report design in landscape will be able to show in the landscape in CR viewer, report design using custom paper size (e.g. Half Letter), CR viewer able to show it in Half Letter.
The problem that I'm facing is when the default printer is set to HP LaserJet P1120 or others (I've tried Epson ESC/P Standard driver), the report is always shown in the portrait, and it will not be able to show in custom paper size either. Here is my code:
Dim settings As New System.Drawing.Printing.PrinterSettings
Dim rep as New ReportDocument
rep.Load(sOutputFileName) 'The report is download from server and save in sOutputFileName
SetReportPaperSize(rep, sPaperSizeName, False, settings) ' sPaperSizeName store the name of the custom paper used in the report
CrViewer.ReportSource = rep
Public Shared Sub SetReportPaperSize(rep As ReportDocument, paperSizeName As String, isHardCopy As Boolean, settings As Printing.PrinterSettings)
Dim installedPrinters As Printing.PrinterSettings.StringCollection = Printing.PrinterSettings.InstalledPrinters
Dim printers As New List(Of String)
Dim sPrinter As String
If installedPrinters.Count = 0 Then
Return
End If
SetPrinterDefaultPaperSize(rep.PrintOptions, paperSizeName, settings)
With rep.PrintOptions
.PrinterName = settings.PrinterName
.PaperSource = PaperSource.Auto
If paperSizeName.Trim.Length > 0 Then
.PaperSize = DirectCast(GetPapersizeId(paperSizeName, settings, rep.PrintOptions.PaperSize), CrystalDecisions.Shared.PaperSize)
End If
End With
End Sub
Public Shared Sub SetPrinterDefaultPaperSize(printOptions As PrintOptions, paperSizeName As String, settings As Printing.PrinterSettings)
With settings.DefaultPageSettings
If paperSizeName.Trim.Length = 0 Then
. PaperSize = GetPaperSize (printOptions.PaperSize, settings)
Else
For Each size As Printing.PaperSize In settings.PaperSizes
If size.PaperName.EqualsTo(paperSizeName) Then
.PaperSize = size
Exit For
End If
Next
End If
.Landscape = printOptions.PaperOrientation = PaperOrientation.Landscape
.Margins.Top = printOptions.PageMargins.topMargin
.Margins.Left = printOptions.PageMargins.leftMargin
.Margins.Bottom = printOptions.PageMargins.bottomMargin
.Margins.Right = printOptions.PageMargins.rightMargin
End With
End Sub
Public Shared Function GetPaperSize(paperSizeId As Integer, defaultPrinterSettings As Printing.PrinterSettings) As Printing.PaperSize
Dim settings As Printing.PrinterSettings = defaultPrinterSettings
Dim result As Printing.PaperSize
If settings Is Nothing Then
settings = New Printing.PrinterSettings
End If
' Default paper Size defined in the printer
result = settings.DefaultPageSettings.PaperSize
For Each size As Printing.PaperSize In settings.PaperSizes
If size.RawKind = paperSizeId Then
result = size
Exit For
End If
Next
Return result
End Function
Public Shared Function GetPapersizeId(paperSizeName As String, defaultPrinterSettings As Printing.PrinterSettings Optional defaultpaperSizeId As CrystalDecisions.Shared.PaperSize = CrystalDecisions.Shared.PaperSize.DefaultPaperSize) As Integer
Dim settings As Printing.PrinterSettings = defaultPrinterSettings
Dim result As Integer = defaultpaperSizeId
If settings Is Nothing Then
settings = New Printing.PrinterSettings
End If
If Not String.IsNullOrEmpty(paperSizeName) Then
For Each size As Printing.PaperSize In settings.PaperSizes
' Height and Width in Printing.PaperSize is measure in hundredths of an inch
If size.PaperName.EqualsTo(paperSizeName) Then
result = size.RawKind
Exit For
End If
Next
End If
Return result
End Function
Setting the PrintOptions.PaperSize and PageOrientation seem like no effect on the viewer. My code to load the report to CR viewer is much more complicated than the code I show above, I've a background worker thread to download the report, and when the worker thread finished download the report from the server, it will assign the report to CRViewer. Do the changes in report PrintOption before assign to CRViewe and after assigning to CRViewer make any different?
I'm using VS2010, CR XI R2 (Version 11.5.3700.0). Please Help. Thanks
Regards
JC VoonHi JC,
CRXI R2 is a no go with VS 2010, these two are not compatible.
With CR 11.5 use VS 2005.
Or Use VS 2010 and CR for VS 2010 (13.0)
Once you have the supported / compatible conbination of CR and VS, use the In Proc RAS .NET code from below KBA.
http://search.sap.com/notes?id=0001561333&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031353631333333
Also, see the KBAs returned by below search. The top right corner search box on this page is quite helpful.
http://search.sap.com/ui/scn#query=crystal%252C+paper%252C+orientation%252C+.net%252C+sdk&startindex=1&filter=scm_a_site(scm_v_Site11)&filter=scm_a_modDate(*)&timeScope=all
- Bhushan
Senior Engineer
SAP Active Global Support
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
Getting started and moving ahead with Crystal Reports .NET applications. -
Sharepoint 2010 Report viewer Parameters disappear after selected
Hi,
I have Sharepoint 2010 installed and pointing to a different SQL Server 2012 in Sharepoint integrated mode.
In Sharepoint if I create a new report using report builder or if I add one from reporting services server, when I execute it, it shows the parameters on the right side. When I open the list the values are ok, then if I select one of them the page do a postback
and the selected parameter value disappears and I can never run the report because if I hit Apply it gives an error saying that the parameter is not set.
If I change the report and set default value for each parameter it works well. I can change the parameters and they work great, but I don't want to set the default values and let the user choose them.
Sharepoint server is SQL Server 2012 version 11.0.3368.0
Reporting server is SQL Server 2012 11.0.3000.0
Can anybody help me with this issue?
Thanks
Carlos PereiraHi Carlos,
As per your query.. ensure your web.config has debug="false".
Still see your SP2 has been installed or not because you using SQL Server 2012 and SharePoint Server 2010.
FIXING your Reporting Service's Issues
Detail and step by step of passing multiple filter parameters to custom report viewer web part
Thanks
Indul Hassan
Maybe you are looking for
-
Hi All, Application R12.1.3 with Shared Application Tier 2 nodes Database : 11g R 11.2.0.2 with RAC 2 nodes with ASM We have a concurrent program which gets fired when submitted thru API . For each order program is run once . If there are more orders
-
What's wrong with the following result_cache hint?
Dear all, I try to use result_cache hint in the following sql aggregate function statement, but the explain plan doesn't show any difference between non-result_cached and with result_cached: SQL> set autot on explain stat SQL> select account_mgr_id,c
-
Hello all, Citi Bank has provided the BAI file format of bank statement and i have configured for uoploading this . WHen i import the file to the SAP the system picks up the GL A/c with EXT transaction types with Debit -credit key but also giving he
-
Can't create a book in iPhoto 11 (9.5)
I am trying to create a new book in iPhoto, but when I select New>Book or Share>Create>Book, it opens the book editor (I guess you call it) with a frozen loading image, and that's it. I can't change from hard cover to softcover or wire bound, or sele
-
HT4528 my volume buttons won't work on my iPhone 4s
if i try to press the buttons it wont change anything.