I had this problem recently, and found the "managed object methods" of the PSXP_RPTDEFNMANAGER:ReportDefn class useful.
There are a bunch of methods for managing the report definition. I've only tried the Delete method, opting to delete and reconfigure the report definition with the new data source (there's also a SetDatasource method if you dare trying that).
This is the code I used:
import PSXP_RPTDEFNMANAGER:ReportDefn;
(create PSXP_RPTDEFNMANAGER:ReportDefn("REPORT_DEFN_ID")).Delete();
本文提供了一种在XMLP报表中删除已定义错误数据源的解决方案,通过使用PSXP_RPTDEFNMANAGER:ReportDefn类的管理方法,实现了删除并重新配置报表数据源的操作。
562

被折叠的 条评论
为什么被折叠?



