Newsletter
Join our blog
Join other Azure, Power Platform and SQL Server pros by subscribing to our blog.
Start with the FREE community plan and get your lifetime access to 20+ courses. Get Instant Access Now!
Need help? Talk to an expert: (904) 638-5743
Private Training
Customized training to master new skills and grow your business.
On-Demand Learning
Beginner to advanced classes taught by Microsoft MVPs and Authors.
Bootcamps
In-depth boot camps take you from a novice to mastery in less than a week.
Season Learning Pass
Get access to our very best training offerings for successful up-skilling.
Stream Pro Plus
Combine On-Demand Learning platform with face-to-face Virtual Mentoring.
Certification Training
Prepare and ace your next certification with CertXP.
Private Training
Cheat Sheets
Quick references for when you need a little guidance.
Nerd Guides
Summaries developed in conjunction with our Learn with the Nerds sessions.
Downloads
Digital goodies - code samples, student files, and other must have files.
Blog
Stay up-to-date on all things Power BI, Power Apps, Microsoft 365 and Azure.
Community Discord Server
Start here for technology questions to get answers from the community.
Career Guides
Breaking into the field? Let these guides help get you started with a plan.
Affiliate Program
Earn money by driving sales through the Pragmatic Works' Training Affiliate Program.
Reseller Partner
It's time to address your client's training needs.
Foundation
Learn how to get into IT with free training and mentorship.
Management Team
Discover the faces behind our success: Meet our dedicated team
Contact Us
How can we help? Connect with Our Team Today!
FAQs
Find all the information youβre looking for. Weβre happy to help.
In this video, Matthew Peterson provides a solution for fixing issues with the search function in Canvas Power Apps. Recently, some users have experienced problems where the search feature that previously worked fine suddenly fails to return results, especially with certain data sources. Matthew walks through a practical workaround to resolve this issue by using a global variable and a simple trick to simulate user interaction with the search field.
Search functionality in Power Apps typically works by allowing users to type text into an input field, which filters data in a gallery based on the entered text. However, there have been recent reports where the search function appears to be "stuck," and no results are returned, even when the input field is used correctly. This issue is primarily seen with delegable data sources like SQL, where Power Apps relies on the data source to handle the search operation.
To work around this bug, Matthew introduces a simple solution using a global variable. The idea is to "trick" the input control into behaving as if a user had typed something and then erased it, causing the gallery to reload correctly. Here's how it works:
Default
property.OnStart
property to automatically simulate the input of a character followed by its removal.OnStart
property, use Set(VAR_Search, " ")
followed by Set(VAR_Search, "")
to set the search input to a space and then clear it.Default
property of the search input control.OnStart
function to trigger the simulated input and force the search results to display properly.Matthew explains that this issue mainly affects data sources where search is delegable, such as SQL Server, meaning the data source itself performs the search. In non-delegable data sources, like SharePoint, Power Apps handles the search, and the issue may not appear. The workaround ensures that search functionality is restored, regardless of the data source.
If you've encountered problems with search in your Canvas apps, this video provides a quick and effective workaround to ensure your galleries display search results correctly. By using a global variable and simulating input, users can bypass the issue until a permanent fix is available.
Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Power Apps and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up to date on the latest tips and tricks.
ABOUT THE AUTHOR
Matt Peterson is a Trainer for Pragmatic Works specializing in the Power Platform. He graduated from the University of North Florida in 2006 and comes with 15 years of teaching experience in high school algebra. Matt earned the accomplishment in 2013 of being named the Florida Gifted Teacher of The Year. His primary focus is helping our customers learn the ins and outs of Power Apps and Power BI.
Free Trial
private training
Newsletter
Join other Azure, Power Platform and SQL Server pros by subscribing to our blog.
Leave a comment