|
![]() |
#1 |
Участник
|
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(); } |
|
![]() |
#2 |
Участник
|
Цитата:
Сообщение от 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(); } |
|
![]() |
#3 |
Участник
|
axaptaTable.ExecuteStmt("select * from %1 where %1.InvoiceDate == 24\11\2009");
пробовал и так и так. ничего не изменилось. |
|
![]() |
#4 |
MCTS
|
а запись в таблице за 24 ноября есть?
__________________
![]() В глухомани, в лесу Несмотря на красу Дни проводит Лиса Патрикевна. Я никак не пойму Отчего, почему Не пускают куму На деревню |
|
![]() |
#5 |
Участник
|
|
|
![]() |
#6 |
Участник
|
Цитата:
Сообщение от 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 |
|