PL-200 – Question 27


Question 27

You have a canvas app that contains the following text input fields: Id, FirstName, LastName. The app also has a button named Button1.
The OnSelect property for Button1 contains the following expression:
Collect(People, {Id:Id.Text, FirstName:FirstName.Text, LastName:LastName.Text})
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Correct Answer:

Box 1: Yes –
If the data source doesn’t already exist, a collection is created.

Box 2: No –
Note: The Collect function adds records to a data source. The items to be added can be:
✑ A single value: The value is placed in the Value field of a new record. All other properties are left blank.
✑ A record: Each named property is placed in the corresponding property of a new record. All other properties are left blank.
✑ A table: Each record of the table is added as a separate record of the data source as described above. The table isn’t added as a nested table to a record. To do this, wrap the table in a record first.

Box 3: No –