Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Value = {
- ItemName:'Blue Jeans',
- Price: 2000,
- Quantity:1000
- }
- //since Id is autoincrement column, so the value will be automatically generated.
- Connection.insert({
- Into: 'Product',
- Values: [Value]
- OnSuccess: function(rowsInserted) {
- if (rowsInserted > 0) {
- alert('successfully added');
- }
- },
- OnError: function(err) {
- console.log(err);
- alert(err.Message);
- }
- });
- }
Add Comment
Please, Sign In to add comment