Hi!
I have a web-block that fetches data using a DataAction, and it outputs two record lists of a specific structure.
Both outputs are populated using ListAppend actions like so:
As expected when the data action finishes executing both output lists contain the correct records and it's content. However when the OnAfterFetch starts, for some reason the records of those lists lose content.
Lists at the end point of the data action:
List at the start of the OnAfterFecth action:
Anyone know why this happens, and potential ways to fix it?
Best regards!
Hi @Tiago Babo ,
this is probably an example of "use it or loose it". Try adding or deleting attritbutes to your UI to see the effect.
The outsystems platform tries to optimize your resulting code for performance, and one of the examples of that, is that it won't bring back any data from the server to the client unless you use it.
Your data action is on the server, your on after fetch is in the browser, so there you only see the attributes that are actually sent back to your device.
Dorine
Thanks for the help!