Hi
I am new to Power Apps and have viewed many on line videos but cannot find answers to my problems.
I have a customised SharePoint form in PowerApps with 4 screens and 4 new forms- the first screen is set to New as a default and the rest are Edit.
- When I create a new record, it is overwriting an existing record and is not clearing the last screens. I select the New button in SharePoint.
- When I edit a record through the Edit button in SharePoint, I can edit the information but it is not displaying the original data in the second to fourth screens.
I have the following code:
SharePointIntegration
OnEdit: Set(IsNew,false);Set(IsEdit,false);EditForm(frmNew);EditForm(frmNewCompliance);EditForm(frmNewService_1);EditForm(frmNewActions);Set(IsEdit,true)
OnNew: Set(IsNew,false);Set(IsEdit,false);NewForm(frmNew);NewForm(frmNewCompliance);NewForm(frmNewService_1);NewForm(frmNewActions);Set(IsNew,true)
Save button on the first screen
If(
IsNew=true,
Patch('Service Excellence Framework',Defaults('Service Excellence Framework'),frmNew.Updates,frmNewCompliance.Updates,frmNewService_1.Updates,frmNewActions.Updates);ResetForm(frmNew);ResetForm(frmNewCompliance);ResetForm(frmNewService_1);ResetForm(frmNewActions);,
Patch('Service Excellence Framework',SharePointIntegration.Selected,frmNew.Updates,frmNewCompliance.Updates,frmNewService_1.Updates,frmNewActions.Updates);ResetForm(frmNew);ResetForm(frmNewCompliance);ResetForm(frmNewService_1);ResetForm(frmNewActions);
);
RequestHide()
I move through the screens through buttons at the top (not a Gallery) and use the Navigate command.
Your help would be greatly appreciated.