PowerApps | Using Defaults and Reset Functions when Patching SharePoint

Описание к видео PowerApps | Using Defaults and Reset Functions when Patching SharePoint

Your fields while using a Patch function don't realize if they are in an 'Edit' or 'New' page. In this video we go over the different way to write defaults for single line text, dropdowns, and combo-boxes for our Patching Statement which writes to SharePoint.

Then we set our patch statement up to edit previous entries by setting the Defaults equal to the ID in SharePoint.

Also we create a global variable to let our Form know if we are in 'Edit' or 'New' mode. Finally we define our Reset functions on the OnVisible property of our screens.

Part 1:    • PowerApps | Gathering Requirements us...  
Part 2:    • PowerApps |  UX/UI Wireframe / Mockup...  
Part 3:    • Видео  
Part 4:    • PowerApps | Convert Single Line Text ...  
Part 5:    • PowerApps | Using Defaults and Reset ...  
Part 6:    • PowerApps | Using Coalesce for Data V...  
Part 7:    • PowerApps | Create Perfect Waffle Sli...  
Part 8:    • Видео  

Chapters:
0:00 Introduction
1:49 Creating Global Variable
2:49Default Single Line Text
5:05 Default Dropdown
8:15 Default Combo-box
10:04 Default select previous entry in Patch Statement
11:53 Reset fields

Global Variable
Set(varForm="Edit")
Set(varForm="New")

Default:
Single Line Text
If(varForm="Edit",galSocialMedia.Selected.NumViews,"")

Default:
Dropdown
If(varForm="Edit",galSocialMedia.Selected.TypeofSocialMedia,"1")

DefaultSelectedItems:
Combo Box
If(varForm="Edit",Filter(["","English","Spanish","French","German","Mandarin","Cantonese"],Value in Split(galSocialMedia.Selected.Language,",")),[])

Concat in combobox:
Concat(cmbLang.SelectedItems,Value,",")

Комментарии

Информация по комментариям в разработке