I've simplified this down to two controls and one SharePoint source.
There's a Dropdown that picks a record from a SharePoint list and displays Title.
There's a TextInput control that defaults to Dropdown.Selected.Status
The OnChange property of the TextInput control is
Patch('SharePoint List', Dropdown.Selected, {Status:Self.Text})
Here's the problem:
When I select some item from the Dropdown, and then modify the Status, the item is correctly updated BUT THE DROPDOWN SELECTION RETURNS TO THE DEFAULT FIRST RECORD. This is because the list is updated, the dropdown is dependent on the list, so the dropdown resets.
Is there any way to prevent this? I want to be able to update (PATCH) the selected record without the Dropdown moving away from that selection.
Thank you, Rusk. That appears to work fine.
You can add a variable to the OnChange, then set the "Default" for your Dropdown to that same variable. Something like:
OnChange:
Patch('SharePoint List', Dropdown.Selected,Status:Self.Text});
Set(varDropdown,Self.SelectedText.Value)
Default:
varDropdown