
Announcements
___________________
Hello , I tried to explain the solution step by step. Feel free to ask if there is anything you don't understand.
In this step, I created a SharePoint list named TestListe_MEK2. I added columns named Titel (Text type), Titel_New (Text type), and ComboboxColumn (MultipleChoice type).
Within the PowerApps application, I created a Combobox control.
I set the properties of the Combobox control as follows:
Sort(ComboboxColumnUniqueValues; Value; SortOrder.Ascending)To create the collection used in the Items property of the Combobox, we write the following formula in the AppOnStart property or the page’s OnVisible property:
ClearCollect(
AllValuesWithBlanks,
Ungroup(
ForAll(
TestListe_MEK2,
{ComboboxColumnValues: ComboboxColumn}
),
ComboboxColumnValues
)
);
ClearCollect(
ComboboxColumnUniqueValues,
Filter(
Distinct(
AllValuesWithBlanks,
Value
),
Not IsBlank(Value)
)
)
Summary of the steps so far:
We created a collection for the Items property of a Combobox control. The elements of this collection consist of the options previously selected in the ComboboxColumn column in the SharePoint database.
In this step, we place a TextInput control on the screen. We will save the data entered into this control to the database along with the selected items in the Combobox control. (Note: We cannot directly show the value written here inside the Combobox.)
In this step, we add a Save button and write the following formula:
Patch(
TestListe_MEK2,
Defaults(TestListe_MEK2),
{
Titel: "Title 11",
Titel_New: "Titel 22",
ComboboxColumn: Table(ComboBox1.SelectedItems,[TextInput1.Text])
}
)