I have a SharePoint list named Projects, which in turn has a Listing (ID) and a Benefits column, the latter of which stores multiple lines of text. The DATA collection contains all data pertaining to the selected gallery item on a previous screen. In PowerApps itself, I have a label (lbl_Combo) and a Combo box (combo_Benefits). A button (btn_Save) stores the SelectedItems in the Benefits field:
Patch(
Projects,
First(
Filter(
Projects,
Listing = DATA.Listing
)
),
{
Benefits: Concat(combo_Benefits.SelectedItems, Value&Char(13))
}
)
The Items that combo_Benefits has are:
[
"A",
"B",
"C"
]
The SharePoint list stores the selected items just as I want it to. What's more, lbl_Display, whose Text field is set to
DATA.Benefits
also has no issues.
The issue arises when I want to retrieve the multiline text, split it back into separate entries, and connect those to DefaultSelectedItems. I attempted the following, to no avail:
Split(DATA.Benefits, Char(13))
Appending .Result to the above also provided no help.
How can I have the DefaultSelectedItems display the selected items I have stored in the Benefits column?
For example, Items "A" and "C" are selected and saved to SharePoint. Once combo_Benefits is Reset(), it should have "A" and "C" already selected.
Thanks in advance!