Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
547 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Software ==> | Power Apps (13 exercises) |
Topic ==> | Collections (1 exercise) |
Level ==> | Not specified |
Subject ==> | Power BI training |
This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
Create a new app, and save it as The Beatles.
Add the four pictures in the folder above into your app:
Choose to add an image ... | ... then add all 4 at the same time. |
Add five buttons at the top of your screen:
You may be beginning to sense where this is going ...
Attach code to one of the top buttons to add an item to a collection (let's call it Beatles) using the Collect command and setting values for the following fields:
Field | Valuie |
---|---|
name | The first name of the relevant Beatle |
song | In your opinion, their best song |
picture | The name of the picture you've added |
Add a gallery to your app, using the Vertical template:
This should automatically put the fields in the right place when you associate the gallery with your Beatles data source.
Add code to the other three Beatles' buttons - when you click on them you should get this:
You may find it helpful when testing to attach code to the Reset button to clear your collection, to give an easy way to remove all the Beatles you've added to your collection.
Add one more button which adds someone who you think has a just claim to being called the fifth Beatle, but using the Patch command instead of Collect:
Perfectionists will also need to add an image of their fifth Beatle to their app, so that they can show this picture next to the person's name in their collection.
If you still have the time and energy, you could always change the code for each of the main Beatle buttons so that it only adds an item to the collection if it's not already there (one way to do this might be to test where the number of rows when you filter the data source by the Beatle-in-question's name is greater than 0).
Save your changes and leave your app!
You can find other training resources for the subject of this exercise here:
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.