zoukankan      html  css  js  c++  java
  • Cognos: Delete report version

    在Cognos中report运行结果为reportversion, 默认配置为 1。 可以在Cognos 修改report属性。

    简单代码:

    public void deleteReportVersion(String path, String[] format) throws RemoteException
        {
    
            PropEnum props[] = new PropEnum[]{ PropEnum.defaultName, PropEnum.searchPath };
    
            SearchPathMultipleObject spMulti = new SearchPathMultipleObject(path);
    
            BaseClass bc[] = this.cmService.query(spMulti, props, new Sort[] {}, new QueryOptions());
            DeleteOptions delOptions = new DeleteOptions();
    
            
            // deletereport_start_0
            delOptions.setForce(true);
            delOptions.setFaultIfObjectReferenced(false);
            delOptions.setRecursive(true);
            this.cmService.delete(new BaseClass[]{bc[0]}, delOptions);
            
        }
    



  • 相关阅读:
    django rest_framework中将json输出字符强制为utf-8编码
    Java
    Java
    Oracle
    IDEA
    Ubuntu
    Ubuntu
    Ubuntu
    Ubuntu
    Oracle
  • 原文地址:https://www.cnblogs.com/xue88ming/p/7182993.html
Copyright © 2011-2022 走看看