hayden.sanders
Posts: 0
Joined: Wed May 29, 2013 7:22 am

Confirmation message after saving

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Confirmation message after saving

Hi,

You can use the following JavaScript code on Success event:
codealert("Great! your image has been saved");/code

hayden.sanders
Posts: 0
Joined: Wed May 29, 2013 7:22 am

Confirmation message after saving

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Confirmation message after saving

Hayden,

You can run the JS on the Rest Service success event. What is the service your button invokes?

hayden.sanders
Posts: 0
Joined: Wed May 29, 2013 7:22 am

Confirmation message after saving

It runs a database create service. I followed the instructions for how to save an image to the database from the Appery tutorials

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Confirmation message after saving

So you can run the code on Database Create service Success event.

hayden.sanders
Posts: 0
Joined: Wed May 29, 2013 7:22 am

Confirmation message after saving

Great - that was perfect. Thanks

Return to “Issues”