AX2012 multiple enum values as query filter选择多个枚举值当过滤条件
classDeclaration
{
QueryBuildRange qbrLocationType;
}
datasource.init()
{
super();
qbrLocationType = WMSLocation_ds.query().datasourceNo(1).addRange(fieldnum(WMSLocation,HV_LocationType));
}
datasource.executeQuery()
{
;
qbrLocationType.value(queryRange(HV_LocationType::StackLocation,HV_LocationType::WrkCtrLocation));
//qbrLocationType.value(queryRangeConcat(qbrLocationType.value(),HV_LocationType::StackLocation)); 可以加多个间隔的枚举值
//qbrLocationType.value(queryRangeConcat(qbrLocationType.value(),HV_LocationType::WrkCtrLocation));
super();
}
sysQuery类有各种过滤值的方法,可以研究。