My onFind method creates a button with a method, but it doesn't work in find mode.
- Code: Select all
var form = controller.getName()
var frm = solutionModel.getForm(form)
var ofgMeth = solutionModel.newGlobalMethod('function totRec(event){var source = event.getElementName();globals.g_search = source}')
var x = frm.newButton('button',0,0,20,20,ofgMeth)
x.name = 'button'
forms[form].controller.recreateUI()
controller.find()
If I remove controller.find() it works.