DannyC wrote:It's definitely something with
- Code: Select all
workOrderForm.InputsJiwaGrid.ActiveSheet.RowCount
.
Whenever a work order is edited and saved, the RowCount is 0. Even when scrolling to another work order.
This is caused by some fairly recent changes we made to the Work Order form to try and improve performance.
It's caused by the form removing all its handlers when the status combo selection changes, setting the business logic property status, and then adding back the handlers again. This was done to prevent the form responding to events whilst the business logic was busy getting and setting quantities for each input item in each stage which was causing the form to display the same item multiple times.
By removing the handlers and re-adding them it's causing your handler to now be fired before the forms handlers - so the active row, rowcount and other properties of various grids isn't what you would expect in the ReadEnd event anymore.
If we had an event from the form which is raised whenever an input item has been displayed, this would make this a lot easier - so I've added that improvement
DEV-8318 for you.
In the meantime, there might be something we can do to work around this - I'll have to come back to this later and try a few things out.