employees: ko.observableArray([
new employee(201, "Gerald", "574-234-1234", 101),
new employee(202, "Andy", "574-234-2345", 102),
new employee(203, "Ed", "574-234-3456", 102),
new employee(204, "Bill", "574-234-4567", 103),
new employee(205, "Frank", "574-234-5678", 103),
new employee(206, "Chris", "574-234-6789", 104),
new employee(207, "Dave", "574-234-7891", 104),
]), loadEmployees: function () {
OData.read(_serviceURL + "/HRdata?$filter=Status eq 'A' and length(HomeDeptCode) eq 6&$orderby=LastName",
function (data) {
viewModel.employees.removeAll();
$.each(data.results, function (index, item) {
viewModel.employees.push(ko.mapping.fromJS(item));
});
});
},--
You received this message because you are subscribed to the Google Groups "KnockoutJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to knockoutjs+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.