Page 1 of 1

Updating database with radio buttons

Posted: Mon May 13, 2013 11:08 pm
by Audrey

How do I increment database's variable by 1 each time a radio button is selected?


Updating database with radio buttons

Posted: Mon May 13, 2013 11:10 pm
by maxkatz

You need to know the counter's current value. Do a POST, with increasing the value by one.


Updating database with radio buttons

Posted: Mon May 13, 2013 11:16 pm
by Audrey

What is a POST?


Updating database with radio buttons

Posted: Mon May 13, 2013 11:25 pm
by maxkatz

POST is a request to create data in a database. In your case, you would actually need to do a PUSH as you are updating existing data.

Appery.io database is cloud-based and works via REST APIs.

I'd highly recommend you start with this:
http://docs.appery.io/getting-started

then try a few of our tutorials:
http://docs.appery.io/tutorials

then try a few database tutorials:
http://docs.appery.io/tutorials/#Appe...


Updating database with radio buttons

Posted: Mon May 13, 2013 11:57 pm
by Audrey

I've look through the tutorial and tried out some of them, I did not find any that's on update_service specifically and I can't seem to get the put method work. Is there a tutorial specifically on how to set up the put method or update service?


Updating database with radio buttons

Posted: Tue May 14, 2013 12:04 am
by maxkatz

When you open any collection, you will see a curl command:

Image

You can also auto-generate the service via Create New Database Services

Please show us exactly what you tried and what doesn't work.