|
发表于 2013-9-27 15:34:10
|
显示全部楼层
可以自定义函数实现,平台中提供的是- Object relationValue(String cocnept, String id, String condition, String orderRelation, String returnRelation, String dataModel)
- 查询某个关系的第一个值
- relationValue('SA_OPPerson', 'PSN01', 'SA_OPPerson.sSequence > 2', 'sCode', 'sName', '/system/data')Parameters:
- {String} cocnept
- 概念名
- {String} id
- 主键值
- {String} condition
- 过虑条件, 可以为'', 过虑条件中,使用概念名代表对象标识,使用'概念.关系名'表示一个关系, 例如: SA_OPPerson.sName = 'X5' or SA_OPPerson='XXX' and SA_OPPerson.sAge > 20
- {String} orderRelation
- 排序的关系名
- {String} returnRelation
- 返回的关系名
- {String} dataModel
- 数据模块名
- Returns:
- {Object} 给定关系的第一个值
复制代码 可以在condition中写条件 |
|