I want to modify the existing OrderID column in a report to be a hyperlink. So added the following <Action>
code. But it's throwing the following error. Could someone please help with this. I'm fairly new on working with SSRS Reports.
Thanks in Advance.
Error:
Unhandled Exception: System.Web.Services.Protocols.SoapException:
System.Web.Services.Protocols.SoapException: The report definition is
not valid. Details: The element 'Textbox' in namespace
'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'
has invalid child element 'Action' in namespace
'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'.
List of possible elements expected: 'Style, ActionInfo, Top, Left,
Height, Width, ZIndex, Visibility, ToolTip, DocumentMapLabel,
Bookmark, RepeatWith, CustomProperties, Paragraphs, CanGrow,
CanShrink, HideDuplicates, ToggleImage, UserSort, KeepTogether,
DataElementName, DataElementOutput, DataElementStyle' in namespace
'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'
as well as any element in namespace '##other'. at
Microsoft.ReportingServices.WebServer.ReportingService2005Impl.CreateReport(String
Report, String Parent, Boolean Overwrite, Byte[] Definition,
Property[] Properties, Warning[]& Warnings) at
Microsoft.ReportingServices.WebServer.ReportingService2005.CreateReport(String
Report, String Parent, Boolean Overwrite, Byte[] Definition,
Property[] Properties, Warning[]& Warnings) at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall) at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters) at
Microsoft.SqlServer.ReportingServices2005.ReportingService2005.CreateReport(String
Report, String Parent, Boolean Overwrite, Byte[] Definition,
Property[] Properties) at
RdlSync.Repository.RemoteRdlRepository.AddRdl(IRdlFile file) at
RdlSync.Controller.RdlReconciler.Sync(Boolean commit, Boolean useMd5,
Boolean force) at RdlSync.Program.Main(String[] args)
.RDL file code:
<Body>
<ReportItems>
<Rectangle Name="RectMain">
<ReportItems>
<Tablix Name="tblMainReport">
<TablixBody>
<TablixCell>
<CellContents>
<Textbox Name="orderID">
<Action>
<Hyperlink>="javascript:window.location='QuickSearch.aspx?searchType=1&amp;searchValue=" & Fields!OrderId.Value & "'"</Hyperlink>
</Action>
</Textbox>
</CellContents>
</TablixCell>
.....</TablixBody>
....
</ReportItems>
</Body>