Tuesday, May 15, 2007

setPrefix

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: "

5 comments:

  1. you mention that "Settings prefixes is very useful for detect causes of errors later", may i know why?? and how u use the prefix to catch the error.

    ReplyDelete
  2. If you use prefixes your infolog shows you later in what phase your process was broken.

    For example if you have exception "WRONG USE OF FUCTION" it will be more useful to have such prefixes as:

    Payroll capculation > Employee XYZ > Tax calculation > VAT > Wrong use of fuction

    ReplyDelete
  3. Thats really informative. Thanks max.

    I am newbe, but picking things very quickly & soon be implimenting the AX.

    Keep it up man....

    Regards,
    Mahmood

    Cool WebDirectory
    Your IT Solutions
    SEO & Web Hodting Blog

    ReplyDelete
  4. Hi Max.

    I was trying send to mail to you, but I got a deliverable error for belugin@mail.ru.

    Have you got some e-mail address?

    Thanks.

    ReplyDelete
  5. mbelugin at gmail.com

    ReplyDelete