[Data Grid] [Bug] Refreshing breaks auto generated columns

Forge Component
(22)
Published on 29 Mar by OutSystems R&D
22 votes
Published on 29 Mar by OutSystems R&D

Hey guys,

When using the auto generate columns option, when I refresh the table (for when the user changes input for the rest web service) I lose all the columns (but I do have the correct number of pages/results in the footer). There's just no columns/data visible in the table.

Is this an Ajax Refresh?

And can you clarify what "when the user changes input for the rest web service" means? Are you saying the user changes a parameter that's sent to the REST service?

Yeah that's correct it's an ajax refresh.

I'm sending an ID field with the rest webservice, so the input for RestURL (GridContainer) looks like this:

"https://myserver.com/Module/rest/Demo/GetData?RecordId="+RecordId

I'm using a dropdown, which on change will display a list of records matching on the selection of the dropdown (like a master-detail relationship). 

The GridContainer is located in a webblock, this webblock receives the RecordId as an input, when changing the dropdown (which is in the webscreen itself), I refresh the entire webblock to refresh the RecordId.

I'm running on P10 by the way, perhaps I'm doing something wrong here?

Hey Joey,

Can you please show us an app (plus resources needed) where the issue is happening? :) 

Hey Rita, 

I will try to reproduce it in P11, currently running on P10 enterprise, so I can't really share that module :(

Ok so I was able to reproduce :) 

Take a look:

https://claring.outsystemscloud.com/DemoDataGrid/WebScreen1.aspx?StaticAId=1

Try changing the dropdown on screen to see what happens.

https://claring.outsystemscloud.com/DemoDataGrid/WebScreen1.aspx?StaticAId=2

When entering the screen with another input it does show that there is data present and that this is working, but for some reason the columns are not generated.

I added the OML to this post.

Hey Joey,

Sorry for the delay, I've looked at the issue. I can't see to be able to give you a simple and easy work around. We're adding this to our backlog and hopefully provide a fix soon.

Thank you so much for the OML and for reporting it!

Rita Dias wrote:

Hey Joey,

Sorry for the delay, I've looked at the issue. I can't see to be able to give you a simple and easy work around. We're adding this to our backlog and hopefully provide a fix soon.

Thank you so much for the OML and for reporting it!


Thanks alot!

If I come across a easy workaround I'll post it here in the meantime.
Hope it gets fixed soon :)