After further investigation I have found the cause of the problem.
On a tree view, when a line is being edited the edit line is overlaid ontop of the original line. Any of the readonly fields are invisible, but are updated immediately with the onchange. The field which is not being updated is from the original line which does not get updated until the line has lost focus.
Two ways I can think this could be fixed:
* The onchange will also update the original line with the onchange handler - and when an edit is cancelled this line is refreshed anyway so this won't cause major issues.
* The readonly fields are not invisible - but formatting will need adding so they are displayed correctly.
Also I will check to see what the behaviour is if the field is only readonly due to a domain, I'm guessing the line would redraw?
After further investigation I have found the cause of the problem.
On a tree view, when a line is being edited the edit line is overlaid ontop of the original line. Any of the readonly fields are invisible, but are updated immediately with the onchange. The field which is not being updated is from the original line which does not get updated until the line has lost focus.
Two ways I can think this could be fixed:
* The onchange will also update the original line with the onchange handler - and when an edit is cancelled this line is refreshed anyway so this won't cause major issues.
* The readonly fields are not invisible - but formatting will need adding so they are displayed correctly.
Also I will check to see what the behaviour is if the field is only readonly due to a domain, I'm guessing the line would redraw?