请问在Report里如何用Groovy脚本调用Cuba的ServiceBean呢?

在Cuba的报表模块里,怎么使用Groovy脚本调用建在Cuba项目内的ServiceBean方法呢?

可以使用 AppBeans 类的静态方法来访问中间层的任何 Spring bean,例如:

def myService = com.haulmont.cuba.core.global.AppBeans.get('sample_MyService')

参考:
https://doc.cuba-platform.cn/reporting-7.1-chs/structure_groovy.html