Building Screens with Data Flashcards

1
Q

What are the two main ways to fetch data to display on a screen in OutSystems?
A) SQL Queries and REST APIs
B) Screen Aggregates and Data Actions
C) Data Widgets and Screen Expressions
D) Input Fields and Forms

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following sources is not mentioned as a potential data source for screens?
A) Database
B) External Systems
C) Local Storage
D) REST Web Services

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the primary purpose of Screen Aggregates in OutSystems?
A) To display data on the screen
B) To define server-side logic
C) To fetch data directly from the database
D) To create widgets on the screen

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How are Screen Aggregates defined?
A) By writing custom SQL code
B) By using REST web services
C) Visually, like any other Aggregate
D) By coding in JavaScript

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Where are Screen Aggregates available for use?
A) Anywhere in the application
B) Within the scope of the Screen only
C) Only in custom server-side logic
D) Only in external web services

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What type of data retrieval scenario would best use Data Actions?
A) Simple database queries
B) Displaying hardcoded data
C) Advanced scenarios, such as external REST web services or advanced SQL queries
D) Creating forms for user input

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When are Screen Aggregates and Data Actions triggered by default?
A) When the screen is initialized
B) When the user clicks a button
C) Only after custom logic is executed
D) When the application is deployed

A

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do Aggregates and Data Actions execute when there is more than one on a screen?
A) They execute one after the other, in sequence
B) They run synchronously
C) They run in parallel, asynchronously
D) They do not execute at the same time

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens to the screen when data from an Aggregate or Data Action becomes available?
A) The screen reloads completely
B) The screen automatically renders and displays the data
C) The data is ignored
D) The screen prompts the user to refresh

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following widgets is used to display sets of data, such as a list of employees?
A) Form Widget
B) List Widget
C) Input Widget
D) Button Widget

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What property of a widget is used to bind it to the data fetched by an Aggregate or Data Action?
A) Value Property
B) Source Property
C) On Click Property
D) Fetch Property

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

In the context of a List Widget, what data type does the Source property expect?
A) A single data record
B) A List with the data to be displayed
C) A boolean value
D) A string value

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which widget would be used to display a specific attribute, such as the name of an employee?
A) Button
B) Form
C) Expression
D) Input

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When using an Expression Widget to display a specific attribute, which property is used to define the attribute to display?
A) Source Property
B) Value Property
C) Input Type Property
D) Format Property

A

B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the key difference between Screen Aggregates and Data Actions?
A) Data Actions fetch data from internal sources only
B) Screen Aggregates fetch data only from external sources
C) Data Actions allow advanced server-side logic and external data sources, while Screen Aggregates fetch data directly from the database
D) Screen Aggregates are more customizable than Data Actions

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How can multiple pieces of data, such as a list of employees, be displayed on the screen?
A) By using a combination of Input Widgets
B) By using a List or Table Widget with a defined Source
C) By setting custom JavaScript code
D) By using the Form Widget alone

A

B

15
Q

What happens if an Aggregate or Data Action fails to retrieve data?
A) The screen crashes
B) The screen does not render
C) The screen renders without data
D) The application logs an error and stops

A

C

16
Q

How can an external REST service be called in OutSystems to fetch data for display on the screen?
A) Using only Screen Aggregates
B) Using Data Actions
C) By modifying the database schema
D) By using Expressions

A

B

17
Q

What happens when multiple Aggregates and Data Actions are used on the same screen?
A) Only the first one runs, and others are ignored
B) They run in parallel, asynchronously, and the screen updates as the data becomes available
C) They are executed one after the other
D) The user must manually trigger each one

A

B

18
Q

What happens when the Valid property of an Expression Widget is True?
A) The widget displays the validation message
B) The widget displays the data fetched
C) The widget is hidden from the screen
D) The screen crashes

A

B

19
Q

Regarding Screen Aggregates, which of the following options is false?
A. Screen Aggregates run asynchronously and in parallel.
B. Screen Aggregates only exist within the scope of the Screen where they were defined.
C. Screen Aggregates can only be executed when explicitly called.
D. Screen Aggregates can only fetch data from the database.

A

C
By default, Screen Aggregates run automatically.

20
Q

How is the data fetched by an Aggregate bound to a Table or a List widget?

A. By setting the Source property of the widget to the output of the Aggregate.
B. The binding is done automatically since the Aggregate is in the scope of the Screen.
C. By adding an Expression inside the widget that refers to an attribute of the data fetched by the Aggregate.
D. By creating a Screen Action that programmatically assigns the widget to the data fetched by the Aggregate.

A

A
The widgets have access to the output of the Screen Aggregates, so the binding can be easily defined through the Source property.

21
Q

Considering ListItem and List Actions, which of the following options is false?
A. List Actions can only be used inside List Items.
B. List Items can be used outside of Lists.
C. When List Items have the full swiping option activated, the List Action is not necessary.
D. The List Action triggers a Screen Action that will have the logic to be executed on swipe.

A

C
Yes, it is, to determine what happens on swipe. It just uses the logic defined on the List Item.

22
Q

Using the Data Action output, we display a set of all Projects on the screen. Furthermore, we intend to show the details of the chosen project on the screen. How would you do that?

Multiple Answers

A. By setting the Source property of the Expression widget to the output of the Aggregate.
B. By setting the Source property of the List widget to the output of the Aggregate.
C. By setting the Value property of the List widget to the specific attribute of the Aggregate result.
D. By setting the Value property of the Expression widget to the specific attribute of the Aggregate result.

A

B, D
This will present the entire set of Projects on the screen. , without displaying the individual project details.

This will display the individual project details.

23
Q

How is the List Action defined to execute the necessary swipe action?

A. By setting the widget’s Source property to the output of the Aggregate.
B. By specifying the Client Action containing the required logic in the On-Click Destination property.
C. By setting the On-Click Destination property to ‘On.’
D. By defining the Client Action that contains the necessary logic for the Source property.

A

B
To ensure the execution of the desired swipe action, it is crucial to define the necessary Client Action within the On-click Decision property.

24
Q

How can you define the desired swipe actions to reveal actions/options when swiping left and full swipe action when swiping right?

A. Set both the Full Swipe Left and Full Swipe Right properties to “Yes”.
B. Set both the Full Swipe Left property and Full Swipe Right property to “No”.
C. Set the Full Swipe Left property to “No” and the Full Swipe Right property to “Yes.”
D. Set the Full Swipe Left property to “Yes” and the Full Swipe Right property to “No.”

A

C
That’s right! When the “Full Swipe Left” property is set to “No,” swiping left will reveal actions and options, while swiping right will trigger the full swipe action.