Custom lookup for Brach
I have a custom field on debtors which is a lookup to branch.This code worked fine in 7.0.175
but it doesn't work in 7.2.1. No error, it just doesn't display the search window when the buttonclick is clicked.
What the trick to getting it to to display in 7.2.1? Yep - in VB!
- Code: Select all
Public Sub ButtonClicked(ByVal BusinessLogicHost As JiwaApplication.IJiwaBusinessLogic, ByVal GridObject As JiwaApplication.Controls.JiwaGrid, ByVal FormObject As JiwaApplication.IJiwaForm, ByVal Col As Integer, ByVal Row As Integer, ByVal HostObject As JiwaApplication.IJiwaCustomFieldValues, ByVal CustomField As JiwaApplication.CustomFields.CustomField, ByVal CustomFieldValue As JiwaApplication.CustomFields.CustomFieldValue) Implements JiwaApplication.IJiwaCustomFieldPlugin.ButtonClicked
' Search
If CustomField.PluginCustomField.Name = "SalesDivision" Then
Dim branch As New JiwaApplication.Entities.Sales.Branch
branch.Search(FormObject.Form, "")
CustomFieldValue.Contents = branch.Description
CustomFieldValue.DisplayContents = branch.Description
End If
End Sub
but it doesn't work in 7.2.1. No error, it just doesn't display the search window when the buttonclick is clicked.
What the trick to getting it to to display in 7.2.1? Yep - in VB!