Hi. Does anybody know how to solve the issue with wrong record selected from the browse gallery. So, I have all records listed under ITEMS in BrowseScreen
Sort(
Filter('XXX (Sharepoint list)',
If(IsBlank(StatusTextFilter.Selected.Result),true,StatusTextFilter.Selected.Result in StatusText ),
If(IsBlank(CountryFilter.Selected.Result),true,CountryFilter.Selected.Result in 'Country'),
If(IsBlank(TripTypeFilter.Selected.Value),true,TripTypeFilter.Selected.Value in 'Trip Type'.Value),
If(IsBlank(RequestorFilter.Selected.Result),true,RequestorFilter.Selected.Result in 'Created By'.DisplayName),
If(IsBlank(SelectedUser),true,SelectedUser in 'Created By'.DisplayName),
If(IsBlank(IDFilter.Text),true,IDFilter.Text in ID)),
ID,
Descending)
ONSELECT i have
Set(GalleryItem,BrowseGalleryAll.Selected);
Navigate(DetailScreen1,ScreenTransition.None);
But, when i select a record from the Browse Screen, it selects totally different record in details screen. What am i missing? I would appreciate any help.
@Ramole @BideyYusuf it worked. Thank you sooo much!!!!😸😸
As @BideyYusuf said put GalleryItem on the Item property of the forms and should work
Hi @batmanMon , if thats the case.... then what @Ramole said will work.
Set(GalleryItem,ThisItem); Navigate(DetailScreen1, ScreenTransition.None)
after you put this on the Onselect Propety of the gallery,
then put GalleryItem on the Item property of the DetailForm. and EditForm
Hope this helps.
@BideyYusuf yes, they are
@batmanMon Not necessarily, if the galleries are connected to the same Datasource.
I just realized why the app doesnt let me to select a correct record. So, i have 4 galleries on one browseScreen. But only one detailsScreen. Do i need to have a separate detailsScreen and EditScreen for each gallery?
Hi @Ramole ! Thank you for your comment. I have tried the code and unfortunately it didnt work for me 😞 Any other ideas 😞
@batmanMon
You need like this on Gallery OnSelect
Set(GalleryItem,ThisItem); Navigate(DetailScreen1, ScreenTransition.None)
WarrenBelz
146,537
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,908
Most Valuable Professional