93
Views
2
Comments
Solved
[OutSystems Charts] Index out of bounds error when source DataPoint list is empty
outsystems-charts
Reactive icon
Forge asset by OutSystems
Application Type
Reactive
Service Studio Version
11.53.37 (Build 61887)
Platform Version
11.18.1 (Build 37828)

Dears,

I'm using LineChart of OutSystems Charts V2.2.0 and it shows "Index out of bounds. Index 0 for empty list." error when its source DataPoints list is empty.

Is it possible to change to show "No data to display" message without the error?

I can prevent this error by using "If" statement in UI widgets and control its visibility depending on the list is empty or not, but I think its more simple if I can use "No data to display" when list is empty. But as far as I tested, the "No data to display" seemds to be displayed only when IsDataFetched property of Data Action is false...

Are there any simple ways to handle when list is empty?

Best regards,
Ron

2022-01-13 11-39-41
Bernardo Cardoso
Staff
Solution

Hi @Ron WATANABE,


For now, I believe the only workaround is to have that same text inside a Container, on the False statement of the If.


We are working on improving this on a future release of the Charts component!


Best regards,

Bernardo Cardoso

UserImage.jpg
Ron WATANABE

Hi @Bernardo Cardoso,

Thank you for your reply. I got it. I'm looking forward to having the future version!

Best regards,
Ron

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