NAV2009 Formcheck
NavNovice99
Member Posts: 5
Hi all
As a novice I hope I can get some help on this as I cannot find an appropiate trigger for this:
When a user leaves a line in a form there has to be perfomed a check for some of the fields to see they have the correct contents.
I know how to write the code/conditions but having troubles finding where to put it as most triggers seems to be operative for each field moving along the line - and I want to perform the check when user leave the line and some fields must be specially checked depending og content of other fields.
Hope someone can help
As a novice I hope I can get some help on this as I cannot find an appropiate trigger for this:
When a user leaves a line in a form there has to be perfomed a check for some of the fields to see they have the correct contents.
I know how to write the code/conditions but having troubles finding where to put it as most triggers seems to be operative for each field moving along the line - and I want to perform the check when user leave the line and some fields must be specially checked depending og content of other fields.
Hope someone can help
0
Comments
-
You should place your code in the table's OnInsert, OnModify and possibly OnRename triggers.0
-
Form type is?0
-
Hi Mohana
Its a tubular type like the sub-form on salesorders.
Vaprog: Thanks for suggestion, but have tried that also. Already when you are on first field the Inserttrigger on table is activated. The meaning of my question is that it should only perform this very special test when line is finished and you leave it (or close the form).0 -
Keep a function like release and check all the required field as you required..it will be easy to implement..0
-
Hi again Mohana
Thanks for replying - could you specify a little as I cannot grasp your idea?0 -
yeah sure,
As you said it is like a subform type..
open sales Order and goto Functions-->Release
Similarly create a function like that and loop all the lines in subform and check the fields as you required..0 -
Sorry Mohana
Feeling a little slow in my head here. Have searched forms and tables for Sales Header and SalesLines - but cannot see any Function as you describe0 -
sorry...i should have explained better..
go to sales order form
Click Functions-->Release...
Check what release function is doing..0 -
NavNovice99 wrote:Vaprog: Thanks for suggestion, but have tried that also. Already when you are on first field the Inserttrigger on table is activated. The meaning of my question is that it should only perform this very special test when line is finished and you leave it (or close the form).
Please set the form's DelayedInsert property to Yes to avoid the situation you are describing.
You may also want to search this forum for "mandatory field", as your requirement resembles that a lot.0
Categories
- All Categories
- 75 General
- 75 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

