@Sahara22 ,
Firstly, you set Variables on the OnChange of the Slider and Zone. I would seriously suggest you simply use two Text Boxes for both and forget the slider.
OnChange of the Zone Text Box
Set(
gblZone,
Self.Text &
If(
Self.Text="1",
" hr",
""
)
)
On the Employee No Text box OnChange
Set(
gblEmp,
Self.Text
)
UpdateContext({varScan1,Self.Value)
and the second one
UpdateContext({varScan2,Self.Value)
Then a save button (not sure what you are doing with the second scan)
Patch(
Homebase,
Defaults(Homebase),'
{
WhoScanned:User().FullName,
'Date and Time:Now(),
'Employee Number':gblEmp,
Name: Not sure whay you want here,
Zone:gblZone,
'Equipment Number':varScan1,
Title:"Entry"
}
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.