Hi @Anonymous ,
This is always a conundrum as there is no trigger when a gallery is loaded visibly. I am assuming here that the Items of your gallery is glbData (I am wondering however why you simply do not make it the Filter inside this). As this is a Delegable filter, and assuming from your gallery will load at least 100 items (this is the size of the "batch" loaded until the users scrolls down for the next 100). So you can still use the same code, but leave off the last false setting (you will need to do this when you exit the screen)
Set(glbSpinner, true);
Set(
glbData,
Filter(
ZatwierdzonePaczki,
Value(Data_liczba)>= varDataFromla && Value(Data_liczba)<= varDataTo2a,
StartsWith(
Nazwisko,
Textlnput7_6.Text
),
StartsWith(
'Numer umowy',Textlnput7_8.Text)
)
)
);
and set the Visible of the spinner to
gblSpinner && CountRows(GalleryName.AllItems) < 100
Please note this is a workaround and is the best I can think of.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps