Force Input

bhuber
Member Posts: 78
On the Customer card, I would like to force the user to input a Customer Posting Group. The Not Blank Property only does this if the user enters a value in this field. How can I force input even if the user does not enter a value in this field?
0
Comments
-
One way of doing this is to put TESTFIELD(Customer Posting Group) on the ONINSERT triger of the form. But you have to set the DELAYINSERT trigger to 'No' or else you can not even start to insert a record.
The only problem with this is that the customer number is not inserted until the whole card is filled in and you move to the next record.
The other option is to put TESTFIELD(Customer Posting Group) on the ONMODIFY trigger of the customer form. ONINSERT gets called with a blank record and puts the customer number in the record.
The problem with this is if you change a record with no Customer Posting Group you are forced to enter on. Of course this may be an advantage.
PAul Baxter0 -
Hi,
You can put TESTFIELD("Customer Posting Group") in On Qurey Close Form () trigger,the system won't allow the user to come out of the Customer Card screen until the Customer Posting group filled.
Mohan babu0 -
This is an ongoing (problem?) situation in Navision. It is simply not designed to force users to enter a specific field. Any work around you come up with will either
1. Wipe out several fields worth of data when it errors and rolls back.
or
2. The user can by pass the error (by not closing the form and instead inserting or moving on the another record. (This doesn't fire the OnQuerryCloseForm trigger)
The best solution I have ever found is to have the users click a "Test" button. This validates all fields and produces a Message not an error of what is wrong/missing. Now the problem here is that the users have to press the button. At some point a user must be held accountable. You could also add a new field that get populated when the users "tests" the new record.
Bill Benefiel
NCPS,NCSD,NCDS
Manager of Information Systems
Overhead Door Company of Indianapolis
billb@ohdindy.comBill Benefiel
NCPS,NCSD
Manager of Information Systems
Overhead Door Company of Indianapolis
billb@ohdindy.com0
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