QR code scanner in portals - facing issue while re-scanning immediately after the first scan - barcode-scanner

Trying to include a qrcode scanner in the crm dynamics 365 web portals.
Used ‘html5-qrcode’ library, html, java script and build the scanner and included it onto the portal (which has options to scan using camera or by uploading an image)
The primary functionality is working perfect
on window load, display the buttons to open the respective scanning option
on click of the button, the scanner canvas is opened and is ready to scan. Place the scanner in the grid to start scan.
and after successful scan, populate the barcode input field value with the scanned data.)
Fill the remaining fields and submit the form; a record is created in the crm, indicating the functionality is working fine.
In the above step, what if I scanned the wrong qr code and want to scan again?
For this, after the successful scan and before form submit, there is an option provided to rescan the qrcode(rescan button); which technically has the same functionality as the scan button(changed the scan button name to rescan).
ISSUE: When clicked on the rescan button, it tries to validate the form and reloads the page, but does not open the scanner as before. This issue arises for both functionalities; scan from camera and scan from image.
Any help would be much appreciated.

Related

How to initiate customer value for screen in touchGFX

I have build an application using touchGFX and STM32 based on STM32F746 Disco kit.
My application have some screens with some value to display on screen. These value can setting and change by user. Every time when these value change I will save them to eeprom.
When I turn off power and turn on again, I have read these value before start display screen, but them can't to load to screen until I pressed some button on screen (pressed button I will fresh this screen).
So my question:
How can I initiate customer value for screen and display them when startup in touchGFX
Thanks.
This is simple, just load your data in presenter->activate().
I suggest you read the article on back-end-communication. It explains how to propagate values from your Model (e.g eeprom).
https://support.touchgfx.com/4.18/docs/development/ui-development/touchgfx-engine-features/backend-communication
From TouchGFX Designer you'll find several examples that do something similar from an F769-DISCO board (sample a button and propagate that value to the UI).

How to clear the page while pop in Flutter

I'm setting one Page that shows the Employees List in Card. While pressing on a specific Card, it navigate to another page that shows specific employee details. I added a back button in app bar to pop.
The Problem is when clicked first time, it shows the correct details. But when back button is pressed and another profile is clicked, the screen shows the same previous employee details.
What to know how to clear the Screen while pop in Flutter?
Well with no code or error logs ,its difficult to deduce the source of the error.However you could check into state management of you app, data source (is it fetching the right data from database, api etc), could you have hard coded the data.

UITableViewController stops with (lldb) error after deleting Core Data record

Using storyboards, I have a few views connected. The first view displays all races. Once a race is clicked it is passed to the 2nd view controller, which displays all runners. The user can add/edit/delete runners on the 2nd view.
Everything works as expected if you add or edit records. Even deleting records works as long as you're on the 2nd view. If you have deleted any records, as soon as you press the button to navigate back to the original controller (standard UINavigation back button) the app stops and the only error is (lldb).
Any help is appreciated. Please let me know if additional details would be helpful.

How to get the text of the second button on WPF application

I am using CodedUI to automate on a WPF application, I have 2 buttons in a form, I want to verify the text of each button. But when running only have passed script. Because The actual result of the second script is always the actual of the first button. So how I get the second text to verify? Please help me.
(I saw they are the same AutomationID when I record)
Check the search properties and search configurations of the buttons in the uitest file. If the properties are ambiguous, codedui will find the same button each time. If you have access to the application source, try giving the buttons unique friendly names.

Issue after editing Search Properties in coded UI?

We are using coded ui test using visual studio 2010.We are testing .Net 4.0 windows application.
Here is an scenario.
We have an windows app which has a button named submit and we have recorded a workflow which clicks on submit.
Now when we generate code using coded ui the serach criteria for the button is based on its name (display name of button).
If tommorrow developer changes the button's text to submit1 , our scripts fail.
We tried using "controlName"[name given to the control and not the display name] property in search criteria instead of Name , but it does not work.
We get following error - "The playback failed to find the control with the given search properties"
Related problem happens to me also. I solved it by sending the Focus to the UI control before using that control.
Try this.
this.UIAssettePresentationsWindow2.UINOWindow.UINOButton.SetFocus();

Resources