Показать сообщение отдельно
Старый 28.04.2016, 13:18   #6  
iiipoizone is offline
iiipoizone
Участник
 
43 / 11 (1) +
Регистрация: 07.09.2015
Тему видел.
Нужен для AX 2009.
посмотрел SharedProject_KCAI_EventExtension.zip со сравнением. На удивление в xpo нет никаких изменений. Даже некоторые методы в классах отсутсвуют в xpo
Для AX 4.0 проект код очень сильно отличается

Попробую сделать как здесь:
Цитата:
tatic str getFieldValueFromCode(str _fieldByCode, common _buffer)
...
// if the table exists
if (bufferTable)
{
parentBuffer = _buffer;
// the table here is the "parent" table to _buffer
// it comes to a parent table: we need to locate one
if (tId != _buffer.TableId)
{
// Realised for Sales and Purchase orders only
// Sales orders
if ((tId == tableNum(SalesTable)) && (_buffer.TableId == tableNum(SalesLine)))
{
parentBuffer = SalesTable::find(SalesLine::findRecId(_buffer.RecId).SalesId);
}
// Purchase orders
if ((tId == tableNum(PurchTable)) && (_buffer.TableId == tableNum(PurchLine)))
{
parentBuffer = PurchTable::find(PurchLine::findRecId(_buffer.RecId).PurchId);
}
}

Последний раз редактировалось iiipoizone; 28.04.2016 в 13:25.