Web Service Update does not excute OnValidate or OnInsert

jcvernon9
Member Posts: 2
I am having an issue where I have an .asp webpage which creates a entrie in the my Lead table but the OnValidate code agaist each Field or the OnInsert code agasint the Lead Table does not seem to be executed. I can see this as OnInsert creates a Contact entrie in the contact table and OnValidate updates the Contract info with the new Lead info. None of this happens when the Web Service Create or Update method are called.
This is done using a Page based on the Lead Table via the Web Sevice.
Firstly should the OnValidate and OnInsert be called by the web Service?
or
If not how do you tell NAV to run the OnValidate or OnInsert code as without this ability i cannot see any use for Insert or Create methods if you are unable to run the underlying buiness logic?
My only other option is to Pass all the values using a Code Unit which is far from ideal.
Hope someone has a answer for this as i hope it is simply im doing something wrong!
Thank You
This is done using a Page based on the Lead Table via the Web Sevice.
Firstly should the OnValidate and OnInsert be called by the web Service?
or
If not how do you tell NAV to run the OnValidate or OnInsert code as without this ability i cannot see any use for Insert or Create methods if you are unable to run the underlying buiness logic?
My only other option is to Pass all the values using a Code Unit which is far from ideal.
Hope someone has a answer for this as i hope it is simply im doing something wrong!
Thank You
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