wher should i put the code!
phondaj
Member Posts: 60
I want to show a message box when user try to save or close the window, where i should i put my code!
thnx!
thnx!
0
Comments
-
take a look on trigger
Form - OnQueryCloseForm() : BooleanDo you make it right, it works too!0 -
garak wrote:take a look on trigger
Form - OnQueryCloseForm() : Boolean
i try this way but i want when users try to "save" using to close the form or next botton for item that is is mising something a want to show tu user that mesagebo end do not leav to save until all they enter all data0 -
Remember that there is no single moment when NAV saves a record. As soon as you leave a field, it is saved, as supposed to other programs where you manually have to save a record or the whole thing gets saved when leaving a record. there is one exception though : Inserting a record on a form that has the "DelayedInsert" property on.0
-
my problem is that i dont wat user to stop creating items if any necessary data is missing0
-
what you could try in that case is setting the item card to "DelayedInsert" and code your checks in the OnInsertRecord trigger of the form. Problem with this is that 1) you have to do it for EVERY form where you can add an item ( if there are any ), and 2) you are going down a dangerous road....once you do this, your client might want the same for other entities, and you wil end up altering everything in NAV.phondaj wrote:my problem is that i dont wat user to stop creating items if any necessary data is missing
This is just not the way NAV works, it's too open for that.0 -
The option I use with Master cards is that I make them blocked on insert record. Then on validate trigger of "Blocked" a function is called to check whether the required fields has been filled.CA Sandeep Singla
http://ssdynamics.co.in0 -
ssingla wrote:The option I use with Master cards is that I make them blocked on insert record. Then on validate trigger of "Blocked" a function is called to check whether the required fields has been filled.
I am recommending this way too... There is nothing like "moment when user try to save record". There are moments when user "needs to change value in this or this... field" etc.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
- 322 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
