cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Mainly api problem

SS_10715016
6-Contributor

Mainly api problem

I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.0.1

1. Modify the width of the text box, not the cell

2. Make a statistical report to count the process time, the approval time of each person at each node, the average approval time of each person and each process, the running to end time of each process, etc. What I currently think of is to use the advanced search API to find out all the process information, and then handle it myself. How to use this API to construct the data you need, and the meaning of its parameters
QuerySpec qs = new QuerySpec(ActiveViewLink.class);
qs.setAdvancedQueryEnabled(true);
SearchCondition sc = new SearchCondition(ActiveViewLink.class, "tableId", SearchCondition.EQUAL, id);
qs.appendWhere(sc, ai);

3. Requirements: A1, A2, B1, B2, delete the latest version of the object generated in DCN, that is, delete version B. First delete the association of the generated object (which api should be used), and then use PersistenceHelper.manager.delete(part) to delete the version. Does this delete B2 or version B.

 

Translated by the Community Moderation using Google Translate
-----------------------------------------------------------------------------------------------

I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.0.1

1.修改文本框的宽度,不是单元格

2.做一个统计报表,统计流程时间,每个节点每个人的审批时间,每个人每个流程平均审批时间,每个流程的运行到结束时间等。目前想到的是用高级搜索的api查出全部流程信息,然后自己处理。怎么使用这个api去构建自己需要的数据,其参数的含义
QuerySpec qs = new QuerySpec(ActiveViewLink.class);
qs.setAdvancedQueryEnabled(true);
SearchCondition sc = new SearchCondition(ActiveViewLink.class, "tableId", SearchCondition.EQUAL, id);
qs.appendWhere(sc, ai);

3. 需求:A1,A2,B1,B2,删除DCN中产生对象的最新版本,也就是删除B版本。先删除产生对象的关联(该使用哪个api),然后使用PersistenceHelper.manager.delete(part)删除版本,这个是删除B2,还是会删除B版本。

1 REPLY 1
avillanueva
22-Sapphire II
(To:SS_10715016)

I am not sure what to make out of this question. You have 3 random questions which looks like your requirements from your customer or site. These should be broken up into 3 different posts with screen shots or more specificity to each. This board has a lot of helpful people but your not going to get folks to do your work for you.

Announcements


Top Tags