|
13.01.2009, 18:32 | #1 |
Участник
|
Infolog: using prefix with one message
I'm currently using the infolog to warn users when they have entered a duplicate employee.
X++: setprefix('Customer record added has one or more duplicate name and search-name combinations:'); while select blah........ { info(strFmt('Name: %1, Name Alias: %2, Group: %3, Currency: %4', tCustTable.Name,tCustTable.NameAlias,tCustTable.CustGroup, tCustTable.Currency)); } How do I get the full size infolog with only one message in it (or one prefix containing one message)? Working in AX4.0 SP2 |
|
15.01.2009, 08:38 | #2 |
Участник
|
Цитата:
X++: hasPrefix = false; X++: hasPrefix = true; It will force infolog to appear as a tree in any case. |
|
|
За это сообщение автора поблагодарили: bakingtheiron (1). |
15.01.2009, 09:48 | #3 |
Участник
|
addone more setPrefix call in the "root" method. For example if you are calling the method from a RunBase descendant, add setPrefix(this.caption()) to the start of the run() method
|
|
|
За это сообщение автора поблагодарили: bakingtheiron (1). |
15.01.2009, 12:27 | #4 |
Участник
|
Цитата:
---- Цитата:
Many thanks to both of you, I didn't have much hope of getting around this problem. I cheated with my solution: X++: warning('warning message'); setPrefix(' '); //then the while, etc Thanks again guys Последний раз редактировалось bakingtheiron; 15.01.2009 в 12:39. |
|
|
|