How to detect the first modification in a form?

hazem
Member Posts: 187
Hello everybody,
I have a form with a header and a subform. I want to display an error message only once; the first time the user modify any field in the form. What is the best solution to do this?
I have a form with a header and a subform. I want to display an error message only once; the first time the user modify any field in the form. What is the best solution to do this?
0
Comments
-
And why you do not change the form to non-editable. Than you do not need such an error...0
-
I HAVE to show the error message only once. The user must be able to modify fields and the first time he modify a field he got the error message "it's better to not modify the field!"). After that the user can choose to continue modification of fields and the message will not be displayed again.
Please how to do this?0 -
why don't You ask a confirmation message in the OnModifyRecord trigger (Do You really want to modify? It's highly recommended to not...)0
-
You can do it in another way - have non-editable form, add one buton. This button must be pressed, warning is showed and the form is enabled for editing... :-) there are many ways how to solve one task...0
-
The OnModifyTrigger is not activated when the user modify a field but only after going to another recordor colosing the foirm... and that's not what i need. What i need is that: when the user start modifying the value of any field in the form he got the warning message. The idea of adding a button is good but is there other solution with which we don't have to modify the structure of the form? The solution i found is to add this message in the trigger OnInputChange of all the fields but that takes a lot of time!!!! Is there other solution?0
-
No, there is no such thing like the IsDirty attribute in MSCRM. I suggest just go by the button solution.0
-
You need to look at this from correct point of view:
Navision is DB applications driven by Events (triggers). If you want to do something and you cannot find correct trigger for that, you need to create your "own" trigger and make the user to use this trigger in correct time.
For this example it is " creating new button which will trigger what you want, and by disabling editing make user to press this button when he want to edit the form". For example, it can be some rectangular button in left bottom corner of the form with some icon... :-)
I can not see another simple solution for that... Because there is no simple event for "beginning of modifications"...0 -
Sorry but that doesn't work like i want. I think there's no solution to detect the first modification in a form rather than adding the code displaying the message in the trigger PnInputChange of all the fields!! That's boring to do but that's the only solution i found and that doesn't modify the apparence of the form :?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