# Perspective Scan Barcode Action

**URL:** <https://forum.inductiveautomation.com/t/perspective-scan-barcode-action/30871>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [December 20, 2019, 5:23pm UTC](https://forum.inductiveautomation.com/t/perspective-scan-barcode-action/30871 "2019-12-20T17:23:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HTC\_Enrico](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/htc_enrico/32/5239_2.png) [@HTC\_Enrico](https://forum.inductiveautomation.com/u/HTC_Enrico)\
**Post date:** [December 20, 2019, 5:23pm UTC](https://forum.inductiveautomation.com/t/perspective-scan-barcode-action/30871/1 "2019-12-20T17:23:15Z")

</div>

Hello, we have a view with two buttons A and B. A is to read a QR, B to navigate to another view. On A button’s OnClick Event we configured the Scan Barcode action. The A button has also a Message Handler to process the data received from the Barcode Scanned session event (to show some decoded info).  
The B button has no message handler configured, only an OnClick Event to navigate.  
When A is clicked, it opens 2 cameras screens in rapid sequence.The later reads correctly the QR, and the button does what expected, showing the correct info.  
After this happen, the B button shows the camera again. If the user click the camera Cancel link then the next view is shown correctly. Anyone is experiencing this behaviors? Any hints?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 2, 2020, 9:04pm UTC](https://forum.inductiveautomation.com/t/perspective-scan-barcode-action/30871/2 "2020-01-02T21:04:43Z")

</div>

Could you send me the View in question through a direct message or share it here?

---

<div class="post-metadata">

**Author:** ![HTC\_Enrico](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/htc_enrico/32/5239_2.png) [@HTC\_Enrico](https://forum.inductiveautomation.com/u/HTC_Enrico)\
**Post date:** [January 3, 2020, 12:17pm UTC](https://forum.inductiveautomation.com/t/perspective-scan-barcode-action/30871/3 "2020-01-03T12:17:26Z")

</div>

Thank you for your interest, here it is[QR\_SCAN\_ERROR\_2020-01-03\_1228.zip](https://us1.discourse-cdn.com/inductiveautomation/original/2X/c/c1e4252a29003d75b09c70dc28321c0001d286ce.zip) (35.4 KB)

It’s a project extracted from the original one. I tested with iOS.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 3, 2020, 3:21pm UTC](https://forum.inductiveautomation.com/t/perspective-scan-barcode-action/30871/4 "2020-01-03T15:21:04Z")

</div>

You have a San Barcode Event configured during an onClick Event for both your desired Button component AND your Column Container. Remove the onClick Event from your Column Container.

---

<div class="post-metadata">

**Author:** ![HTC\_Enrico](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/htc_enrico/32/5239_2.png) [@HTC\_Enrico](https://forum.inductiveautomation.com/u/HTC_Enrico)\
**Post date:** [January 7, 2020, 3:40pm UTC](https://forum.inductiveautomation.com/t/perspective-scan-barcode-action/30871/5 "2020-01-07T15:40:46Z")

</div>

Ops, obviously you are right.  
Thanks Cody!  
👍
