3.2.0

How do I Press a Label Programmatically?

Is there anyway you can press a label/button programmatically in AW?
I am kind of frustrated finding clues; documentation was not a help.
Thanks in advance!
Tim
November 1,
Ok, following is the code, I am trying to accomplish clicking the button when user press enter. Any help?

var listSearchInput = new AW.UI.Input;
listSearchInput.setId("listbuttonsearchinput");
listSearchInput.onControlValidating = function(event){
listSearch.setControlClicked;}
listSearchInput.refresh();

var listSearch = new AW.UI.Label;
listSearch.setId("listbuttonsearch");
listSearch.setControlText("Search");
listSearch.setControlImage("search");
listSearch.onControlClicked = function(){
if (!listSearch.getControlDisabled())
//call function;
}
listSearch.refresh()
Tim
November 1,
Tim,
The correct command should be:
listSearch.onControlClicked();

But I think your example clearly shows an existing Bug causing a double firing event ( now I'm going to open a new thread with more details).
Tanks
Carlos
November 1,

This topic is archived.

See also:


Back to support forum