Premium Only Content

Let Users Know How Many Records are in a Gallery's full recordset
PowerApps galleries load records in chunks of 100, so a user is left wondering, "Is that everything?"
When Delegation Limits also come into play, the problem can be even more difficult. If the gallery contains exactly 500, or 2,000 records, is that all there are, or is that a result of delegation?
I solved the dilemma with a PowerApps flow and a Stored Procedure in SQL Server.
Here's the SQL from the Stored Proc. The rest of the code is revealed in the video.
USE [NameOfYourDatabaseGoesHere]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE OR ALTER PROCEDURE [dbo].[RecordCount]
@SearchTerm varchar(10) = ''
AS
BEGIN
DECLARE @Recordcount int
SELECT @Recordcount = count(*) FROM dbo.Employees
WHERE LastName like '%' + @SearchTerm + '%'
OR FirstName like '%' + @SearchTerm + '%'
RETURN @Recordcount
END
GO
Links to downloads:
https://www.gpcdata.com/downloads/Employees2K7.zip
https://www.gpcdata.com/downloads/Employeesbacpac.zip
-
LIVE
Man in America
7 hours agoExposing the Cover-Up That Could Collapse Big Medicine: Parasites
1,172 watching -
LIVE
CHiLi XDD
3 hours agoTekken Fight Night
145 watching -
LIVE
ItsLancOfficial
8 hours agoFREAKY FRIDAY-GETTING FRIED-WELP! #TOTS
37 watching -
1:09:11
Sarah Westall
4 hours agoRead the Signs: Are We Already Operating in a New Financial System? w/ Andy Schectman
9.96K3 -
DVR
Flyover Conservatives
8 hours agoRicky Schroder Exposes How Hollywood Planted Him as a Child Star | FOC Show
12.7K2 -
LIVE
JahBlessCreates
2 hours ago🎉 TEKKEN TING, and maybe some music...
159 watching -
LIVE
GritsGG
3 hours agoTop 250 Ranked Grind! Dubulars!🫡
66 watching -
LIVE
StuffCentral
2 hours agoStar Stuffy
25 watching -
6:02
Blackstone Griddles
4 hours agoPrime Rib Brisket Burgers on the Blackstone Griddle
3.5K2 -
LIVE
HELMETFIRE
2 hours ago🟢HELMETFIRE PLAYS: Silksong Part 4🟢
22 watching