cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Context variable displayItem and editItem no longer working

I have several app that have multiple BrowseGalleries and followed this post https://powerapps.microsoft.com/en-us/blog/decouplingbrowsegalleryfromforms/ to get it to select the correct items when the users views the details and edits the item.

BrowseGalleries: 

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?

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: Context variable displayItem and editItem no longer working

@FishinKmac 

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.
Highlighted
Regular Visitor

Re: Context variable displayItem and editItem no longer working

@RandyHayes 

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. 😞

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,947)