Power Apps Workout 08 - Collections

In this workout, we will work with Collections, which are Power Apps’ way of saving lists or tables of information.

The objective is to create a sample Canvas app that has 2 text inputs (one for name and one for age), a button called “Add”, and a Vertical Gallery. A user should be able to add their age and name into the textboxes, click add, and the record should be added to the Vertical Gallery.

Please submit your solution by taking a screenshot of your Power App, showing the “formula” you used on the “Add” button. The hint here is that you must use the “Collect” function.

Enjoy! Let me know if you have any questions.

Henry

Here is mine:

Code for the Add Button

Collect(Names, {Name: txtName.Text, Age: Value(txtAge.Text)})

Here are the formulas for the Add button. Again, the trick here is to use the Collect function and add to a Collection what the user inputs into TextInput1 and TextInput2. The Vertical Gallery Items property should then be set to Collection.

Best,
Henry