1、需要修改的类路径
web.DHCBL.RQ.ServerConfig
2、方法名:
GetReportServiceUrl
3、修改代码如下,即可使用外网访问润乾报表
/// w ##class(web.DHCBL.RQ.ServerConfig).GetReportServiceUrl("192.144.外网ip地址后两位")
ClassMethod GetReportServiceUrl(website As %String = "") As %String
{
;拆分: 报表服务器地址(可能是IP或者网站) 端口 工程名称(网站名称)
;w ##class(web.DHCBL.RQ.ServerConfig).GetReportServiceUrl()
;serverName + ":" + serverPort + appmap
s myserverName="192.144.外网ip地址后两位"
s myserverPort="8080"
s myAppMap="runqianReport"
s website=$g(website)
s website="192.144.外网ip地址后两位"
s myUrl="http://"_myserverName_":"_myserverPort_"/"_myAppMap_"/"
s myUrl = ##class(web.DHCBL.RQ.RepServerConfig).GetReportServiceUrl(website)
q myUrl
}
评论