The BeforeOpen event occurs when a window opens. It occurs before the Microsoft Dynamics GP window open event.
window_BeforeOpen(OpenVisible As Boolean)
• window – A window object.
• OpenVisible As Boolean – If True, the window opens invisibly.
Microsoft Dynamics GP typically uses the window open event to set default field values in the window, such as a default document date or a sort list selection. You can use this event to set default field values in the window, while still allowing default values set by the accounting system to override your defaults.