27
Views
3
Comments
Solved
Load older Messeges
Application Type
Reactive

I am trying to create a "chat" where only the 2 newest messages will be by default loaded and to read older messesges you have to scroll up, upon scrolling up the older messeges will load, 

since i am a newbie perhaps someone has any good idea or knowledge how to do this


Solution

Hi Ignacy Krokos,

follow these things

1. create a local variable list of chat and append initially only last 2 records

2. create a screen action which will fetch all messages and clean the local list variable append all messages into the local list variable 

3.just add one more button near by send button will be show only when only two records are showing  button-> up

4. on this button add javascript 

5. on scroll up action do this (javascript)

Hope this will help.

Thanks 

Prince

    

 

Solution

Well i have solved this i simply forgot to use a list :), however implemtning the JS is also usefull :)

thanks and welcome.. keep asking n support 

Solution

Hi Ignacy Krokos,

follow these things

1. create a local variable list of chat and append initially only last 2 records

2. create a screen action which will fetch all messages and clean the local list variable append all messages into the local list variable 

3.just add one more button near by send button will be show only when only two records are showing  button-> up

4. on this button add javascript 

5. on scroll up action do this (javascript)

Hope this will help.

Thanks 

Prince

    

 

Solution

Well i have solved this i simply forgot to use a list :), however implemtning the JS is also usefull :)

thanks and welcome.. keep asking n support 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.