Загрузка...

How to create a Collection from your Selection in Power Apps

In Power Apps, creating a collection based on a selection allows you to store and manipulate a set of items chosen by the user. This is typically done by using the Collect() function in response to an event, such as selecting an item in a gallery or selecting multiple items in a gallery. This can be extremely useful when you want to manipulate or view certain data.

There are some extremely useful topics you will learn:
1. How to AddColumn to a Datasource in a Collection
2. How to Add a Checkbox to a Gallery and Save the Data
3. How to Create a Collection Based on those Checkboxes

Below are formulas we used in this video:
Formulas:
Collect varCheckbox: ClearCollect(colDetails,AddColumns(Details,varCheckbox,false))

OnCheck: UpdateIf(colDetails,ID=ThisItem.ID,{varCheckbox:!varCheckbox})

OnUncheck: UpdateIf(colDetails,ID=ThisItem.ID,{varCheckbox:!varCheckbox})

Collection Selection: ClearCollect(colSelection,Filter(galDetails.AllItems,varCheckbox))

Chapters:
0:00 Introduction
1:40 Checkbox in the Gallery
2:22 Why you should create a Collection
3:45 AddColumns to Collection
5:10 Adding Checkbox in Gallery
7:35 Collecting our Gallery Selection
10:30 Conclusion

Видео How to create a Collection from your Selection in Power Apps канала Andrew Hess
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять