1

不幸的是,我没有开发人员许可证来加入 BMC 支持者社区以获取此信息。

在整个网络上,我发现了如何创建 BMC AR System 票证,但不知道如何查询它们,或者如何解析它们。例如,我想将它们中的数据添加到 ListView 或类似中。

那么有谁知道如何在 C# 中查询/解析 BMC AR System 票证,或者可能知道任何 API 或库可以让我与它们交互吗?

4

2 回答 2

2

查询 AR 系统补救措施 ARAPI764.NET C#

这是一个关于如何查询表单并返回指定字段值的示例

BMC.ARSystem.Server arserver = new BMC.ARSystem.Server();
arserver.Login("servername", "username", "password", "");

//Search a Remedy Form Start

string RequestID = "000000000000001";

string FromForm = ((BMC.ARSystem.EntryDescription)arserver.GetListEntry("someREMEDYform", string.Format("'1' = \"{0}\"", RequestID))[0]).Description;

string qualification = string.Format("'1' = "+ RequestID );

BMC.ARSystem.EntryListFieldList fieldList = new BMC.ARSystem.EntryListFieldList();
fieldList.Add(new BMC.ARSystem.EntryListField(8));
fieldList.Add(new BMC.ARSystem.EntryListField(3));

var entryList = arserver.GetListEntryWithFields("someREMEDYform", qualification, fieldList, 0, 0);

Console.WriteLine(entryList[0].FieldValues[8]);
Console.WriteLine(entryList[0].FieldValues[3]);

Console.ReadLine();

//Search a Remedy Form End
于 2013-03-05T12:11:52.190 回答
0

在 C-API 指南中查找函数 ARGetList 和 ARGetEntry。ARGetList 将限定作为输入,并返回与您选择的表单的限定匹配的数组 EntryIDs。

ARGetEntry 接受一个 EntryID 和一个 ARFieldID 数组。它返回包含在字段列表(由 ARFieldIDs 指定)中的数据,用于由 EntryIDs 数组指定的记录。

麦克风

于 2012-12-07T09:14:50.437 回答