I need to grab the snaphot number ( the snaphot dropdown on the sales order window ) when the user clicks a custom button ( on the utilities band)
I have this bit of code below. It works however only gives me the last snaphot number ( 2 in this case ). and NOT the one I have selected on the drop down ( snaphot 1). In my test both snapshots have not been processed.
- Code: Select all
Public Sub SalesOrderForm_Toolbar_ToolClick(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinToolbars.ToolClickEventArgs)
If e.Tool.Key = SO_FILE_EXPORT_BUTTON_NAME Then
Dim SalesOrderForm As JiwaFinancials.Jiwa.JiwaSalesUI.SalesOrder.BaseSalesOrderEntryForm = DirectCast(sender, Infragistics.Win.UltraWinToolbars.UltraToolbarsManager).DockWithinContainer
msgbox ("Current history no = " + SalesOrderForm.SalesOrder.CurrentHistoryNo.ToString)
what am I doing wrong here ?