Modify record on Trigger: OnAfterGetCurrRecord
srp_wi
Member Posts: 6
Hello everybody,
I want to modify a record in the trigger OnAfterGetCurrRecord in a form. This form is used as a subform. When starting this form, I get an error message like: You can't modify a record in this part of code.
I hope someone can help me.
Thank you and greets
srp
I want to modify a record in the trigger OnAfterGetCurrRecord in a form. This form is used as a subform. When starting this form, I get an error message like: You can't modify a record in this part of code.
I hope someone can help me.
Thank you and greets
srp
0
Comments
-
What is it you are trying to do? It sounds to me you are doing something not 'Navision Like'
:shock:0 -
Hi,
I have a card-form (form1) with 2 subforms. One is a card-form (form2), too, the other is a tab-form(form3). When I choose a record on form3, I want that the Information on form2, which depends on the choosen record, updates. The problem is to give form2 the information, that form3 has changed and which record is choosen.
Thank you for your help!0 -
There were loads of topic about this.
Have you searched this forum?
Try "subform"+"Update"0 -
Sure, but there are only solutions with one subform. That's what I've found. Maybe there is a topic I have overlooked.0
-
OK
So both the subforms are based on the same record?
What is the difference between card form and tab form? Isn't this the same?
Can't you make 1 big subform with al information?
You can put a tablebox and tabbox on the same form...0 -
All Forms, the main and the two subs are all based on different records.
In my case, I have a centralized order with an order header and order lines, which contains several customers. Additional I want to show specific information about each Customer in the order line.
Hope, I could explain my problem
Regards0 -
Is the problem in updating the forms or is it the values that are shown?
Updating should be done with timertriggers and singleinstancecodeunits.0 -
Sorry, Iwas too late editing my response

I've thought about the time trigger, but I've implemented this time trigger in a few situations, but I have to say, that it is very uncomfortable, if several programmers work on the code, because it is very sensitive on changes.
Regards0 -
You can also use the NTimer DLL
This you can activate/deactivate yourself...
I won;t know how to implement this without some timertrigger :?0 -
I guess this is the example you need:
Multiple Subform Sample -> uses Single-Instance Codeunit
New Multiple Subform Sample -> uses OnTimer-trigger
See also http://www.mibuso.com/forum/viewtopic.php?t=6677No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Yes, I was looking for those but could not find them
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

