
PowerApps Barcode Reader - Help needed with OnScan parameter
- or -
Post a project like this£10(approx. $13)
- Posted:
- Proposals: 6
- Remote
- #4113632
- Expired
Web and App Development | Database Expert | Database Analysis| Python Developer

️ Python Developer | Web & App Development | Creative Content Writer | Graphic Designer Expert

⭐ TOP CERT Graphic Designer ⭐| Expert 2D/3D Render | Video Animator | Web Developer |Logo Designer |Graphic Animations | Video Editor ||Illustration.

IT Consultant |Virtual Assistant| graphics| | Website design | social media management .

10217969101897149487324209896611470055623148





Description
Experience Level: Entry
Hi,
I need some help with OnScan formula in PowerApps.
I currently patch data to excel web worksheet. User selects from dropdown, then inputs Order number. This works fine:
If(
!IsBlank(TextInput1.Text) && !IsBlank(Dropdown1.Selected.Workstations),
If(
IsBlank(LookUp(data, ORDER = TextInput1.Text)),
Patch(
data,
Defaults(data),
{
ORDER: TextInput1.Text,
TRACKAREA: Dropdown1.Selected.Workstations,
'TRACK-DATE': Text(Now(), "dd/mm/yyyy"),
'TRACK-TIME': Text(Now(), "HH:mm")
}
),
Patch(
data,
LookUp(data, ORDER = TextInput1.Text),
{
TRACKAREA: Dropdown1.Selected.Workstations,
'TRACK-DATE': Text(Now(), "dd/mm/yyyy"),
'TRACK-TIME': Text(Now(), "HH:mm")
}
)
)
);
Reset(TextInput1);
UpdateContext({ localConfirmationNotice: true });
SetFocus(TextInput1);
Refresh(data);
----------------------------------------------------------------------
Now I want to add the new BarcodeReader function. So user selects from dropdown, clicks on BarcodeReader button, and scans the "Order Number" and this patches the data to excel table.
Please advise where I am going wrong in following OnScan formula:
If(
!IsBlank(TextInput1.Text) && !IsBlank(Dropdown1.Selected.Workstations),
If(
IsBlank(LookUp(data, ORDER = First(BarcodeReader1.Barcodes).Value)),
Patch(
data,
Defaults(data),
{
ORDER: First(BarcodeReader1.Barcodes).Value,
TRACKAREA: Dropdown1.Selected.Workstations,
'TRACK-DATE': Text(Now(), "dd/mm/yyyy"),
'TRACK-TIME': Text(Now(), "HH:mm")
}
),
Patch(
data,
LookUp(data, ORDER = First(BarcodeReader1.Barcodes).Value),
{
TRACKAREA: Dropdown1.Selected.Workstations,
'TRACK-DATE': Text(Now(), "dd/mm/yyyy"),
'TRACK-TIME': Text(Now(), "HH:mm")
}
)
)
);
Reset(TextInput1);
UpdateContext({ localConfirmationNotice: true });
SetFocus(TextInput1);
Refresh(data);
I need some help with OnScan formula in PowerApps.
I currently patch data to excel web worksheet. User selects from dropdown, then inputs Order number. This works fine:
If(
!IsBlank(TextInput1.Text) && !IsBlank(Dropdown1.Selected.Workstations),
If(
IsBlank(LookUp(data, ORDER = TextInput1.Text)),
Patch(
data,
Defaults(data),
{
ORDER: TextInput1.Text,
TRACKAREA: Dropdown1.Selected.Workstations,
'TRACK-DATE': Text(Now(), "dd/mm/yyyy"),
'TRACK-TIME': Text(Now(), "HH:mm")
}
),
Patch(
data,
LookUp(data, ORDER = TextInput1.Text),
{
TRACKAREA: Dropdown1.Selected.Workstations,
'TRACK-DATE': Text(Now(), "dd/mm/yyyy"),
'TRACK-TIME': Text(Now(), "HH:mm")
}
)
)
);
Reset(TextInput1);
UpdateContext({ localConfirmationNotice: true });
SetFocus(TextInput1);
Refresh(data);
----------------------------------------------------------------------
Now I want to add the new BarcodeReader function. So user selects from dropdown, clicks on BarcodeReader button, and scans the "Order Number" and this patches the data to excel table.
Please advise where I am going wrong in following OnScan formula:
If(
!IsBlank(TextInput1.Text) && !IsBlank(Dropdown1.Selected.Workstations),
If(
IsBlank(LookUp(data, ORDER = First(BarcodeReader1.Barcodes).Value)),
Patch(
data,
Defaults(data),
{
ORDER: First(BarcodeReader1.Barcodes).Value,
TRACKAREA: Dropdown1.Selected.Workstations,
'TRACK-DATE': Text(Now(), "dd/mm/yyyy"),
'TRACK-TIME': Text(Now(), "HH:mm")
}
),
Patch(
data,
LookUp(data, ORDER = First(BarcodeReader1.Barcodes).Value),
{
TRACKAREA: Dropdown1.Selected.Workstations,
'TRACK-DATE': Text(Now(), "dd/mm/yyyy"),
'TRACK-TIME': Text(Now(), "HH:mm")
}
)
)
);
Reset(TextInput1);
UpdateContext({ localConfirmationNotice: true });
SetFocus(TextInput1);
Refresh(data);

Alex H.
100% (7)Projects Completed
6
Freelancers worked with
6
Projects awarded
42%
Last project
21 Nov 2023
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies