sales order CurrentHistoryNo explanation required  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

sales order CurrentHistoryNo explanation required

Postby indikad » Wed Jan 18, 2017 4:33 pm

Sales Order window - ver 7.0.157
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 ?
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2

Re: sales order CurrentHistoryNo explanation required  Topic is solved

Postby Mike.Sheen » Wed Jan 18, 2017 6:39 pm

Hi Indika,

SalesOrder.CurrentHistoryNo is the number of the most recent (current) snapshot. You want SalesOrder.SelectedHistoryNo instead.

Mike
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2445
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 757

Re: sales order CurrentHistoryNo explanation required

Postby indikad » Wed Jan 18, 2017 7:39 pm

Thanks heaps!!
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2


Return to Technical and or Programming

Who is online

Users browsing this forum: Google [Bot] and 11 guests