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

Create service reliant on list service not registering to database

Please provide us with a public app link (http://devcenter.appery.io/documentat...) and steps to reproduce.

Logan Wells
Posts: 0
Joined: Sat Oct 11, 2014 12:37 am

Create service reliant on list service not registering to database

Ok, here it is:
http://appery.io/app/mobile-frame?src...

1) Username is 1, password 2
2) There is a button right in the middle of the screen, click that to move to the test page

I reset database to help, there is no local storage also, I created this page just to test it, so I apologize for it not being of the highest quality.

Thanks so much,
Logan

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

Create service reliant on list service not registering to database

Did you change something? It works fine for me: http://prntscr.com/7eudk9

Logan Wells
Posts: 0
Joined: Sat Oct 11, 2014 12:37 am

Create service reliant on list service not registering to database

Hello,

Sorry, I am referring to a different part of the screen, my apologies for not clarifying.

The problem is occurring when I try to move the input from the bottom section to the database:

Example:

Image

Example result in DB:

Image

That is the result that occurs if I try to register multiple inputs in the DB as well.

Thanks,
Logan

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

Create service reliant on list service not registering to database

Your problem is related with collapsibleblocks which create automatically via servoce's mapping. You can create only one DB item per request, so you can get active input with JS.

Please add this JS code:
prereturn $("[name=input]:visible").val();/pre

to request parameter: http://prntscr.com/7f8r57 and remove mapping's arrow.

Logan Wells
Posts: 0
Joined: Sat Oct 11, 2014 12:37 am

Create service reliant on list service not registering to database

It worked!

Do you think I could change my database instead to an array instead of a string, so it registers them all?

Also, do you have any recommendations if there is more than one db item per request, such as making multiple services, or something?

Currently I made multiple services to register the info, but when I need it to be under the same ID it looks like this: (see reply)

Thank you all so much for your help.
Logan

Logan Wells
Posts: 0
Joined: Sat Oct 11, 2014 12:37 am

Create service reliant on list service not registering to database

(continued from comment)

Image

This is tripling the amount of service requests than hoped, and I wanted to list them all in the same place, but I am finding trouble having the ability to do so.

Any tips?

Thanks,
Logan

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

Create service reliant on list service not registering to database

You can use only one DB per request.

This is tripling the amount of service requests than hoped, and I wanted to list them all in the same place, but I am finding trouble having the ability to do so.

I am sorry, not sure I understand you correctly. Please specify your question.
Do you need update data in DB?
https://devcenter.appery.io/documenta...

Logan Wells
Posts: 0
Joined: Sat Oct 11, 2014 12:37 am

Create service reliant on list service not registering to database

Hello,

Sorry for not being clear, my apologies.

So instead of the user only inputting one value into the form (with a form being a collblock)

(for example)

Image

Currently I am registering them all with different services (for example, one service would be for the comments, one for the name for the example above), which translates into something like this in the DB:

Image

Do you have any tips or ways that I can register multiple inputs while not taking too many service requests?

Thank you so much,
Logan

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

Create service reliant on list service not registering to database

You need use one service for one request. It is impossible to create more than one item per request. But you can save all data into storage variable and use it in other services.

Return to “Issues”