
Announcements
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,
}
);
)
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
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...