24.11.2012, 00:21 | #1 |
Участник
|
Query range
привет,
Query q = new Query(); QueryBuildDataSource qbds; ; qbds = q.addDataSource(tablenum(Table1)); SysQuery::findOrCreateRange(qbds, fieldnum(Table1, Field1)).value(a); SysQuery::findOrCreateRange(qbds, fieldnum(Table1, Field2)).value(b); Both ranges for Field1 and Field2 works as AND expression. Is it possible somehow handle those ranges as OR expression, between those fields? |
|
24.11.2012, 07:54 | #2 |
Участник
|
http://www.axaptapedia.com/Expressions_in_query_ranges
X++: queryBuildRange.value(strFmt('((%1 == %2) || (%3 == %4))', fieldStr(Table1, Field1), a, fieldStr(Table1, Field2), b)); |
|
|
За это сообщение автора поблагодарили: Kent (1). |
24.11.2012, 14:21 | #3 |
Участник
|
Thanks
|
|