![]() |
#21 |
Участник
|
X++: axaptaTable.ExecuteStmt("select * from %1 where %1.InvoiceDate == 24\11\2009"); |
|
![]() |
#22 |
MCTS
|
Странно
X++: CustInvoiceJour.ExecuteStmt(
"select firstonly %1 where %1.DueDate == 24\10\2005"); Ну да ладно можно воспользоваться date2StrXpp() класса Global которая проконвертит дату в string X++: ax.CallStaticClassMethod("Global", "date2StrXpp", myDate );
__________________
![]() В глухомани, в лесу Несмотря на красу Дни проводит Лиса Патрикевна. Я никак не пойму Отчего, почему Не пускают куму На деревню Последний раз редактировалось Russland; 25.11.2009 в 16:32. |
|
![]() |
#23 |
Участник
|
Цитата:
Можете привести полный код теста? Т.е. с момента создания Com-объекта и проверки того факта, что запрос что-то вернул или не вернул? Ну, в порядке бреда, можно попробовать поиграться порядком расположения года, месяца и дня. Хотя формат литерала и жестко прописан, но, может какие-то настройки есть? |
|
![]() |
#24 |
Участник
|
X++: Axapta = new Com("AxaptaCOMConnector.axapta2"); Axapta.Logon2(****); transdate = mkdate(25,11,2009); axaptaTable = Axapta.CreateRecord("CustInvoiceJour"); axaptaTable.ExecuteStmt("select * from %1 where %1.InvoiceDate == 24\11\09"); while (axaptaTable.found()) { axaptafield = axaptaTable.field("InvoiceId"); info(axaptafield.bStr()); axaptaTable.next(); } |
|
![]() |
#25 |
Участник
|
Цитата:
Сообщение от propeller
![]() X++: Axapta = new Com("AxaptaCOMConnector.axapta2"); Axapta.Logon2(****); transdate = mkdate(25,11,2009); axaptaTable = Axapta.CreateRecord("CustInvoiceJour"); axaptaTable.ExecuteStmt("select * from %1 where %1.InvoiceDate == 24\11\09"); while (axaptaTable.found()) { axaptafield = axaptaTable.field("InvoiceId"); info(axaptafield.bStr()); axaptaTable.next(); } |
|
![]() |
#26 |
Участник
|
axaptaTable.ExecuteStmt("select * from %1 where %1.InvoiceDate == 24\11\2009");
пробовал и так и так. ничего не изменилось. |
|
![]() |
#27 |
MCTS
|
а запись в таблице за 24 ноября есть?
__________________
![]() В глухомани, в лесу Несмотря на красу Дни проводит Лиса Патрикевна. Я никак не пойму Отчего, почему Не пускают куму На деревню |
|
![]() |
#28 |
Участник
|
|
|
![]() |
#29 |
Участник
|
Цитата:
Сообщение от propeller
![]() X++: Axapta = new Com("AxaptaCOMConnector.axapta2"); Axapta.Logon2(****); transdate = mkdate(25,11,2009); axaptaTable = Axapta.CreateRecord("CustInvoiceJour"); axaptaTable.ExecuteStmt("select * from %1 where %1.InvoiceDate == 24\11\09"); while (axaptaTable.found()) { axaptafield = axaptaTable.field("InvoiceId"); info(axaptafield.bStr()); axaptaTable.next(); } И еще, поле CustInvoiceJour.InvoiceId не имеет признака Mandatory. Вы уверены, что для найденных записей InvoiceId указано? Может, пытаться читать RecId? Или просто подсчитывать количество шагов цикла (количество строк в выборке). Вот такой тест что даст X++: Axapta = new Com("AxaptaCOMConnector.axapta2"); Axapta.Logon2(****); transdate = mkdate(1,11,2009); for (nextI = 1; nextI <= 30; nextI++ ) { axaptaTable = Axapta.CreateRecord("CustInvoiceJour"); axaptaTable.ExecuteStmt("select * from %1 where %1.InvoiceDate == " + global::date2StrXpp(transdate)); if (axaptaTable.found()) info(strFmt("%1 YES", transDate)); else info(strFmt("%1 NO", transDate)); transdate += 1; } |
|
Теги |
com connector |
|
![]() |
||||
Тема | Ответов | |||
Проблемы с AxaptaCOMConnector | 1 | |||
Вопрос по Проектам | 35 | |||
AxaptaCOMConnector | 3 | |||
AxaptaComConnector для новичка | 8 | |||
Вопрос по AxaptaCOMConnector | 5 |
Опции темы | Поиск в этой теме |
Опции просмотра | |
|