code

dharshan
Member Posts: 37
Hi,
could any ony tell me how to check whether code field is blank or not?
thanks in advance!!!
could any ony tell me how to check whether code field is blank or not?
thanks in advance!!!
0
Comments
-
when do you want to check it?
on opening of a form or closing of a form or inserting a record,etc?
more info on what you are trying to do will help alot with the answer.0 -
i am entering a record in the form, on validating that field i must check whether the field is blank. if so then the user must not go to next field.0
-
there is a property on the field called NOTBLANK - you can set that to yes,
But if the user never enters that field the message will not be triggered.
So I would search he forum for "Mandatory Fields" you will find many posts.0 -
Hi,
Thanks for your quick response. =D>
whether that notblank will check only for primary key field or for all fields.0 -
You can set every field you want mandatory to "not blank"=yes
once the field is filled it will always give you an error message if you try to "clear it".
as I said if the field is passed over then "not blank" does not help. you need to check in another way.
as I said searching for "mandatory" or "not blank" you will find many posts.
a good way is also described here:
http://dynamicsuser.net/forums/t/23883.aspx0 -
HI,
After reading those post i inserted TESTFIELD("Code"); ondeactivate trigger but is showing an error message you must fille the code in field item code and closing the form.
inserting a field and blocking that will be good in my case. is there any other way.
](*,) ](*,) ](*,)0 -
The error message is unclear to me.
that trigger isn't the one i'd use.
Basically the steps are Oninsert the field "blocked" is set to TRUE!
Onvalidate of the blocked field (when the person goes to UNCHECK it to make it active)
it then checks the fields you want to have mandatory using a simple testfield code.David Singleton wrote:Basically in the on validate trigger of the "blocked" field you add code likeTestfield('My Field 1"); Testfield('My Field 2"); Testfield('My Field 3"); etc.
This way when you try to unblock the customer you won't be able to till you fill in themissing fields.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