124
Views
4
Comments
Solved
What is the difference between a list of attributes and a list of entity attribute?
Application Type
Reactive
Service Studio Version
11.54.5 (Build 62302)

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. 


2022-07-03 17-24-08
Sourabh sharma
Solution

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!!



2022-07-03 17-24-08
Sourabh sharma
Solution

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!!



UserImage.jpg
Won Jien Liew

In short, we can differentiate entity and structure by the following:

  • Entity contains the actual data with attribute definition, similar to the concept of database table
  • Structure contains the attributes of an object, similar to the concept of a class in Object Oriented Programming


2024-06-24 04-49-49
Princi

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.


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