|
![]() |
#1 |
Axapta
|
Цитата:
X++: static void groupUtilIdElements(Args _args) { UtilIdElements utilIdElements ; while select utilIdElements group by Name, RecordType where utilIdElements.Name == 'zipCodeReference' { info (strFmt('%1 %2', utilIdElements.Name, utilIdElements.RecordType)); } } |
|
![]() |
#2 |
Участник
|
Цитата:
Сообщение от oip
![]() Ну как же... А с while select что, все "правильно" покажет?
X++: static void groupUtilIdElements(Args _args) { UtilIdElements utilIdElements ; while select utilIdElements group by Name, RecordType where utilIdElements.Name == 'zipCodeReference' { info (strFmt('%1 %2', utilIdElements.Name, utilIdElements.RecordType)); } } Да! но парадокс в том, что в случае с неточным соответствием, а соответствием паттерну, проще говоря like, группировка срабатывает правильно!!! Попробуйте выполнить X++: while select utilIdElements group by Name, RecordType where utilIdElements.Name like "zipCodeReferenc*" { info (strFmt('%1 %2', utilIdElements.Name, utilIdElements.RecordType)); }
__________________
Axapta has seduced me deadly! ![]() |
|
Теги |
group by, query, группировка, дублирование, запрос (query), слои |
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|