Formatting in Form, NAV2009SP1 Classic

NabucoNabuco Member Posts: 65
In invoice lines I have a special field added which contains the letter W by default. This letter is formatted with 2 diff. colours (3 if you count std. Black) according to possible sub-records found.

My problem: When entering a value in some of the first fields is performs correctly. When entering data i field no. 4 suddenly all lines Looses the colour-formatting. When scrolling up in lines on the special field it gets "normal" again.

In field 4 I have inserted, in trigger OnAfterValidate, CurrForm.Signal.UPDATE - but it does not Work. (Signal is the name of the text-box).

I simply can't figure out why and how to solve this. Any good ideas would be appreciated.

Answers

  • MBergerMBerger Member Posts: 413
    You need to put formatting code like this in the control Onformat() trigger.
  • NabucoNabuco Member Posts: 65
    MBerger wrote:
    You need to put formatting code like this in the control Onformat() trigger.

    Not quite sure what you mean by "code like this.....". The colour-formatting is of course coded in the OnFormat-trigger in the textbox containing the "W" - but it does take effect when entering data in field 4 (with or without the line "CurrForm.Signal.UPDATE.
  • vaprogvaprog Member Posts: 1,141
    Check whether the values your decision as to which color to display is based on, are available at the time you consume them. For instance if you set up some precondition in the OnAfterGetCurrRecord or OnValidate trigger, your condition will not evaluate to what you expect.
Sign In or Register to comment.