[OutSystems UI] Cannot read properties of null (reading 'updateCarousel')
outsystems-ui
Reactive icon
Forge component by Platform Maintenance
Application Type
Reactive

Hi all,

We have implemented the new Carousel widget in OutSystems UI. Our currently installed version is 2.11.0.

We are getting this error: Cannot read properties of null (reading 'updateCarousel').

We use the widget inside a block on a screen. The error occurs whenever the parameter of the block is changed and the contents of the carousel should be changed.

Can somenone please advice on a solution?

Thanks and regards,
Alfio

Solution

Hello again @Alfio Esposito 

Based on my understanding of the use case you described I built a simple example to try to replicate it (used v2.13.0) and I wasn't able to replicate it, ie, got no error.
Please check the module attached for reference.

Cheers,
GM

CarouselSample.oml

Hello @Alfio Esposito 

Thanks for reaching out.
Can you please share a sample oml with that use case so that we can try to help?

Cheers,
GM

Solution

Hello again @Alfio Esposito 

Based on my understanding of the use case you described I built a simple example to try to replicate it (used v2.13.0) and I wasn't able to replicate it, ie, got no error.
Please check the module attached for reference.

Cheers,
GM

CarouselSample.oml

Hi Gonçalo,

Thanks for looking into this, much appreciated. The example module that you made is very similar to what we have.

When I publish the module in our enviromnent I also do not get the error. So I need to do a little more digging on our side to understand what happens.

Regards,
Alfio

If you want to share it, I can try to help.


Hi Gonçalo,

Thanks for your offer. I cannot share our module unfortunately. 

However, I have now found the issue. It turned out that we overlooked using a client action of the deprecated carousel with the new one. Once I removed that it works fine.

Again thanks for all your effort and for thinking along with me.

Regards,
Alfio

Hi @Alfio Esposito 

Good to know you were able to find the issue.

Cheers,
GM

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