var cptName = this.options.form.getWidgetByName("cptName").getValue();
window.location = "${servletURL}?reportlet=" + cptName
其实第一个var cptName = this.options.form.getWidgetByName("cptName").getValue();是支持的,不支持下面一句而已,修改成下面函数
App 端的 JS 接口-https://help.fanruan.com/finereport/doc-view-586.html