Fetching data from Local Storage
Since we're going to talk about aggregates, let's start by reviewing the definition.
An aggregate is a visual element of the OutSystems language that allows querying entity data. In an aggregate, you can define source entities, filter data, or sort data as needed.
We can visually fetch data from Local Storage using aggregates, just as we do when fetching data from the database. In fact, they are pretty much defined the same way.
The three tabs at the top of the editor allow us to add different data sources, create filters, and define the sorting:
The first major difference about database aggregates that we can see is that they don't have test values or a data visualization. Since the data is not on the server, aggregates cannot view data directly from the device or use test values, even if the aggregate uses any variables. Keep in mind...