Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want something simple in jaydata. I want to run a query and return true or false. For example
var existingPatients = Database.Test.filter("Id", "==", 5);


and then if it returns true i want to update the specific patient of add him

PHP
$.getJSON("http://www.json-generator.com/j/bMeLdrhCGa?indent=4", function (result) { //
               $.each(result, function (i, jsonfield) {
                   var existingPatients = Database.Test.filter("Id", "==", jsonfield.Id).toArray();
})
});
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900