Hi, I'm building a chat app with https://www.youtube.com/watch?v=r7bSY... video and I stuck at 4:30.
There's no Request section in the panel so I cannot connect username from login service to loginField.
How can I do this?
Thanks
M
Hi, I'm building a chat app with https://www.youtube.com/watch?v=r7bSY... video and I stuck at 4:30.
There's no Request section in the panel so I cannot connect username from login service to loginField.
How can I do this?
Thanks
M
Hi -
Please take a look here, for how to change the old mapping to new one -- http://devcenter.appery.io/documentat...
Hi Illya
Thanks.
Ok. I followed that instruction and I stuck at 9:47 of this video:
I tried to do such an iteration like on the video:
The issue is that when I log in and post a message it showes up.
Right after that I get a few hundred additional requests like undefined messages:
And the database looks like this after 3 posts:
I'd kill the database in this way.
Please help me how to solve it.
Thanks
M
Another question is how can I change the time of the posted message? (I'm in another time zone)
Thanks.
Hello Mariusz,
You have dead loop in your application.
In messageCreateService's service Success event you are calling messageCreateService service, I think you wanted to call messageListService service instead.
This is why :
1) number of calls to DB dramatically increased
2) you see undefined messages
Mariusz,
1) check DB - what values have messages
2) remove old messages, which could confuse you
3) if DB messages are empty check value mapping to request
@Egor thank you, it works.
The last thing I need to do is to let user to enter the login (which is not predefined) and remove password input field.
I just want users to enter the name and chat.
Could you please let me know how to do this modification?
Thanks
Kind regards
Mariusz
Hi Mariusz.
You can use password as one of predefined value(for example "testPassword") to login to Appery.io DB with just login.
Also don't forget that you need to signup to db to be able to login.
Also may be you don't need login to db.. (working with public collections not requires session token).
Regards.