![]() |
#15 |
Участник
|
Была проблема с like. Решил её так:
X++: QueryBuildDataSource qbdsIJT; QueryBuildRange qbrIJT; Query query = New Query(); QueryRun queryRun; FreeText rangeValue; Dimensions dimensions; ; qbdsIJT = query.addDataSource(TableNum(Dimensions)); qbdsIJT.addSelectionField(FieldNum(Dimensions, Description)); qbdsIJT.addSortField(FieldNum(Dimensions, Description)); qbrIJT = qbdsIJT.addRange(FieldNum(Dimensions, Description)); [B]rangeValue = strFmt("*АХО*, *Складская логистика (РЦ)*");[/B] qbrIJT.value(rangeValue); info(qbdsIJT.toString()); queryRun = New QueryRun(query); while (queryRun.next()) { dimensions = queryRun.get(tablenum(Dimensions)); info(dimensions.Description); } |
|