Refresh a combobox options using ajax

51 views
Skip to first unread message

droid.cl...@gmail.com

unread,
Aug 21, 2013, 10:07:34 AM8/21/13
to zk-ui...@googlegroups.com
Give a z:select component, and a "refresh" button, I would to refresh the options inside the combobox with fresh values from the database. I have a controller that is already doing the search and returning of the result set. I then have a javascript function that looks like so:

function loadOrganisations(){
${ g.remoteFunction(
action : 'orgOptions',
controller : 'person',
update:'testco'
)}
}

It calls the controller and action returns the values just fine current as <option>item</option> etc. This works if working with g:select but that view I have uses zkui and don't know how to archive this or what to do perhaps in the composer?!? Please help!

Reply all
Reply to author
Forward
0 new messages