cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JamesArthur12
Helper I
Helper I

Detail screen not showing Correct values

Hi Power Users,

 

I have developed an app with screens(Browse Screen, Detail Screen,Edit Screen). In Browse i have 2 items as Drop down when i select one value from the drop down it is taking me to Detail screen but The detail screen is showing default value(Its not changing with selected value from browse screen) and when i click on Edit button it is showing the default value only). I need to edit the existing value what should i do?

 

The item property for Detail screen is BrowseGallery1.Selected. 

 

Is there anything i need to change. 

 

Thanks

 

13 REPLIES 13
Pstork1
Dual Super User III
Dual Super User III

Are you setting the selected property of the gallery when you navigate to the edit screen via the dropdown?  It sounds like BrowseGallery1.Selected is pointing to the default, not to the record whose value you are clicking on.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

@Pstork1 

 

I did. This is the Onselect property Navigate(DetailScreen1, ScreenTransition.None) in browsegallery. 

 

Thanks

That does the navigation to the other screen, but doesn't actually select the record in the gallery.  Modify it to do this

Select(Parent);Navigate(DetailScreen1, ScreenTransition.None)

That will select the parent record or the dropdown in the gallery and then navigate to the other screen.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

@Pstork1 

 

Thanks for the reply. When i tried to add the code in Browse gallery Onselect property i'm getting error as "Select of this control results in a select cycle that is not Allowed".

 

Thanks

The code needs to be in the onSelect property of the dropdown.  I assumed that was where you had the navigate code.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

 

I have added it there too nut same. Its not showing for that specific value.

 

I have 2 drop downs and 1 arrow initially i have written the code in the arrow button because the user needs to select 2 values from the 2 drop down button then only it should go to next page to view the details of that selected values.

 

Attached is the screen shot.

If you want them to select the two values in the dropdown and then navigate when they click on the arrow then you shouldn't have any navigate command in the dropdown.  Your original question said"...when i select one value from the drop down it is taking me to Detail screen but The detail screen is showing default value..." I took that to mean that making the selection in the dropdown navigates you to the detail screen.  If you are only navigating using the arrow then that's the onselect that needs the select(Parent); Navigate(....

 

Then on the detail screen make sure the form or controls are using the Gallery selected property to determine what values to load.  Does your detail screen use a form or just controls?



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

I'm really sorry. 

Properties for drop downs are 
On select: false

On Change: false

 

Next arrow Property:

OnSelect:Select(Parent);Navigate(DetailScreen1, ScreenTransition.None)

 

Now Detail Property is :

Datasource: [@Table1]

Item: BrowseGallery1.Selected

 

Detail screen contain that The text boxes of the table and Edit and new button. 

Property for Edit: EditForm(EditForm1);Navigate(EditScreen1, ScreenTransition.None)

Property for New: NewForm(EditForm2);Navigate(EditScreen2, ScreenTransition.None)

 

 

 

 

Sorry, I'm still not sure what you are doing.  Are you saying that the data source for the gallery is a Table?  And are the dropdowns bound to fields in that table?

 

Also, what is on the detail screen other than the two buttons?  are you trying to show the dropdown values in a form?  or is it just controls on the screen.  If its just controls then the value of those controls should be set to Gallery1.selected.whatever (field you want to display)



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,451)