我正在尝试从事件中提取细节,我设置了
entryListFields = [1000000161, 1000000217, 1000005781];
entry_result = arserver_user.getEntry (form,entry_info_list[0].getEntryID(entryListFields);
但是,此entry_result
不仅返回所请求的3个数据字段,而且还返回以下字段:1, 30376000, 303524200, 303524300
。
当我使用value = entry_result.get (1000000161);
时
它返回“None”
发布于 2020-08-01 05:15:58
您可以使用Jython API,它是AR Java API的Python包装器:
https://communities.bmc.com/docs/DOC-19318
以下是文档中一些示例查询代码:
def get_entry():
"""This is how to return a single entry using the getEntry method
"""
try:
schema = 'User' # We define our form here
entry_id = '000000000000001' # We define our target entry_id here
# How to return an entry with all fields
entry = ars.getEntry(schema, entry_id, None)
print(entry)
# How to return an entry with certain fields (Field ID 1,2,3,4,5 in this scenario)
entry = ars.getEntry(schema, entry_id, [1, 2, 3, 4, 5])
print(entry)
# How to loop through and print entry, accounting for null values w/ toString method
entry = ars.getEntry(schema, entry_id, None)
for i in entry:
print '%s: %s' % (i, entry[i].toString())
except ARException, e:
print(e)
https://stackoverflow.com/questions/61157168
复制