Page 1 of 2

Is it possible to edit more than one database entry at a time?

Posted: Mon May 25, 2015 1:17 am
by Ellen Schlechter

I want to be able to have an option where a user can select a group of entries to edit all at the same time. I could probably do that with a check box. I would want it this way so if all entries need the same changes made, they could do it once for many entries instead of repeatedly for every single entry.

I don't know if that makes sense at all but I basically want to use an update service to update more than one entry at a time.


Is it possible to edit more than one database entry at a time?

Posted: Mon May 25, 2015 9:55 am
by Serhii Kulibaba

Hello Ellen,

Sure, you can update multiple items at a time. You should combine "where" and "operations" parameters:
https://devcenter.appery.io/documenta...


Is it possible to edit more than one database entry at a time?

Posted: Mon May 25, 2015 8:52 pm
by Ellen Schlechter

Ok I looked at that and found what I think I should do. I followed this part of the article and used it as a model for what I want to do. Image
I want it so that if "yes" is in the update column of an item, it updates those values. Here is how I set it up in the request. Image Image
Then I tried to test it but got an error. I don't have anything entered in the Query String or Headers part of the test. Do you know what I could've done wrong? Image


Is it possible to edit more than one database entry at a time?

Posted: Wed May 27, 2015 9:08 am
by Serhii Kulibaba

Please remove "/{_id}" from the service's URL


Is it possible to edit more than one database entry at a time?

Posted: Wed May 27, 2015 1:43 pm
by Ellen Schlechter

Thank you for that. I think it is working. Now my next question is is there a way to change component with button click? I have a list of database items then I have a button that says "Select All". So once a user clicks that button, is there a way that it can change to a checkbox so a user can pick and choose which are selected?


Is it possible to edit more than one database entry at a time?

Posted: Fri May 29, 2015 11:30 am
by Alena Prykhodko

Hello,

Sorry, but not clear enough, please tell more detailed.
[quote:]So once a user clicks that button, is there a way that it can change to a checkbox so a user can pick and choose which are selected? [/quote]

Do you mean populated data should be shown in checkbox instead list after button being clicked?


Is it possible to edit more than one database entry at a time?

Posted: Fri May 29, 2015 11:57 am
by Ellen Schlechter

Yes. Or another option could be it is shown in a checkbox right away but the box that gets checked does appear until they click a button.


Is it possible to edit more than one database entry at a time?

Posted: Wed Jun 03, 2015 8:39 pm
by Serhii Kulibaba

You can check all checkboxes from checkbox group "mobilecheckboxgroupName" with nex JS code:preApperyio("mobilecheckboxgroupName").find("input").prop("checked", true).refresh();/pre


Is it possible to edit more than one database entry at a time?

Posted: Wed Jun 03, 2015 8:43 pm
by Ellen Schlechter

Ok thanks but not the real problem. I need to hide the input of the checkbox component so that just words are there.


Is it possible to edit more than one database entry at a time?

Posted: Thu Jun 04, 2015 5:40 am
by Alena Prykhodko

Ellen,

This probably can be done with custom CSS.