Page 1 of 1
Confirmation message after saving
Posted: Wed May 29, 2013 7:22 am
by hayden.sanders
Hi,
I have a button that saves and image and data to the database. Currently there is no way to know if the save function worked for the user. I want a message to appear once the save function has finished. Something like "Great! your image has been saved" Can anyone help?
Confirmation message after saving
Posted: Wed May 29, 2013 8:36 am
by Kateryna Grynko
Hi,
You can use the following JavaScript code on Success event:
codealert("Great! your image has been saved");/code
Confirmation message after saving
Posted: Wed May 29, 2013 8:40 am
by hayden.sanders
Ok cool. Sorry I'm a really new to this. I know how to add the JS you just posted - but i dont know where. As in, were do I find the success event to add the JS?
Confirmation message after saving
Posted: Wed May 29, 2013 8:57 am
by Kateryna Grynko
Hayden,
You can run the JS on the Rest Service success event. What is the service your button invokes?
Confirmation message after saving
Posted: Wed May 29, 2013 9:04 am
by hayden.sanders
It runs a database create service. I followed the instructions for how to save an image to the database from the Appery tutorials
Confirmation message after saving
Posted: Wed May 29, 2013 9:11 am
by Kateryna Grynko
So you can run the code on Database Create service Success event.
Confirmation message after saving
Posted: Wed May 29, 2013 9:14 am
by hayden.sanders
Great - that was perfect. Thanks