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
LadyDesireeMusic
1 hour agoCookin & Convo - Potato Soup, Ham & Apple Pie
290 watching -
51:25
The Connect: With Johnny Mitchell
1 day ago $37.76 earnedInside The REAL Narco State: The Colombian Drug Cartels DOMINATING The Global Cocaine Trade
54.6K28 -
LIVE
bucketofish
2 hours ago///ARC Raiders || Loot, Scoot + Boogie
51 watching -
5:41:25
GritsGG
6 hours ago#1 Most Warzone Wins 3953+!
29.8K2 -
LIVE
Spartan
2 hours agoGetting to DLC Boss on Stellar Blade (Hard Mode), then moving on to something else.
28 watching -
LIVE
a12cat34dog
3 hours agoTHIS GAME IS SO OLD :: Half-Life (1998) :: FINISHING IT TODAY [FIRST TIME PLAYING] {18+}
156 watching -
10:23
Forrest Galante
12 hours agoAsking an Indian Billionaire Why He Is Saving 1 Million Animals
95.5K30 -
2:27:17
LexTronic
2 hours agoEditing Photos from DreakHack
5.43K1 -
LIVE
DoldrumDan
2 hours agoSEKIRO DAY 18 FIRST PLAYTHROUGH - DAY 37 NEW LIFE
29 watching -
23:30
Lady Decade
1 day ago $21.88 earnedYakuza Kiwami 3 is Causing Outrage !
55K13