I have search element, with suggest body, that uses custom proxy. Like this:
{
id: "searching",
view: "search",
suggest: {
keyPressTimeout: 50,
body: {
url: "myProxy->load.php",
dataFeed: "myProxy->load.php"
},
on: {
onValueSuggest: function (obj) {
console.log(obj);
}
}
}
}
It’s working fine with user’s manual input, but I can’t figure out how to start search in code. After I set $$(‘searching’).setValue(‘searchme’) nothing happens (obviously). I tried $$(‘searching’).callEvent(‘onkeypress’) with no effect