Page 1 of 1

Chat app - no request section

Posted: Fri Mar 13, 2015 8:18 am
by Mariusz

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.

Image

How can I do this?

Thanks
M


Chat app - no request section

Posted: Fri Mar 13, 2015 9:30 am
by Illya Stepanov

Hi -

Please take a look here, for how to change the old mapping to new one -- http://devcenter.appery.io/documentat...


Chat app - no request section

Posted: Mon Mar 16, 2015 12:38 pm
by Mariusz

Hi Illya
Thanks.

Ok. I followed that instruction and I stuck at 9:47 of this video:
Image

I tried to do such an iteration like on the video:
Image

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:

Image

And the database looks like this after 3 posts:
Image

I'd kill the database in this way.
Please help me how to solve it.

Thanks
M


Chat app - no request section

Posted: Mon Mar 16, 2015 12:40 pm
by Mariusz

Another question is how can I change the time of the posted message? (I'm in another time zone)

Thanks.


Chat app - no request section

Posted: Tue Mar 17, 2015 7:49 am
by Egor Kotov6832188

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


Chat app - no request section

Posted: Tue Mar 17, 2015 8:33 am
by Mariusz

Hi Egor,

I changed the invoke to messageListService but still I have the same issue.
Image

And the app:
Image

What should I change then?

Thanks.
M


Chat app - no request section

Posted: Tue Mar 17, 2015 8:43 am
by Egor Kotov6832188

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


Chat app - no request section

Posted: Mon Mar 23, 2015 8:14 am
by Mariusz

@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


Chat app - no request section

Posted: Wed Mar 25, 2015 2:50 am
by Yurii Orishchuk

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.