Hi there!
I have an app that has a table (this is part of the 35 or so lines):
based on this video:
https://www.youtube.com/watch?v=3DhShmNKHmc
ETC, I have a login screen
but I need to check that the Facility and Password match before the navigation part. in the video, it only covers the password match. I have fumbled for hours trying to get the context variable to load the screen part, like it does in the video, but cant seem to do it if the password and facility match.
It was an attempt to also combine this video:
https://www.youtube.com/watch?v=BN74SsN4mm8
which doesn't have the dynamic navigation part.
is there a way to check that the facility and password match, then dynamically navigate to the screen on the table?
this is my 50'th attempt, there were better ones but i stopped saving all the variations somewhere along the way:
btnOnStart://redirect and notify
If(
IsBlank(
LookUp(
colRedirect,
Facility_Location = VarGlobalFacilityBox.Selected.Value && Key = UserKey.Text
)
),
UpdateContext({locResult: UserKey.Text}),
Notify(
"Sorry, that combo is incorrect",
NotificationType.Error,
3000
)
);
Navigate(locResult.Screen,ScreenTransition.CoverRight);
Set(
GlobalPassword,
UserKey.Text
);
//preload contraband log information
Select(ContrabandLogButton)
Seems to be working, thank you!!
No.
Just to clarify, you mean to have another dropdown asking for which landing page they need?
Facility_Location="PutYourDefaultSiteOnDropdownListHere")})
They wouldn't really know which page they should be landing on without it being explained to them(in great, great detail). each facility has members that could land on one of 4 pages (the 4 landing screens that the passwords take them to are supposed to be AdminHome, SecretaryHome, Contraband, FacilityHome)
I would just, upon loading the screen set a context variable (in the screens onvisible to
UpdateContext({siteCheck, LookUp(colRedirect, Facility_Location="PutYourDefaultSiteOnDropdownListHere")})
then on the onchange of the dropdown for site set to
UpdateContext({siteCheck, LookUp(colRedirect, Facility_Location=dropdownname.Selected.Value)})
now this siteCheck contextvariable will not only include the site name but the password for it, so instead of doing anymore lookups you just check if the password matches the passwod stored in siteCheck, which already contains the site name matched to the password
WarrenBelz
146,605
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,946
Most Valuable Professional