Skip to Content
0
Former Member
Jun 10, 2009 at 10:02 AM

RetrieveMatchedRecordsCommand and RetrieveLimitedRecordsCommand is differ??

53 Views

first define a resultdefine:

TableId mainTableId = repository.getTableId("MT_MATS"); //主表

ResultDefinition rd = new ResultDefinition(mainTableId);

FieldId[] fieldsMT = new FieldId[5];

fieldsMT[0] = repository.getFieldId("MT_MATS", "MAT_GLDN_NUM"); //物料编码

fieldsMT[1] = repository.getFieldId("MT_MATS", "MAT_GLDN_DESC_LONG_CN"); //物料全称fieldsMT[2] = repository.getFieldId("MT_MATS", "MAT_GLDN_5497"); //物料组(5497编码) lookup field

fieldsMT[3] = repository.getFieldId("MT_MATS", "MAT_MIS_TAG"); //信息系统标识 lookup field

fieldsMT[4] = repository.getFieldId("MT_MATS", "MAT_DEL_TAG"); //删除标记

rd.setSelectFields(fieldsMT);

then i use RetrieveLimitedRecordsCommand,i can get the record and i can use

record.getLookupDisplayValue(fieldsMT[2])

get the field's display value;but when i use RetrieveMatchedRecordsCommand i can not use

record.getLookupDisplayValue(fieldsMT[2]) to get the display value again, i want to know if when i excute a matching strategy and get the matched record is same with normal query.