Hello,
Please follow these steps :
- On a 4.XX version, open a purchase order with at least 2 lines. In the subform, ask the system to show the column "Promised receipt date".
- Change the promised receipt date on the header and answer yes to the question asking you if you want to update the lines.
- If ou click on the second line of the subform, all the lines are updated according to the date you entered on the header
BUT
if you click on the first line of the subform, in the field "Promised receipt date" this line is not updated !!!
Does anyone have any idea about this amazing behaviour ? It's as if the system doesn't behave the same way if you click on the first line or on one of the following lines...
0
Comments
pretty wierd
The point is, it only happens if you click into the Promised R.D. of the line. F.e. if you click into the Planned R.D. on the line after changing the Promised R.D. then the Promised R.D. will be correct but the Planned R.D. won't be! And if you click into f.e. the Description of the first line after changing the Promised R.D. then it will all be correct.
That's really weird. The only trigger that could make a difference here is the OnActivate and that contains no code. I have no idea...
:-k
What's actually happening is that when you select "update lines, yes", the lines are updated, but the form isn't refreshed.
So at this stage, the database has the right data, but the form is displaying the wrong stuff.
When you click on the subform, it triggers a refresh on the subform, so everything gets updated with the right data.
The problem is, if you click on the same field, Navision thinks that you have just reinserted the old data, like you cut and pasted it into the field. As soon as you move off the field, that change goes into the database and because of the "auto-save" prop, is immediately committed.
Haven't verified this by looking at the app, but this was my experience with something else in the past.
RIS Plus, LLC
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
RIS Plus, LLC
Its a little clunky, but way better than all of the timer based solutions.