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
0
Comments
:shock:
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!
Have you searched this forum?
Try "subform"+"Update"
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...
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
Regards
Updating should be done with timertriggers and singleinstancecodeunits.
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.
Regards
This you can activate/deactivate yourself...
I won;t know how to implement this without some timertrigger :?
Multiple Subform Sample -> uses Single-Instance Codeunit
New Multiple Subform Sample -> uses OnTimer-trigger
See also http://www.mibuso.com/forum/viewtopic.php?t=6677