Audrey
Posts: 0
Joined: Mon May 13, 2013 11:08 pm

Updating database with radio buttons

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Updating database with radio buttons

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

Audrey
Posts: 0
Joined: Mon May 13, 2013 11:08 pm

Updating database with radio buttons

What is a POST?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Updating database with radio buttons

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...

Audrey
Posts: 0
Joined: Mon May 13, 2013 11:08 pm

Updating database with radio buttons

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Updating database with radio buttons

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.

Return to “Issues”