Hello Folks,
I have 3 galleries in my app screen. The first one have as a datasource a SQL table named '[dbo].[Departamentos]'.
The second one use as a datasource another SQL table named '[dbo].[Perfis]', with a filter that is conditioned to the gallery 1 choice and with a checkbox for each line.
In this gallery I'll show a list of systems avaliable as the choice in the gallery 1.
The third gallery use the same datasource as the gallery 2 but with another filter code, to show the profiles that contain the systems selected in gallery 2.
The relation between gallery 1 and gallery 2 is perfect but between gallery 2 and 3 didn't worked as I wish.
I got a way to show in the gallery 3 all the profiles that have at least one of the systems selected in the gallery 2 but what I'm trying to doing is showing in the gallery 3 only the profiles that have all the systems selecteds in the gallery 2.
If I select a combination of systems that don't have in any profile the gallery 3 will be empty.
See below the codes that I've used in each gallery and in the checkbox:
Gallery 1 (OnSelect): '[dbo].[Departamentos]'
Gallery 2 (OnSelect): Distinct(Filter('[dbo].[Perfis]';'Gallery 1'.Selected.IdDepart = IdDepart);IdSist)
Gallery 2 Checkbox (OnCheck): Collect(Sist;{IdSist:ThisItem.Result})
Gallery 2 Checkbox (OnUncheck): Remove(Sist;Filter(Sist;ThisItem.Result = IdSist))
Gallery 2 label with system name: LookUp('[dbo].[Sistemas]';IdSist = ThisItem.Result;NomeSist)
Gallery 3 (OnSelect): Distinct(Filter('[dbo].[Perfis]';IdSist in Sist.IdSist && 'Gallery 1'.Selected.IdDepart = IdDepart);NomePerfil)
Tables and columns used:
'[dbo].[Departamentos]': {IdDepart, Nome}
'[dbo].[Perfis]': {IdPerfil, IdDepart, IdSist, IdMod, IdPerm, NomePerfil}
'[dbo].[Sistemas]': {IdSist, NomeSist}
Can someone give me a "light" on this problem?