SetModelDrillthroughReports 方法
将一组钻取报表与某个模型关联。
命名空间: ReportService2010
程序集: ReportService2010(在 ReportService2010.dll 中)
语法
声明
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetModelDrillthroughReports", RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub SetModelDrillthroughReports ( _
Model As String, _
ModelItemID As String, _
Reports As ModelDrillthroughReport() _
)
用法
Dim instance As ReportingService2010
Dim Model As String
Dim ModelItemID As String
Dim Reports As ModelDrillthroughReport()
instance.SetModelDrillthroughReports(Model, _
ModelItemID, Reports)
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetModelDrillthroughReports", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void SetModelDrillthroughReports(
string Model,
string ModelItemID,
ModelDrillthroughReport[] Reports
)
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetModelDrillthroughReports", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
public:
void SetModelDrillthroughReports(
String^ Model,
String^ ModelItemID,
array<ModelDrillthroughReport^>^ Reports
)
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetModelDrillthroughReports", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
member SetModelDrillthroughReports :
Model:string *
ModelItemID:string *
Reports:ModelDrillthroughReport[] -> unit
public function SetModelDrillthroughReports(
Model : String,
ModelItemID : String,
Reports : ModelDrillthroughReport[]
)
参数
- Model
类型:System. . :: . .String
模型的完全限定 URL,其中包括文件名和 .smdl 文件扩展名。
- ModelItemID
类型:System. . :: . .String
要为其设置模型钻取报表的模型中的模型项的 ID
- Reports
类型:array<ReportService2010. . :: . .ModelDrillthroughReport> [] () [] []
一个 ModelDrillthroughReport 对象的数组。
注释
The table below shows header and permissions information on this operation.
SOAP Header Usage |
(Out) ServerInfoHeaderValue |
Native Mode Required Permissions |
UpdateContent on Model AND ReadProperties on each report in Reports |
SharePoint Mode Required Permissions |
ViewListItems()()()() on Model AND F[:Microsoft.SharePoint.SPBasePermissions.ViewListItems] on each report in Reports |
If there are no drillthrough reports defined, the user will be directed to a dynamically generated clickthrough report.
Drillthrough reports can be single-instance or multiple instance. , You can set one of each type of ModelDrillthroughReport for a model item. You specify the type of the model drillthrough report by setting the Type property of the ModelDrillthroughReport object to a valid DrillthroughType enumerator value of Detail for single-instance or List.
When SetModelDrillthroughReports is called, the previous model drillthrough reports are replaced with the supplied set of drillthrough reports.
To remove a specific model drillthrough report, omit its entry from Reports when you call the SetModelDrillthroughReports method.
You can supply an empty value for the Reports parameter to remove all model drillthrough reports for this entity.