176
Views
3
Comments
Solved
[OutSystems UI] CarouselUpdate always got Error
Question
Forge component by OutSystems R&D
91
Published on 06 Oct 2020

When I try to update carousel after clear the list and append it with the new data it always return "cannot read property queryselector of null", i tried other function from carousel too such as Carousel GoTo etc but it still return the same error. Im using OS 10 (since its from old development). If its the bug from old version, can you help me to update this component to the latest for OS version 10. Thx

Rank: #1944
Solution

I just solved it, so the error occured when the updated list is empty / the current list is empty, so it will produce that error, its quite confusing since I use slider and there is some point when the variable is updated with the slider and the list become empty.

Rank: #344

Abdiel Alvin wrote:

When I try to update carousel after clear the list and append it with the new data it always return "cannot read property queryselector of null", i tried other function from carousel too such as Carousel GoTo etc but it still return the same error. Im using OS 10 (since its from old development). If its the bug from old version, can you help me to update this component to the latest for OS version 10. Thx

Hi Abdiel Alvin,

Please find the attached Sample OML.

Updating carousel on home screen after clear the list (dummy list) and append it with the new data on DeleteOnClick function.

Make sure you refresh aggregate after process completion.


Outsystems platform version - 11
mobile version (iOS) - 11.4, 12

Hope this helps.
Thanks


CarouselTest.oml

Rank: #1944
Solution

I just solved it, so the error occured when the updated list is empty / the current list is empty, so it will produce that error, its quite confusing since I use slider and there is some point when the variable is updated with the slider and the list become empty.