0

使用 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

提前致谢

4

3 回答 3

0

仅显示字段不会在数据库中存储任何值 - 查询中使用的任何字段都应该是常规字段。

如果您有疑问,请参阅 BMC 文档站点http://docs.bmc.com上的数据库参考

于 2014-07-17T16:41:20.440 回答
0

请指定有关表单(OOTB/自定义)和您在查询中包含的字段的更多详细信息。如果仅显示“Ticket Id TT”字段,请在 Developer tool 中检查。

于 2014-01-17T11:48:36.747 回答
0

该错误意味着您不能在资格中使用仅显示字段。从您的代码看来,Field Ticket Id TT的 id为 536871034。该字段可能是从不同的源字段填充的。尝试查看显示记录的工作流程。

于 2014-01-20T11:26:23.710 回答