I use a global field for the keyword search. I also have a search button. The onAction method of the search button calls the keywordSearch method which does the search on the database. I read the global field value in the method to perform the search.
1> When I enter something in the global field and click the search button without clicking on the form, then global field value is empty inside the onAction script of the of the search button.
2> When I enter something in the global field, then click on the form and then click the search button, then global field value can be read inside the onAction script of the of the button.
I want the situation 1 & 2 to work.
Is this a bug or this is how it works?
Thanks[/i]
<1> should work fine. I just tested it with a textfield and a button, where that textfield is based on a global.test and that button does this: application.output(globals.test)
this was on a recordview. In what kind of view are you with that problem?
Do you have a small sample solution?
if we make the button property showClick unchecked then this problem appears.
Thanks
Hameed
then you need to call saveData if you use labels that act as a button.
Because labels can’t mostly get focus (most look and feel don’t support this)
Maybe better is in this case to enable showClick but disable the showFocus and remove the border..
i could work around it a bit more. The focus will be transfered out of the textfield now when you press a label button. (2.1.1)