AXForum  
Go Back   AXForum > Microsoft Dynamics AX > DAX: Программирование
All
Forgotten Your Password?
Register Forum Rules FAQ Members List Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 22.04.2011, 00:09   #15  
HorrR is offline
HorrR
Участник
 
340 / 30 (2) +++
Join Date: 18.02.2008
Location: Киев
Quote:
Originally Posted by oip View Post
Ну как же... А с 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!
Tags
group by, query, группировка, дублирование, запрос (query), слои

 

Similar Threads
Thread Thread Starter Forum Replies Last Post
Непонятное подвисание queryRun.next() GBH DAX: Программирование 7 15.11.2010 11:16
Dynamics AX: QueryRun and Query Objects - Binding operation failed to allocate buffer space Blog bot DAX Blogs 0 03.04.2009 08:05
jinx: Zugriff auf die Query, QueryRun und DataSource in einer Form Blog bot DAX auf Deutsch 0 14.04.2008 18:05
Как же все-таки организованиы Query и QueryRun? VIS DAX: Программирование 4 03.07.2003 15:22
Query и QueryRun Maxim Gorbunov DAX: Программирование 3 18.05.2002 09:13

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Рейтинг@Mail.ru
All times are GMT +3. The time now is 11:25.
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Contacts E-mail, Advertising.