Knowing what arguments to pass into subs
Hi,
When developing plugins, different events need different things passed into the subroutines on the AddHandler....AddressOf lines.
For example,
requires
Or say
requires
Is there documentation we can turn to which describes what needs to get passed into the subroutines for various events?
My current hurdle is to find what I need to pass into the sub for JobCostForm.Job.Read event
The ultimate goal of this plugin is to fully lock a Job Costing job when the status is "Closed". And maybe provide a button on the utilities menu to unlock it if really, absolutely necessary.
cheers
Danny
When developing plugins, different events need different things passed into the subroutines on the AddHandler....AddressOf lines.
For example,
- Code: Select all
AddHandler salesOrderForm.SalesOrder.Printing, AddressOf SOPrinting
requires
- Code: Select all
Sub SOPrinting (sender As Object, e As System.eventargs, ByRef Report As JiwaApplication.PrintGroup.SalesOrderReports.SalesOrderReport)
Or say
- Code: Select all
AddHandler salesOrderForm.SalesOrder.SalesOrderLines.Changed, AddressOf SOLine_Changed
requires
- Code: Select all
Sub SOLine_Changed(item As JiwaSales.SalesOrder.SalesOrderLine, e As System.ComponentModel.PropertyChangedEventArgs)
Is there documentation we can turn to which describes what needs to get passed into the subroutines for various events?
My current hurdle is to find what I need to pass into the sub for JobCostForm.Job.Read event
- Code: Select all
Public Sub Setup(ByVal JiwaForm As JiwaApplication.IJiwaForm, ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaFormPlugin.Setup
Dim jobCostForm As JiwaJobCostingUI.MainForm = DirectCast(JiwaForm, JiwaJobCostingUI.MainForm)
AddHandler jobCostForm.Job.Read, AddressOf JobRead
End Sub
The ultimate goal of this plugin is to fully lock a Job Costing job when the status is "Closed". And maybe provide a button on the utilities menu to unlock it if really, absolutely necessary.
cheers
Danny