{"id":13371,"date":"2016-11-10T00:00:00","date_gmt":"2016-11-10T06:00:00","guid":{"rendered":"https:\/\/centricconsulting.com\/post\/office-365-powerapps-deepish-dive-part-4\/"},"modified":"2021-12-15T00:13:25","modified_gmt":"2021-12-15T05:13:25","slug":"office-365-powerapps-deepish-dive-part-4","status":"publish","type":"post","link":"https:\/\/centricconsulting.com\/blog\/office-365-powerapps-deepish-dive-part-4\/","title":{"rendered":"Office 365 PowerApps Deep(ish) Dive – Part 4"},"content":{"rendered":"

In this series of blogs, we explore the key capabilities in Office 365 and SharePoint to create business solutions, with a primary focus on PowerApps.<\/h2>\n

Instead of listing the functionalities, we help you build a PowerApp.<\/p>\n

Part four\u00a0of a series<\/a>.<\/em><\/p>\n

In Parts 1<\/a>, 2<\/a>, and 3<\/a>\u00a0of this series, we created a PowerApp that will allow you to retrieve and submit data from SharePoint for Menus. In this post, we will create a View for users to see details on all of the available menu items.<\/p>\n

So, the first step will be to add a new screen as we did in Part 2 <\/a>of this series. This new screen will be named \u2018MenuItems\u2019. Change the layout to match the Edit screen.<\/p>\n

We will need two controls for this screen. The first will be a drop down control. This can be added by clicking \u2018Insert\u2019, clicking ‘Controls’, and then clicking the drop down.<\/p>\n

\"padd4-1\"<\/p>\n

Position it at the top of the screen. The second will be a ‘Vertical Gallery’ control, like we added in Part 3<\/a>. Position it just below the drop down as shown below:<\/p>\n

\"padd4-2\"<\/p>\n

Our goal for this screen will be to allow users to select a specific section of the ‘Menu Items’ list, and only see menu items related to that section. On the formula bar for the drop-down control, change the ‘Items’ property to this formula:<\/p>\n

Distinct(\u2018Menu Items\u2019, Section)<\/strong><\/h3>\n

\"padd4-3\"<\/p>\n

This formula will populate the drop down list with all of the section for the ‘Menu Items’ list. The distinct command removes all duplicates, so we are only left with a distinct list.<\/p>\n

Next, we will want to connect the gallery to the drop-down list. So we will need to change the ‘Items property of the ‘Gallery’ to this formula:<\/p>\n

Filter(\u2018Menu Items\u2019, Section=Dropdown1.Selected.Value<\/span>)<\/strong><\/h3>\n

\"padd4-4\"<\/p>\n

This will filter the gallery based upon whatever selection is made in the drop-down. Also, we need to choose the fields that will be displayed in the gallery. For this example, we will show the title, section, description, and image. The image filed should map to an image control, which will be placed on the left of each selection.<\/p>\n

\"padd4-5\"<\/p>\n

As an added bonus, we will also add the ability for users to be able to download the image when it is clicked. To do this, click the image control, and change the ‘OnSelect’ property in the formula bar to:<\/p>\n

Download (Image1)<\/strong><\/h3>\n

\"padd4-6\"<\/p>\n

Now you can also add a \u2018Back\u2019 button the screen, a well as add a new button on the home screen so that users can navigate to the menu items\u00a0screen. Users now have a way to view and filter all of the\u00a0menu items!<\/p>\n

\"padd4-7\"<\/p>\n

In Part 5<\/a> of this series, we\u2019ll add a new screen for \u2018Locations\u2019 and demonstrate how we can display data through an external API.<\/p>\n","protected":false},"excerpt":{"rendered":"

Join us four part four of a series on Office 365 PowerApps capabilities to create business solutions.<\/p>\n","protected":false},"author":86,"featured_media":25598,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_oasis_is_in_workflow":0,"_oasis_original":0,"_oasis_task_priority":"","_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","footnotes":""},"categories":[1],"tags":[],"coauthors":[],"acf":[],"publishpress_future_action":{"enabled":false,"date":"2024-07-21 19:18:14","action":"change-status","newStatus":"draft","terms":[],"taxonomy":"category"},"_links":{"self":[{"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/posts\/13371"}],"collection":[{"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/users\/86"}],"replies":[{"embeddable":true,"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/comments?post=13371"}],"version-history":[{"count":0,"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/posts\/13371\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/media\/25598"}],"wp:attachment":[{"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/media?parent=13371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/categories?post=13371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/tags?post=13371"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/centricconsulting.com\/wp-json\/wp\/v2\/coauthors?post=13371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}