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.
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.
That does the navigation to the other screen, but doesn't actually select the record in the gallery. Modify it to do this
That will select the parent record or the dropdown in the gallery and then navigate to the other screen.
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".
The code needs to be in the onSelect property of the dropdown. I assumed that was where you had the navigate code.
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?
I'm really sorry.
Properties for drop downs are
On select: false
On Change: false
Next arrow Property:
Now Detail Property is :
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)
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Congratulations, the new Super User Season 2 for 2021 has started!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.