Hi to all! I am just curious if you someone has already done this. If you do, may I know how you did it? And may I know if you can share an oml file where I can base my project to?
Hello @Irapohl Cruz ,
I attach .oml bellow, please check if solve you problem.
I add this to OnRender (using SetBooleanTrue ClientAction to change Boolean var and show button):const element = document.getElementById($parameters.PopupID);let lastScrollTop = 0;element.onscroll = (e)=>{if (element.scrollTop < lastScrollTop){ // upscroll return; } lastScrollTop = element.scrollTop <= 0 ? 0 : element.scrollTop; if (element.scrollTop + element.offsetHeight>= element.scrollHeight ){ $actions.SetBooleanTrue(); }}
I don't know you want to disable button, but you can change that later.
Hope this works for you,DC
Hi Diogo! Thank you for sharing this, and I really appreciate your response. But I'm experiencing an error "cannot set properties of null (setting 'onscroll')". May I know where the problem might be?
Does this work on mobile apps too?
Hi! I managed to make it work! Thank you so much for your help! Though I'm still getting the same error.
Hi @Diogo Carvalho, may I know how I can resolve this error "cannot set properties of null (setting 'onscroll')" ? I forgot to mention that I'm developing a mobile app.
Hey mate,
Please check this component.
https://www.outsystems.com/forge/component-overview/13583/end-of-scroll-detection-o11
Hi! Thank you for providing this alternative. This is much appreciated. In my case, Diogo's shared solution works best for me. Hope to learn more from you.