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
-
20:18
Fit'n Fire
15 hours ago*NEW* CZ P10C OR Ported -- First 500 Rounds
52 -
14:41
Nate The Lawyer
1 day ago $0.21 earnedWhy Hasn’t Raja Jackson Been Arrested Yet?
42613 -
6:04
Buddy Brown
2 days ago $0.41 earnedEugene’s SICK Newspaper Cover is a WARNING to Us All! | Buddy Brown
6038 -
16:23
Actual Justice Warrior
1 day agoMom Sucker Punched By Repeat Offender In Chicago
3.21K25 -
56:28
Professor Nez
1 day ago🚨Not Only is Epstein NOT Going Away… It Just Got Worse!
19.9K23 -
8:09
MattMorseTV
16 hours ago $9.43 earnedTrump scores 17th CONSECUTIVE Supreme Court VICTORY.
71.3K58 -
2:11:25
Side Scrollers Podcast
18 hours agoUK JAILS TV WRITER FOR WRONG THINK + TWITCH ALLOWS CYBERSTALKING + MORE | SIDE SCROLLERS LIVE
30.5K8 -
10:47
Nikko Ortiz
1 day agoThese Tik Tok Clips Are Extremely Painful...
51K7 -
13:43
GritsGG
14 hours agoI Made a Brand New Warzone Account! Will I Get Bot Lobbies?
8.8K1 -
1:09:23
The HotSeat
14 hours agoTrump’s Parade = Mocked, China’s Parade = Praised: Leftist Hypocrisy EXPOSED
35K33