cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
7d3dev
Level: Powered On

DropDown does not update when switching between Screens

I have a canvas app that has a Listing Screen with a Gallery and a Details screen with a Form.  The Form has a DropDown that displays the text value of an underlying Id field.

 

I'm getting a problem in that when I select an item in the gallery to navigate to the Details screen, the drop down in the Form on the details screen is updated sometimes but not all times. This seems to be a bug as the problem is happening for the same item in the listing screen, sometimes I will see the dropdown updated and sometimes it will not.

 

Has anyone gotten this problem ?

5 REPLIES 5
Power Apps Staff _Corey_
Power Apps Staff

Re: DropDown does not update when switching between Screens

@7d3dev What formulas are used for the Default and Items properties of the drop down?

7d3dev
Level: Powered On

Re: DropDown does not update when switching between Screens

Hi Corey,
I have a table called '[dbo].[app_KPICategory]' which acts as the Items.
The default is LookUp('[dbo].[app_KPICategory]',id=ThisItem.kpi_category_id,category_name)
Power Apps Staff _Corey_
Power Apps Staff

Re: DropDown does not update when switching between Screens

If the DropDown value is changed, and you return to the Gallery screen, then click on the same item, it's possible that the DropDown will contain the previously selected item and not the value defined by the record.  This happens because the record the form has loaded did not change.  

 

If this sounds like your bug, there are two things you may try:

1) If the form is an edit form, set DetailsScreen.OnVisible=ResetForm(DetailsForm)

2) If the form is a view form,

        + set DetailsScreen.OnVisible=Set(varResetDD, true);Set(varResetDD, false)
        + set DropDown.Reset=varResetDD

7d3dev
Level: Powered On

Re: DropDown does not update when switching between Screens

Hi Corey,

 

Thanks! Will try it. 

 

The Form shows data from other fields in the record correctly except for this one field.

 

 

TopShelf-MSFT
Level 10

Re: DropDown does not update when switching between Screens

Thanks for your help with this thread @_Corey_ 

 

@7d3dev - have you been successful with the new formula?

 

@TopShelf-MSFT

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,826)