您好,这个不需要完整的示例,您只需要在报表钻取时,实现H5Viewer提供的Action回调函数,Action会自动在报表发生钻取时,执行函数内部内容,所以您可以把弹框加到这个方法当中
- var viewer = GrapeCity.ActiveReports.Viewer({
- element: '#viewerContainer',
- reportService: {
- url: '/ActiveReports.ReportService.asmx'
- },
-
- report:{
- id: "Reports/MoviesReport.rdlx"
-
- },
-
- uiType: 'desktop',
-
- renderMode: "Galley",
- action: function (actionType, actionParams) {
- if(actionType==“1”)
- { alert("弹出框");}
-
- });
-
- },
-
-
- localeUri: 'Scripts/i18n/Localeuri.txt',
-
- documentLoaded: function () {
- viewer.option('renderMode', 'Galley');
-
- }
-
-
- });
复制代码
|