web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power App Gallery Sear...
Power Apps
Answered

Power App Gallery Search - Check-in system - Allow ONLY exact result and login automatically

(0) ShareShare
ReportReport
Posted on by 27

Hi All,

 

I have built a user registration, Check-in/Check-out system and all works well.

I'm moving forward and looking at having users tap-and-go, with a RFID card and a RFID card reader.

 

Screen > OnVisible: SetFocus(TextInput-SearchVisitors);

 

Text Input (for search): TextInput-SearchVisitors > OnChange: <-- Can I trigger a Gallery select from here?

Gallery-Visitors > Items:  <-- is there a better way to do than this? Not sure if Filter, Lookup or Search...
I don't want users to search for others (If I allow keyboard)

 

 

If(
 Len(TextInput-SearchVisitors.Text) = 10
 ,
 Filter(
 Visitors,
 TextInput-SearchVisitors.Text in CardID)
)

 

 

 

Gallery > Button: Btn-Login: OnSelect <-- I want to trigger automatic login if ID is found not click like I currently have to

 

 

If(
 ThisItem.Enabled = true,
 UpdateContext(
 {
 varChangeLoginIcon : Icon.EmojiSmile,
 popupEmailSupport: false,
 popupLoginSuccess: true,
 VarReturnToWelcomeTimer: true,
 }
 );
 ,
 UpdateContext(
 {
 popupContactSupport: true,
 VarReturnToWelcomeTimer: true,
 }
 );
 
)

 

 

 

Screen-Recording.gif

 

 

Is there a way to trigger login automatically, rather than have to click the Button in the Gallery?

Any Help is greatly appreciated.
Cheers,

Ryan

 

Categories:
I have the same question (0)
  • Verified answer
    Ryan1 Profile Picture
    27 on at

    I THINK I figured it out.....

    Moved my Button "OnSelect" code to the Gallery "OnSelect"...

     

    For my text input:

    // Check if exists & is enabled
    Set(
     varUserExists,
     LookUp(
     Visitors,
     CardID = TextInputCheckInSearch_1.Text
     )
    );
    
    If(
     !IsBlank(varUserExists) && GalleryCheckIn_1.Selected.Enabled=true,
     Select(GalleryCheckIn_1);
     UpdateContext({varChangeLoginIcon: Icon.EmojiSmile}),
     UpdateContext({varChangeLoginIcon: Icon.EmojiFrown})
    );

     

    This now fires up what i need....
    Added a check if User is Enabled/Disabled, will also change to "Check-out if they are In & Visa Versa... 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard