An interesting issue came up today related to the Fiber Availability AU and the Fiber Mass Update AU. When a user updates a F_Fiber record, that causes the related FOC record to update. Because I introduced logic into the FOC updater to display a messagebox if there aren't enough available fibers, you might see that message. However, the Mass Update AU can also cause other edits to connected fibers....those fibers will also result in their related FOC features getting updated. So, unfortunately, we were seeing a lot of message boxes popping up.
The solution that i came up with, which does seem like a bit of a hack, is too NOT display the messagebox unless a certain amount of time has elapsed. The code for this is now in Telvent.SE.FiberAvailabilityPercentage AU. It actually seems to work rather nicely, but what would really be nice is if there was a good way to determine what edit transaction we were in.
UPDATE - Stetson is suggesting that I listen for OnStopEditOperation. Interesting approach.
No comments:
Post a Comment