Articles about European Sharepoint Hosting Service
SharePoint 2013 Hosting – HostForLIFE.eu : PowerApps In SharePoint Online

PowerApps is independent of SharePoint, however, is tightly integrated with it, being part of the Office 365 suite. While PowerApps is designed to work with a number of different sources, like external databases, you can also easily connect PowerApps to any SharePoint list, library or OneDrive, which allows you to store and retrieve information without a need to know databases or SQL.

When we click on “Create an app”, it will create new PowerApps, which will run independently outside of SharePoint context. But it will be using SharePoint list/library internally which was configured at the time of app creation.
But when we click on “Customize form”, it will customize the default list view form of SharePoint like view/edit/new form. So any changes on one form will be visible to all three forms.
So you can click on “Customize forms” if you want to change look and feel of the form but if you want to make some logic/condition which will trigger some event, you need to create an app in PowerApps.
Steps to create PowerApps
- Click on create an app, provide app name and click Ok, it will navigate you to PowerApps studio. I have used Demo as my app name.
- As it opens PowerApps studio, we are presented with 3 options on the left side as by default and our dashboard will display the record from the list we configured PowerApps.
However, we can add multiple screens based on our condition.
Scenario
I have kept the Status column in my list which contains Approved, Pending and Complete as their value. Now, I want that if the request is in a complete stage, it should be redirected to view page only else it should be redirected to Edit page.
Step 1
Click on New Screen from the top left screen and rename as ViewOnly.
Step 2
Click on Connect to data, give the URL of your SharePoint site, and select the list.
Step 3
Select ViewOnly from the left panel and from top, select Insert > Forms > Display.
As you can see we have by default all columns coming from the list, but we can uncheck columns under Fields in right panel if we do not want those fields to be displayed on our page.
Step 4
Select FormViewer1 under ViewOnly and from the top drop-down, select “Item” and type “BrowseGallery1.Selected” in the textbox next to fx. It will bring records from the list and bind it with controls on the page.
Step 5
Select BrowseScreen1 and select arrow icon on the dashboard and type in the textbox next to fx button as below.
- Select(Parent);
- If(ComplainStatus.Value = “Completed”, Navigate(ViewOnly, ScreenTransition.Cover), Navigate(BrowseScreen1, ScreenTransition.Cover), Navigate(BrowseScreen1, ScreenTransition.Cover))
Click Save and publish. It will be saved to the list and once we click on the view arrow mark on the dashboard, it will redirect us to ViewOnly page if the status is completed; else, it will be navigated on default edit page based on a Status column value.
Print article | This entry was posted by Peter on July 26, 2018 at 5:16 am, and is filed under European SharePoint 2013 Hosting. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |