Тема: axcoder: setPrefix
Показать сообщение отдельно
Старый 16.05.2007, 19:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
axcoder: setPrefix
Источник: http://axcoder.blogspot.com/2007/05/setprefix.html
==============

The first line which I always write at the start of the 'run' method in a RunBase descenant is:


setPrefix(this.caption());


Settings prefixes is very useful for detect causes of errors later.

There are also very useful macros: PrefixField, PreFixFieldValue

For example, this code will set prefix to the: ": _item.itemID"

void processInventTable(InventTable _item)
{
;
setPrefix(#prefixField(_item, itemID));
...


BTW, I think it will be also great to have a good logging system in Ax, infolog is not enough

Источник: http://axcoder.blogspot.com/2007/05/setprefix.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.