Hi
I need to show items in a gallery which are not present in another gallery and am not sure how to do it.
My scenarion is like this. A user goes to a NewForm of a listX. That form has a gallery control pointing to Title column of another list, ListA.
In the NewForm of ListX,user selects a few items from ListA gallery using checkbox and then submits the form. The selected items of ListA are submitted to another list,ListB (Region column) along with the ID (RefID column) of the item that got created in ListX .
In the editform of ListX,I have galleryB which filters ListB where ListB.RefID=ListX.ID ->This shows all items user had selected in NewForm.
I would like to show items in another gallery, galleryA which are not present in galleryB.
This would be something like Filter ListA where ListA.Title not in ListB.Region . It could also be Filter ListA where ListA.Title not in galleryB.Region.
I am not able to do this. For example, Filter(ListA,Title not in galleryB.AllItems.Region ->Does not work. Please help
With
{
_Data:
Filter(
'HK & Macau Store information Latest',
Division = Label_CityArea.Text
)
},
Filter(
_Data,
!(
StartsWith(
'Store Code',
"HK7"
)
) &&
!(
'Store Code' exactin Gallery_Completed.AllItems.Value
)
)
)
Perfect. Thanks a lot!
One more quick question. I was wondering if you know how to put the gallery control inside a datacard.
My issue is that, in the EditForm, when I insert the gallery control, it is superimposed over the editform. When I scroll in the EditForm, I would like the gallery control to come at the end of the form. But now, as soon as I insert the gallery control, it is shown on top always even if I scroll on top. I tried inserting a datacard to the eiditform and inserting a gallery in that but it made no diference however I noticed that I can insert any normal controls onto the custom card and they work fine. Could you please let me know how can I make the gallery control to come at the end of the editform scroll? Thanks
Hi @AnonyMouse,
You're very close. It looks like just a matter of placing Not in the right spot.
Filter(ListA,Not(Title exactin galleryB.AllItems.Region))
This means, "Filter ListA to only show records where the Title of a given record does NOT appear in the Region column of galleryB."
Let me know if I understood this scenario correctly.
MS.Ragavendar
20
BCBuizer
10
Super User 2025 Season 1
LC-26081402-0
10