Hi,
I have a Share Point Integration Power App. The Item property for the Form and the OnveView property of SharePointIntegration are set to the following;
Form - Item - LookUp('NameOfList', ID = SharePointIntegration.Selected.ID)
SharePointIntegration - OnView - Set( selectedLookupItem,
LookUp( 'NameOfList',
ID=SharePointIntegration.SelectedListItemID ) );
Navigate(SharePointForm_View)
And my Form 'SharePointForm_View' has its DefaultMode property set to the following;
If(Toggle_Update.Value = true, FormMode.Edit, FormMode.View)
This means that when I select an item in the SP List it will default to View mode each time (which it does). When opened in View mode I have a toggle (Toggle_Update) that when pressed switches to Edit mode (like in the code above). This is all working and I can toggle between the two states, however, when I try to save changes when in Edit mode the changes do not save and they go back to original state.
On my save button I have the following;
Patch('NameOfList', LookUp('NameOfList',ID = SharePointIntegration.Selected.ID),
SharePointForm_View.Updates
);
Once I get this sorted I'll look into then returning to View mode using 'ViewForm()'
I have no idea why it doesn't work and I have tried patching, SubmitForm() etc but with no joy. Any help appreciated. Thanks
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1