Skip to content

Instantly share code, notes, and snippets.

@vincentdeelen
Created March 10, 2016 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincentdeelen/4a3f1f928e9553083e9b to your computer and use it in GitHub Desktop.
Save vincentdeelen/4a3f1f928e9553083e9b to your computer and use it in GitHub Desktop.
On page load action
$.getJSON( "/pls/apex/vincentdeelen/hr/dept", function( data ) {
depts = $.map(data.items, function (el) {
return el.dname;
});
ko.applyBindings(new EmpDeptViewModel());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment