Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

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

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

Hello Ellen,

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

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

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

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

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

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

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

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?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

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

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?

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

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

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

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

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

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

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

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

Ellen,

This probably can be done with custom CSS.

Return to “Issues”