使用 Remedy 客户端,我可以查看有关我的团体票证的信息,但我尝试使用 arsys java api 获取相同的信息,但没有任何好的结果。我得到了文件名,但无法获取字段的数据条目。我对单击表单按钮时获得的表格内容感兴趣。这是一些代码:
`ctx.setServer(serverName);
ctx.setUser(userName);
ctx.setPassword(userPassword);
try {
ctx.verifyUser();
//Auth. OK
List<Field> fields = ctx.getListFieldObjects("NO Main Control Panel");
System.out.println(fields.size());
for(int i=0; i<fields.size(); i++){
System.out.println(fields.get(i).getName());
}
int[] ids = new int[fields.size()];
int index = 0;
for (Field field : fields) {
ids[index++] = field.getFieldID();
}
String strQualifier = "'Ticket Id TT'=\"NO0000001128408\"";
QualifierInfo officiallyQualified = ctx.parseQualification("NO Main Control Panel", strQualifier);
List<Entry> entries = ctx.getListEntryObjects("NO Main Control Panel",
officiallyQualified, 0, Constants.AR_NO_MAX_LIST_RETRIEVE, null, ids, true, null);
System.out.println(entries.size());
} catch (ARException e) {
System.out.println(e.getMessage());
}`
这是我得到的一些错误:
ERROR (286): Display only fields cannot be included in a query to the database; 536871034
提前致谢