41
Views
12
Comments
Solved
[OutSystems Data Grid] DataGrid reading 'binding' on click in first column
outsystems-data-grid
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

Hello,

I'm using the DataGrid with OnCellGrid when I click in the first column (Only in some records) and redirect to another page I have the bellow error.

If I click in the second column for example I don't have issues and if I click in the first one but I don't redirect to another page I also don't have issues.

Any idea or workaround for this problem?


Thanks, Paulo Torres

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hi @Paulo Torres 

Sorry about the delay but I'm OOO until next week.
After a quick look, this isn't something I can reproduce 100% of the time or quickly understand the root cause so, we created a task to investigate and, if needed, fix a potential issue.

Update
this is happening since the column you're clicking is editable, ie, there's a conflict between you clicking the cell to edit it and running the cell click event at the same time (the block's lifecycle will be broken most of the time), which in this case doesn't make sense since you're redirecting to another screen and you'll never be able to edit the cell content.
So, you should make the column not editable and the error will not occur or, if you want to redirect to another screen maybe an Action Column should be the right pattern for you to use.


Cheers,
GM

2022-11-12 11-28-30
Gonçalo Martins
Staff

Hello @Paulo Torres 

To make this more collaborative and to make sure the community is looking into the same use case that you're reporting, please share a sample oml where that can be reproduced (include a GIF/video if it's easier to showcase the steps to reproduce).

Cheers,
GM

2022-11-12 11-28-30
Gonçalo Martins
Staff

Hello @Paulo Torres 

Any update on this reported issue you can share?

Cheers,
GM

2023-08-28 07-00-10
Paulo Torres
Champion

Hello @Gonçalo Martins,

I have prepared a oml to share, if you click here you'll see the problem reported.

You can test here: Link

I also attached the oml.

Thanks in advance, Paulo Torres

DataGridBug.oml
2022-11-12 11-28-30
Gonçalo Martins
Staff

Hi @Paulo Torres 

The oml you shared has multiple missing dependencies and no data.
Can you please share a "standalone" version of it?
Thank you.

Cheers,
GM

2023-08-28 07-00-10
Paulo Torres
Champion
DataGridBug.oml
2023-08-28 07-00-10
Paulo Torres
Champion

Hi @Gonçalo Martins,

Do you have any news for me about this topic? :)

Thanks

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hi @Paulo Torres 

Sorry about the delay but I'm OOO until next week.
After a quick look, this isn't something I can reproduce 100% of the time or quickly understand the root cause so, we created a task to investigate and, if needed, fix a potential issue.

Update
this is happening since the column you're clicking is editable, ie, there's a conflict between you clicking the cell to edit it and running the cell click event at the same time (the block's lifecycle will be broken most of the time), which in this case doesn't make sense since you're redirecting to another screen and you'll never be able to edit the cell content.
So, you should make the column not editable and the error will not occur or, if you want to redirect to another screen maybe an Action Column should be the right pattern for you to use.


Cheers,
GM

2021-09-06 15-09-53
Dorine Boudry
 
MVP

Hi @Paulo Torres ,

i was trying to debug it by making a clone of OutsystemsDataGrid, and using that one in your example application, and the problem went away.  Even after removing the clone and using the original again, the error did not come back.

It is completely unexplained to me, but maybe you can get lucky by doing the same.

Dorine

2021-09-06 15-09-53
Dorine Boudry
 
MVP

Just to be complete, installing your oml initially, I saw the same error.

2023-08-28 07-00-10
Paulo Torres
Champion

Hi @Dorine Boudry,

You mean, what you did is just clone OutsystemsDataGrid and change the references and the error gone?

It sounds funny :D

I can try it anyway just in case :)

Thanks, Paulo Torres

2021-09-06 15-09-53
Dorine Boudry
 
MVP

yes, but then change it back to the real OutsystemsDataGrid, and error doesn't come back

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