Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Context variable displayItem and editItem no longer working

I have several app that have multiple BrowseGalleries and followed this post to get it to select the correct items when the users views the details and edits the item.


Button.OnSelect: Navigate(ISRCViewScreen, ScreenTransition.Fade, {displayItem:ThisItem}); LoadingSpinner.Data


DetailsForm:  Items.diaplyItem

OnSelect.EditButton: EditForm(EditISRCForm);Navigate(ISRCEditScreen, ScreenTransition.None, {editItem:displayItem})


EditForm: Items.editItem

As of yesterday they are no longer working and all of my apps using this now say either "Getting your data" or "Not items to display"


Is anyone else experiencing this? I was planning on presenting my newest app to Upper Managment today to go to the VP for approval and now I can't because it's not working at all.

Is there a better way to accomplish this?

Super User
Super User

Re: Context variable displayItem and editItem no longer working


The problem in your formula (for your edit button) is that most likely you are referencing a context variable of the wrong screen.

When you put a Navigate function in, anything after that will be in the context of the navigated screen.

While I'd have to play around to nail this statement down completely for your app, I'd say that is pretty much what you are running into.


Couple things to try:

1) Try disambiguation : {editItem: [@displayItem]}

2) Consider using a global variable instead and drop the context passing:  Set(editItem, displayItem); EditForm(...); Navigate(...)


I hope this helps you out and gets you to your demo and that everyone is wowed by it!


Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Level: Powered On

Re: Context variable displayItem and editItem no longer working


These apps have been working for several months until yesterday and were built from the blog post mentioned above. Something had to change in the last few days to break it. I have a ticket in with microsoft and I'd prefer not to have to change all of the apps using this if possible. Smiley Sad

Helpful resources


Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.


Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Power Platform World Tour

Coming to a city near you


PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 393 members 2,528 guests
Please welcome our newest community members: