本帖最后由 KearneyKang 于 2017-7-11 19:05 编辑
您好
我们现在正在进行问题排查,找到有效的解决办法之后会给你答复!
现在我们的测试结果是可以通过导航跳转到报表进行设置可以获取单元格的值,但是还没找到怎么解决获取整行的数据办法
如下代码供参考:
<script type="text/javascript">$(function () {
var viewer = GrapeCity.ActiveReports.Viewer({
element: '#viewer',
report: {
id: 'ReportSaleCourseSum.rdlx'
},
reportService: {
url: '/ActiveReports.ReportService.asmx'
},
uiType: 'desktop',
reportLoaded: function () {
reportsButtons.prop('disabled', false);
},
renderMode: 'Galley',
action: function (actionType, actionParams) {
if (actionType === 2) {
//console.log(actionParams);
alert(actionParams.element[0].innerText)
}
},
localeUri: 'Scripts/i18n/Localeuri.txt'
});
var uiTypeButtons = $('#btnUIType button');
uiTypeButtons.bind('click', function (ev) {
ev.stopImmediatePropagation();
uiTypeButtons.removeClass('active');
var target = $(ev.target);
target.addClass('active');
viewer.option('uiType', target.attr('data-bind'));
});
var reportsButtons = $('#btnReport button');
reportsButtons.bind('click', function (ev) {
ev.stopImmediatePropagation();
reportsButtons.removeClass('active');
var target = $(ev.target);
target.addClass('active');
var reportOption = {
id: target.attr('data-bind')
};
reportsButtons.prop('disabled', true);
viewer.option('report', reportOption);
});
});
</script>
|