Skip to content

Commit 56ac52e

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/powerapps-docs-pr into gregli-relate2
2 parents fb0e60a + 564f710 commit 56ac52e

File tree

4 files changed

+9
-114
lines changed

4 files changed

+9
-114
lines changed

powerapps-docs/maker/TOC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,6 @@
196196
href: ./canvas-apps/use-line-pie-bar-chart.md
197197
- name: Add multimedia
198198
href: ./canvas-apps/add-images-pictures-audio-video.md
199-
- name: Scan a barcode
200-
href: ./canvas-apps/scan-barcode.md
201199
- name: Add Power BI data
202200
href: ./canvas-apps/powerapps-custom-visual.md
203201
- name: Control reference
@@ -211,6 +209,8 @@
211209
href: ./canvas-apps/controls/control-audio-video.md
212210
- name: Barcode scanner (experimental)
213211
href: ./canvas-apps/controls/control-barcodescanner.md
212+
- name: Barcode scanner
213+
href: ./canvas-apps/controls/control-new-barcode-scanner.md
214214
- name: Button
215215
href: ./canvas-apps/controls/control-button.md
216216
- name: Camera

powerapps-docs/maker/canvas-apps/controls/control-new-barcode-scanner.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ The control supports QR codes, data-matrix codes, and these types of barcodes:
3939

4040
**Text** - Text that appears on the button that activates the scanner.
4141

42+
**OnScan** – How an app responds when a barcode is successfully scanned.
43+
4244
## Additional properties
4345

4446
**[BorderColor](properties-color-border.md)** – The color of a control's border.
@@ -63,4 +65,4 @@ The control supports QR codes, data-matrix codes, and these types of barcodes:
6365

6466
**[X](properties-size-___location.md)** – The distance between the left edge of a control and the left edge of its parent container (screen if no parent container).
6567

66-
**[Y](properties-size-___location.md)** – The distance between the top edge of a control and the top edge of the parent container (screen if no parent container).
68+
**[Y](properties-size-___location.md)** – The distance between the top edge of a control and the top edge of the parent container (screen if no parent container).

powerapps-docs/maker/canvas-apps/reference-properties.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Configure the appearance and behavior of a control by setting one of its propert
2626

2727
**[Audio](controls/control-audio-video.md)** – Play an audio clip or the audio portion of a video clip.
2828

29+
**[Barcode scanner (experimental)](controls/control-barcodescanner.md)** – Scans codes in a web browser (legacy/obsolete).
30+
2931
**[Barcode scanner](controls/control-new-barcode-scanner.md)** – Scans barcodes, QR codes, and data-matrix codes on an Android or iOS device.
3032

3133
**[Button](controls/control-button.md)** – Interact with the app by clicking or tapping.
Lines changed: 2 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,4 @@
11
---
2-
title: Scan a barcode in a canvas app | Microsoft Docs
3-
description: Scan a variety of barcode types, such as UPC and Codabar
4-
author: fikaradz
5-
manager: kvivek
6-
ms.service: powerapps
7-
ms.topic: conceptual
8-
ms.custom: canvas
9-
ms.reviewer:
10-
ms.date: 10/23/2016
11-
ms.author: fikaradz
12-
search.audienceType:
13-
- maker
14-
search.app:
15-
- PowerApps
2+
redirect_url: controls/control-new-barcode-scanner
163
---
17-
# Scan a barcode in PowerApps
18-
19-
Scan several types of barcodes by creating a canvas app and running it on a device, such as a phone, that has a camera. The numerical equivalent of the barcode appears in a **Label** control, and you can upload that data to a variety of [data sources](connections-list.md).
20-
21-
If you're unfamiliar with PowerApps, see [Get started](getting-started.md).
22-
23-
## Known limitations
24-
25-
* Barcodes should be at least 1" (2.5cm) high and 1.5" (4cm) wide.
26-
* To scan barcodes by using a phone, hold it in portrait orientation, and slowly move it from 7" (18cm) to 10" (25cm) away from the barcode.
27-
* Long barcode types (such as I2of5, which can have 15 or more characters) can give truncated or otherwise incorrect results, especially if the barcode isn't printed clearly.
28-
* For iPhones and Android devices, you can specify the **Height** property of the **Barcode** control, but a fixed aspect ratio determines its width.
29-
* You might need to set the **Scanrate** property of the **Barcode** control to **35** or less.
30-
* To delay running out of memory on devices that are running iOS, set the **Height** property of the **Barcode** control to **700** (or lower) and the **Scanrate** property to **30**.
31-
* If the device runs out of memory and the app freezes, restart the app.
32-
33-
## Create a blank app
34-
1. [Sign up for PowerApps](../signup-for-powerapps.md), and then do *either* of the following:
35-
36-
2. [Open PowerApps](https://create.powerapps.com) in a browser on a device that has a camera.
37-
38-
3. Under **Start with a blank canvas or template**, click or tap **Phone layout** in the **Blank app** tile.
39-
40-
![Create an app from scratch](./media/scan-barcode/create-from-blank.png)
41-
42-
4. If you haven't used PowerApps before, get familiar with key areas of the app by taking the intro tour (or click or tap **Skip**).
43-
44-
![Opening screen of the quick tour](./media/scan-barcode/quick-tour.png)
45-
46-
> [!NOTE]
47-
> You can always take the tour later by clicking or tapping the question-mark icon near the upper-right corner and then clicking or tapping **Take the intro tour**.
48-
49-
## Add a Barcode control
50-
1. On the **Insert** tab, click or tap **Media**, and then click or tap **Barcode**.
51-
52-
![Add barcode scanner](./media/scan-barcode/add-scanner.png)
53-
54-
2. Ensure that the **Barcode** control is selected by confirming that a selection box (with handles to resize the control) surrounds it.
55-
56-
![Selection box](./media/scan-barcode/selection-box.png)
57-
58-
3. On the **Home** tab, click or tap **Barcode1**, and then type or paste **MyScanner** under **Rename**.
59-
60-
> [!TIP]
61-
> The first **Barcode** control that you add is named **Barcode1** by default. If you delete that control and add another **Barcode** control, it will be named **Barcode2** by default. By manually renaming a control, you ensure that formulas will refer to the control by its correct name.
62-
63-
![Rename the barcode control](./media/scan-barcode/rename-barcode.png)
64-
65-
## Add a Text input control
66-
1. On the **Insert** tab, click or tap **Text**, and then click or tap **Text input**.
67-
68-
If the **Insert** tab doesn't appear, maximize your PowerApps window.
69-
70-
![Add Text input control](./media/scan-barcode/add-text-input.png)
71-
72-
2. Drag the selection box (not the resize handles) around the **Text input** control down until it appears below **MyScanner**.
73-
74-
![Label with selection box](./media/scan-barcode/move-input-text.png)
75-
76-
3. With the **Text input** control still selected, ensure that **Default** appears in the properties list, and then type or paste **MyScanner.Text** in the formula bar.
77-
78-
![Text property of the Label control](./media/scan-barcode/default-text.png)
79-
80-
## Change the barcode type
81-
1. On the **Insert** tab, click or tap **Controls**, and then click or tap **Drop down**.
82-
83-
![Add drop-down list](./media/scan-barcode/insert-dropdown.png)
84-
85-
2. Move the **Drop down** control so that it appears below the other controls on the screen.
86-
87-
![Move drop-down list](./media/scan-barcode/move-dropdown.png)
88-
89-
3. With the **Drop down** control still selected, ensure that the properties list shows **Items**, and then type or paste this string of text in the formula bar:<br>
90-
**[Codabar, Code128, Code39, Ean, I2of5, Upc]**
91-
92-
![Set the Items property of the drop-down list](./media/scan-barcode/items-property.png)
93-
94-
4. On the **Home** tab, rename the **Drop down** control to **ChooseType**.
95-
96-
![Rename the drop-down list](./media/scan-barcode/rename-dropdown.png)
97-
98-
5. Click or tap **MyScanner** to select it, ensure that the properties list shows **BarcodeType**, and then type or paste this string of text in the formula bar:<br>
99-
**ChooseType.Selected.Value**
100-
101-
## Test the app
102-
1. Open Preview mode by pressing F5 (or by clicking or tapping the play button near the upper-right corner).
103-
104-
![Open Preview mode](./media/scan-barcode/open-preview.png)
105-
106-
2. Hold a barcode up to the camera on the device until the numerical component of the barcode appears in the **Label** control.
107-
108-
If the numerical component doesn't appear, try a different option in the **BarcodeType** list. If the correct data still doesn't appear, type the correct number in the **Input text** control.
109-
110-
## Next steps
111-
* [Connect the app to a data source](add-data-connection.md) and configure the **[Patch](functions/function-patch.md)** function so that users can save results.
112-
* Add a **[Drop down](controls/control-drop-down.md)** control, and configure it so that users can choose which type of barcode they want to scan.
113-
* Add a **[Slider](controls/control-slider.md)** control, and configure it so that users can adjust the scan rate or the height of the **Barcode** control.
4+
Redirect file only - no content included

0 commit comments

Comments
 (0)