Hello,
I ask for your help because I don't know if "my problem" is really one.
So here it is, I have an application based on a SharePoint list. When I open the application, I have a vertical gallery (with a search bar and a sort button for the gallery) that filters the elements according to whether a person is mentioned in SharePoint or not. Inside if mentioned, the "Title" text box of the SharePoint list is displayed as well as a button that redirects to a new screen that displays the information of a "project" whose title is the text of the Title field of the SharePoint list.
My problem is the following: when I open the application when I want to access a "project" other than the first gallery project, it directs me to a new screen but always loads and displays the first gallery project. Moreover, when I go back and press again on a new project other than the first one in the gallery, the new loaded screen is the one I wanted and not the first one, everything has become normal again.
The Items property of my gallery is as follows:
SortByColumns(Search(Filter(Projects;'Users''Office365'.MyProfile().Mail in person1.Email ||'Users''Office365'.MyProfile().Mail in person2.Email);Text_to_search.Text; "Title"); "Title"; If(SortDescending1; Descending; Ascending)
and the property formula we select from my icon located in the gallery to direct me to my new screen is as follows:
Navigate(DetailScreen1; ScreenTransition.Cover) And Refresh(projects)
I hope I have been as explicit as possible
Thank you in advance for your help
Solved! Go to Solution.
Hi @Anonymous ,
Based on the issue that you mentioned, I think this issue is related to the Refresh(projects) formula added in the OnSelect property of the "Navigate" icon in your Gallery.
When you click the "Navigate" icon in your Galley, the Refresh(projects) formula would be exeucted, and your Gallery would be refreshed/reset. In default, the first item in the Gallery would be selected, when the Refresh(projects) formula executed, the BrowseGallery1.Selected result would be reset to the first Gallery item.
On your side, please consider remove the Refresh(projects) formula from the OnSleect property of the "Navigate" icon in your Gallery. Set the OnSelect property of the "Navigate" icon to following:
Navigate(DetailScreen1; ScreenTransition.Cover)
Within your Detail Screen, set the Item property of the Display form to following:
BrowseGallery1.Selected
If the issue still exists, please consider add the following formula within the OnSelect property of the "Navigate" icon:
Set(SelectedItem, ThisItem);;
Navigate(DetailScreen1; ScreenTransition.Cover)
Set the Item property of the Display form to following:
SelectedItem
Please consider take a try with above solution, then check if the issue is solved.
Best regards,
Hi @Anonymous ,
Based on the issue that you mentioned, I think this issue is related to the Refresh(projects) formula added in the OnSelect property of the "Navigate" icon in your Gallery.
When you click the "Navigate" icon in your Galley, the Refresh(projects) formula would be exeucted, and your Gallery would be refreshed/reset. In default, the first item in the Gallery would be selected, when the Refresh(projects) formula executed, the BrowseGallery1.Selected result would be reset to the first Gallery item.
On your side, please consider remove the Refresh(projects) formula from the OnSleect property of the "Navigate" icon in your Gallery. Set the OnSelect property of the "Navigate" icon to following:
Navigate(DetailScreen1; ScreenTransition.Cover)
Within your Detail Screen, set the Item property of the Display form to following:
BrowseGallery1.Selected
If the issue still exists, please consider add the following formula within the OnSelect property of the "Navigate" icon:
Set(SelectedItem, ThisItem);;
Navigate(DetailScreen1; ScreenTransition.Cover)
Set the Item property of the Display form to following:
SelectedItem
Please consider take a try with above solution, then check if the issue is solved.
Best regards,
User | Count |
---|---|
207 | |
92 | |
84 | |
49 | |
41 |
User | Count |
---|---|
254 | |
104 | |
103 | |
61 | |
59 |