Page 2 of 3

Create service reliant on list service not registering to database

Posted: Thu Jun 04, 2015 6:54 pm
by Serhii Kulibaba

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


Create service reliant on list service not registering to database

Posted: Thu Jun 04, 2015 7:13 pm
by Logan Wells

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


Create service reliant on list service not registering to database

Posted: Tue Jun 09, 2015 6:47 am
by Serhii Kulibaba

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


Create service reliant on list service not registering to database

Posted: Tue Jun 09, 2015 10:16 am
by Logan Wells

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


Create service reliant on list service not registering to database

Posted: Wed Jun 10, 2015 6:59 am
by Serhii Kulibaba

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.


Create service reliant on list service not registering to database

Posted: Wed Jun 10, 2015 8:54 pm
by Logan Wells

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


Create service reliant on list service not registering to database

Posted: Wed Jun 10, 2015 9:19 pm
by Logan Wells

(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


Create service reliant on list service not registering to database

Posted: Thu Jun 11, 2015 9:17 am
by Serhii Kulibaba

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


Create service reliant on list service not registering to database

Posted: Thu Jun 11, 2015 3:01 pm
by Logan Wells

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


Create service reliant on list service not registering to database

Posted: Fri Jun 12, 2015 7:34 am
by Serhii Kulibaba

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.