Page 1 of 2

how to overwrite a value in data base.

Posted: Wed Jan 22, 2014 6:47 am
by navya kodali

I have stored a value into database.now i want to overwrite that value with another value.how to do that?


how to overwrite a value in data base.

Posted: Wed Jan 22, 2014 7:04 am
by Kateryna Grynko

Hi Navya,

You can open a database, open a collection and change it manually. Or do you want to do this programmatically?


how to overwrite a value in data base.

Posted: Wed Jan 22, 2014 8:51 am
by navya kodali

No.
I dont want to do it manually.
My requirement is..
In my application i want to save a message which entered in text area,that message is stored in data base.i want to update that message when i retype in the same Text area box.
for eg: i have entered "navya" in text area when i click on save button that text saved in database.again i am entered in that text area as "ncpl" in data base ncpl has to store..
for this i have used read,update services.when i test those services erroe coming like:
Test failed! Please check service properties and the error details in "Response" area.

what should i do?


how to overwrite a value in data base.

Posted: Wed Jan 22, 2014 11:13 am
by Kateryna Grynko

Navya,

Take a look at here please: http://docs.appery.io/documentation/b...


how to overwrite a value in data base.

Posted: Thu Jan 23, 2014 6:26 am
by navya kodali

Thank you so much.


how to overwrite a value in data base.

Posted: Thu Jan 23, 2014 12:45 pm
by navya kodali

I am able to update and read only one object at a time. i want to update multiple objects at a time. how do i create service to pass more parameters ?.


how to overwrite a value in data base.

Posted: Thu Jan 23, 2014 1:52 pm
by Kateryna Grynko

Navya,

This is only possible for queries with general criteria, using the parameter where:
http://docs.appery.io/documentation/b...


how to overwrite a value in data base.

Posted: Fri Jan 24, 2014 7:12 am
by navya kodali

Hi There,
Thanks for helping !

But my requirment is to run update query for 2 rows. Asume i have 2 rows with ids 1,2 then i need to update those 2 rows with new date. Please guid me to complete this action.


how to overwrite a value in data base.

Posted: Fri Jan 24, 2014 11:31 am
by Kateryna Grynko

Navya,

You can update data for one record only. If you need to update data for two records, you should do it one by one for each record.


how to overwrite a value in data base.

Posted: Fri Jan 24, 2014 11:58 am
by navya kodali

If we have two text boxes and one save button how can we save these two text boxes values in database table on one button click?