I'm stocked somewhere fellas,
Imagine a header-Lines structure, by validating some fields on the lines, I'll call a procedure to update header (procedure will look at the lines to update header based on the line values), when I call the procedure, procedure query the line table, but as I called the procedure during the line transaction, new changes are not stored yet.
I used Commit, but apparantly commit is not working inside the Modify Trigger.
I also taught about checking a flag while changing the line, and call the procedure later, as procedure changes something inside the header, I cannot call it on Page or List (onAfterGetRecord), I'll get a error.
Would you please give me some Ideas?
0
Comments
Edit: An even better solution might be to pass the record as a parameter to the function, but it depends on the needs.
Peter
The only place it makes sense it if you are writing your own posting routine. Or you are batch processing.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Even without testing I'm sure this works, Thank you, I will confirm if it worked for me
The process is really independent so sending rec as a refrence was not possible, but problem completely solved, abd thank you for the heads up about: Just make sure the rest of your code supports it. this is so important, Really thanks, you helped me a lot
Thanks, I'll have it in my mind. I believe this is true, sometimes it really tickles me to use Commit, but I usually try to avoid, this Commit thing is kind of like "GOTO"!
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
CU-1:
.
.
IF not CU-2 then //CU-2 contains a COMMIT
UpdateError;
.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
RIS Plus, LLC