0

我无法使用 getAttributeValue() 方法从关系属性中获取值。

我了解此功能是传统方式,但是否有任何替代方法或解决方法?

4

1 回答 1

0

getAttributeValue() 返回关系项的数据库 ID。您可以使用以下函数来处理关系属性:

getEntryRelationshipAttrib

String[] Entry::getEntryRelationshipAttrib(String sAttribPath)

给定一个关系属性路径,返回一个长度为 2 的数组,其中包含:[0]=相关项目的目录名称,[1]=相关项目的主键,用于相关项目。如果属性 sAttribPath 不存在或不是关系类型,将抛出异常

getItemUsingEntryRelationshipAttrib

Item Entry::getItemUsingEntryRelationshipAttrib(String sAttribPath)

返回给定关系属性路径的相关项目对象。如果属性 sAttribPath 不存在或不是关系类型,将抛出异常

于 2019-09-10T18:31:05.790 回答