OnEdit not firing - PowerApps with SharePoint integration

%3CLINGO-SUB%20id%3D%22lingo-sub-268779%22%20slang%3D%22en-US%22%3EOnEdit%20not%20firing%20-%20PowerApps%20with%20SharePoint%20integration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-268779%22%20slang%3D%22en-US%22%3E%3CP%3EWith%20an%20list%20custom%20form%2C%20I'm%20trying%20to%20switch%20screens%20depending%20on%20the%20list%20data.%26nbsp%3B%20According%20to%20the%20doc%20I've%20found%2C%20the%20appropriate%20place%20to%20do%20this%20is%20in%20the%20OnEdit%20event%20in%20the%20SharePointIntegration%20component.%26nbsp%3B%20The%20issue%20is%20that%20OnEdit%20does%20not%20appear%20to%20fire%20in%20certain%20contexts%2C%20so%20the%20evaluation%20and%20process%20to%20switch%20screens%20does%20not%20occur%2C%20thus%20showing%20an%20incorrect%20screen.%3C%2FP%3E%3CP%3EAn%20example%3A%3C%2FP%3E%3CP%3E1.%20User%20selects%20to%20edit%20list%20item1%2C%20upon%20which%20FormScreen1%20shows.%3C%2FP%3E%3CP%3E2.%20User%20changes%20the%20data%20in%20item1%20and%20saves%20the%20data%20(all%20in%20the%20app).%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E3.%20Confirm%20that%20the%20current%20view%20shows%20the%20edited%20data%2C%20which%20specifies%20that%20FormScreen2%20should%20show%20on%20edit.%26nbsp%3B%3C%2FP%3E%3CP%3E4.%20User%20selects%20to%20edit%20list%20item1%20-%20the%20app%20usually%20displays%20FormScreen1.%26nbsp%3B%20All%20variables%20and%20other%20processes%20in%20OnEdit%20indicate%20that%20OnEdit%20did%20not%20fire.%3C%2FP%3E%3CP%3E5.%26nbsp%3BIf%20significant%20time%20passes%2C%20if%20the%20user%20performs%20a%20hard%20refresh%2C%20or%20if%20the%20user%20opens%20another%20browser%20to%20the%20same%20list%2C%20then%20usually%20OnEdit%20will%20fire%20and%20FormScreen2%20will%20show%20for%20list%20item1.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20observed%20a%20similar%20issue%3F%26nbsp%3B%20Is%20there%20a%20different%20approach%20and%20or%20a%20work%20around%20which%20I%20should%20employ%3F%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-268779%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Visitor

With an list custom form, I'm trying to switch screens depending on the list data.  According to the doc I've found, the appropriate place to do this is in the OnEdit event in the SharePointIntegration component.  The issue is that OnEdit does not appear to fire in certain contexts, so the evaluation and process to switch screens does not occur, thus showing an incorrect screen.

An example:

1. User selects to edit list item1, upon which FormScreen1 shows.

2. User changes the data in item1 and saves the data (all in the app).  

3. Confirm that the current view shows the edited data, which specifies that FormScreen2 should show on edit. 

4. User selects to edit list item1 - the app usually displays FormScreen1.  All variables and other processes in OnEdit indicate that OnEdit did not fire.

5. If significant time passes, if the user performs a hard refresh, or if the user opens another browser to the same list, then usually OnEdit will fire and FormScreen2 will show for list item1.

 

Has anyone observed a similar issue?  Is there a different approach and or a work around which I should employ?  

0 Replies