What is the difference between a list of attributes and a list of entity attribute? They work in the same way?
*Maybe the question is about entity and structures, but I'm not sure (Sorry if I made the wrong question)When using it we use AggregateName.list for both of them?The options text and value works in the same way?
The question is because in my application I have this:
In this case, GetCountry2s is using a structure right?And the GetLocationsByCountry2ID is using entity.
But when I try to use them in the same way, the getCountry works perfectly and the getLocations does'nt, the datatype difference can be the cause of the error? (probably there is a lot of possible causes, I'm just trying to eliminate one of them)*The error is that the list is not getting the values,
I'm pretty sure that there is a ocean of possible causes, I'm just trying to understand better the difference.
Hi @Gustavo Nakamura
In short ! you want to know that if we have entity type data then why structure is used for and what is the major different between them.
Entity :
1. Entity creates a table on database .
2. Entity have basic data type.
Structures :
1. Structure is a complex object to be used to show list records on UI.
2. We Use Structures for the API Response( record or a list of records) .
3. From Multiple entity's data you can fetch at UI making entity as an attribute of a structure .
4.structure is a complex data type in which you can have attributes that can be of basic data types or of record or list types Read More.
1. Data Type
2. Structure
Hope this'll work for you!!
Hi @Gustavo Nakamura ,
Please check the below threads. It may be helpful.https://www.outsystems.com/forums/discussion/86156/difference-between-entity-and-structure/#
https://www.outsystems.com/forums/discussion/60448/difference-between-setting-datatype-as-an-entity-and-entity-identifier/#
https://www.outsystems.com/forums/discussion/77331/structure-and-records/#RegardsKrishnanand Pathak
In short, we can differentiate entity and structure by the following:
Let me make this easy to understand the concept of this.
List of Attributes - It is same like we have the dynamic entity and we have the attributes inside this entity. It will create a table inside a database. Check the below image.
List of Entity Attributes - When we are using structure and the attributes name as the entity name inside the structure we call this as list of entity attributes.
Structure is a complex object that used to show the list of records on UI level. Check the below image.