Formatting in Form, NAV2009SP1 Classic

Nabuco
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.
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.
0
Answers
-
You need to put formatting code like this in the control Onformat() trigger.0
-
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.0 -
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.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions