Wednesday, 15 April 2015

javascript - Save data into sql server using custom method in lightswitch html client -



javascript - Save data into sql server using custom method in lightswitch html client -

how save info on button click(not using save icon given popup screen). tried utilize custom method below. info not saving in sql database.

myapp.addeditapplicantdeclaration.submitmethod_execute = funcation(scree) { msls.application.commitchanges().then(null, function fail(e) { alert(e.message); msls.application.cancelchanges(); throw e; }); };

i created button , write _execute method. not saving info base. missing here. simple table , trying update issummitted column "applicant" table.

i save info using myapp.commitchanges(); ... can included within validation under _execute of button have above

javascript html5 visual-studio-lightswitch

No comments:

Post a Comment