麦粉社区
>
帖子详情

使用API打开报表报错

高级开发 发表于 2022-3-15 10:17
发表于 2022-3-15 10:17:05

使用api打开报表,代码如下:                

String resId = "a46a76341756d921e8e096bbb250b0f9";

                Report report = new Report(conn);

                report.open(resId);

                System.out.println(report);

                List fields = report.getFields();

                System.out.println("fields=" + fields);

执行后报错:

Exception in thread "main" smartbi.sdk.RemoteException: 调用远程方法出现错误:没有找到该报表:a46a76341756d921e8e096bbb250b0f9

        at smartbi.sdk.ClientConnector.internalInvoke(ClientConnector.java:580)

        at smartbi.sdk.ClientConnector.remoteInvoke(ClientConnector.java:338)

        at smartbi.sdk.service.simplereport._ClientReportService.openQuery(_ClientReportService.java:41)

        at smartbi.sdk.service.simplereport.Report.open(Report.java:129)


这个服务器连接的是:

https://demo.smartbi.com.cn/smartbi

可以在页面里打开此报表。

请查看一下错误的原因?如何修复?

发表于 2022-3-15 15:37:07
同样也报错。
466036230421bbfdcc.png
回复

使用道具 赞 举报

发表于 2022-3-15 10:35:19
这个应该是报表资源类型不对哈,这个接口只能用来打开灵活分析报表
回复

使用道具 赞 举报

发表于 2022-3-15 11:01:53
7173462300178ab076.png

即席查询应该用什么打开?
回复

使用道具 赞 举报

发表于 2022-3-15 15:10:00
5085762303bc7ec148.png
回复

使用道具 赞 举报

高级模式
B Color Image Link Quote Code Smilies
您需要登录后才可以回帖 登录 | 立即注册

4回帖数 0关注人数 1625浏览人数
最后回复于:2022-3-15 15:37

社区

指南

AI

搜索

快速回复 返回顶部 返回列表