For a project, I am using the barcode scanner component on perspective. When the user scans the barcode a popup window should be popped up; however when the user launches the session, the popup window pops up after the 2nd scan, the component completely ignores the action for the 1st scan or better to say the first data.
I wrote the code below for the property change script of the barcode scanner data:
if currentValue.value != previousValue.value: system.perspective.openPopup('myPopupId', 'PopUp')
Any idea of how this component can be programmed to not ignore the initial change?