Local Storage Flashcards
What is the primary purpose of Local Storage Entities in OutSystems mobile apps?
A) To store data temporarily for quick retrieval.
B) To persist data on the device for offline access.
C) To manage user sessions and authentication.
D) To handle complex business logic.
B) To persist data on the device for offline access.
Where are Local Storage Entities created in Service Studio?
A) In the “Entities” section of the Data Tab.
B) In the “Local Storage” section of the Data Tab.
C) In the “Logic” section of the Application.
D) In the “User Interface” section of the Application.
B) In the “Local Storage” section of the Data Tab.
What is a common naming convention for Local Storage Entities?
A) “local_” followed by the entity concept.
B) “db_” followed by the entity concept.
C) “temp_” followed by the entity concept.
D) “cache_” followed by the entity concept.
A) “local_” followed by the entity concept.
What are the default CRUD actions available in a Local Storage Entity?
A) Create, Read.
B) Update, Delete.
C) Create, Read, Update, Delete.
D) Create, Retrieve, Update, Delete.
C) Create, Read, Update, Delete.
What is the recommended approach for defining the ID attribute in a Local Storage Entity?
A) Use a simple text string.
B) Use a long integer with auto-increment.
C) Use the “Customer Identifier” data type if synchronizing with a database.
D) Use a unique identifier generated by the platform.
C) Use the “Customer Identifier” data type if synchronizing with a database.
How can you create a Local Storage Entity from an existing Database Entity?
A) Use the “Copy and Paste” functionality to duplicate the entity.
B) Use the “Create Local Storage Entity from Database Entity” option.
C) Use the “Convert to Local Storage Entity” option.
D) Manually create a new entity and copy the attributes.
B) Use the “Create Local Storage Entity from Database Entity” option.
Which of the following is a good practice when designing a Local Storage Entity?
A) Include as many attributes as possible from the corresponding database entity.
B) Only include the attributes strictly necessary for offline functionality.
C) Use complex data types for greater flexibility.
D) Use the “Static” entity type for more efficient data storage.
B) Only include the attributes strictly necessary for offline functionality.
What is the primary purpose of the “CreateOrUpdateAll” action?
A) To delete all records in the entity.
B) To create a new record in the entity.
C) To update an existing record in the entity.
D) To efficiently create or update multiple records in the entity.
D) To efficiently create or update multiple records in the entity.
Which two new Entity Actions are specific to Local Storage Entities?
A) “GetAll” and “DeleteAll”.
B) “CreateOrUpdate” and “DeleteAll”.
C) “CreateOrUpdateAll” and “DeleteAll”.
D) “SyncFromDatabase” and “SyncToDatabase”.
C) “CreateOrUpdateAll” and “DeleteAll”.
How are Local Storage Entity actions executed?
A) They are executed on the server-side.
B) They are executed on the client-side in a client action flow.
C) They are executed automatically when the application starts.
D) They are executed when the user interacts with a specific screen.
B) They are executed on the client-side in a client action flow.
What is the primary purpose of Aggregates in OutSystems?
A) To store data in local storage.
B) To handle user authentication and authorization.
C) To query data from entities and display it on screens or in actions.
D) To design user interfaces.
C) To query data from entities and display it on screens or in actions.
Which type of entity can be used as a source in a Local Storage Aggregate?
A) Database Entities only.
B) Local Storage Entities only.
C) Both Database Entities and Local Storage Entities.
D) Static Entities.
B) Local Storage Entities only.
What is the main difference between Database Aggregates and Local Storage Aggregates?
A) Local Storage Aggregates are faster.
B) Local Storage Aggregates support data previews.
C) Local Storage Aggregates are only available on the client-side.
D) Local Storage Aggregates cannot be used to filter or sort data.
C) Local Storage Aggregates are only available on the client-side.
What is the purpose of the “Filters” section in an Aggregate?
A) To define the order in which data is displayed.
B) To specify the source entities from which the data is retrieved.
C) To create joins between entities.
D) To filter the data based on specific conditions.
D) To filter the data based on specific conditions.
What is the purpose of the “Sources” section in an Aggregate?
A) To define the attributes to be displayed in the output.
B) To specify the source entities from which the data is retrieved.
C) To create joins between entities.
D) To filter the data based on specific conditions.
B) To specify the source entities from which the data is retrieved.
What is the primary purpose of calculated attributes in an Aggregate?
A) To display data from a different entity.
B) To filter the data based on specific conditions.
C) To calculate a new value based on existing attributes.
D) To define the order in which data is displayed.
C) To calculate a new value based on existing attributes.