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:
- Make sure your use the return value of the Where.addOwner(where) method, it contains the appended where clause
- Make sure there is an owner column in your table