Navision 4.0 SP 3; data is updated even after error
tomhack
Member Posts: 3
Hi all,
I am stuck in a strange situation where in though the system pops up error, the data is updated in the table.
I have written the following code in the OnModify trigger:
TESTFIELD(Status,Status::Open);
where in Status is an option field having 3 options namely Open,Released,Closed.
I am trying to modify a record which is having a Released status, system throws up an error, but the modification is effected in the table.
Kindly help...
Thanks in Advance..
Tom
I am stuck in a strange situation where in though the system pops up error, the data is updated in the table.
I have written the following code in the OnModify trigger:
TESTFIELD(Status,Status::Open);
where in Status is an option field having 3 options namely Open,Released,Closed.
I am trying to modify a record which is having a Released status, system throws up an error, but the modification is effected in the table.
Kindly help...
Thanks in Advance..
Tom
0
Comments
-
write this code in Onvalidate trigger of field
TESTFIELD(Status,Status::Open);
0 -
mohana_cse06 wrote:write this code in Onvalidate trigger of field
TESTFIELD(Status,Status::Open);
In that case, I need to code the same in all the fields' OnValidate trigger.
I want to avoid the same.....0 -
tomhack wrote:mohana_cse06 wrote:write this code in Onvalidate trigger of field
TESTFIELD(Status,Status::Open);
In that case, I need to code the same in all the fields' OnValidate trigger.
I want to avoid the same.....
This is the preferred way to do it..
what code you have in OnModify trigger?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 327 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
