[OutSystems Data Grid] When no data is there getting error in datagrid reactive component
data-grid-reactive
Reactive icon
Forge component by Platform Maintenance
Application Type
Reactive

Hi

i am using datagrid reactive component.when entity is blank i am getting below error

Cannot read properties of undefined (reading '0')

any idea how to resolve this




Solution

Hello @Arkyadeep Bharadwaj
We used the latest version and we were not able to reproduce that issue.
I'm actually not seeing on your screenshots the usage of the Arrange Data action like this:

Our result with an empty data source is:

Best Regards,
GM

Hello @Arkyadeep Bharadwaj
Can you please provide a module with that use case?
Or at least provide more details like:

  • Component's version
  • Are you using the ArrangeData method?
  • What's your datasource?
  • What do you mean by "entity is blank"? Empty list from the data source?
  • Are you using the custom column blocks or only the autogenerated grid?

Best Regards,
GM


Hello @Arkyadeep Bharadwaj
Can you please provide a module with that use case?
Or at least provide more details like:

  • Component's version
  • Are you using the ArrangeData method?
  • What's your datasource?
  • What do you mean by "entity is blank"? Empty list from the data source?
  • Are you using the custom column blocks or only the autogenerated grid?

Best Regards,
GM


  • Component's version-2.5.1
  • Are you using the ArrangeData method?yes i am using ArrangeData method
  • What's your datasource?getting data from database.
  • What do you mean by "entity is blank"? Empty list from the data source?Entity does not have any data.it is a empty list
  • Are you using the custom column blocks or only the autogenerated grid?Custom Column block

UI Screen


Using Data Action to fetch data with help of Arrange Data method

GetvendorMasterList Action

DM_GetVendorMasterList Server Action

Solution

Hello @Arkyadeep Bharadwaj
We used the latest version and we were not able to reproduce that issue.
I'm actually not seeing on your screenshots the usage of the Arrange Data action like this:

Our result with an empty data source is:

Best Regards,
GM

i got the issue.thanks for helping.arrangedata method i forgot to add

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