UpviseJS : Filter Users on your Web app

on the web app, there is a standard user combobox filter displayed on the top right of the toolbar. You can use this to filter your current screen result with the selected user.

Use Where.addOwner(where) static method to append to your where clause the additional filter.


function showList() {
    var where = "status=1";
    where = Where.addOwner(where);
    var items = Query.select("contacts", "id;name", where);
    .....
}

Warning: