QR Codes Module
  • 12 Nov 2021
  • 2 Minutes to read
  • Dark
    Light

QR Codes Module

  • Dark
    Light

Article summary

Overview

The QR Codes Module allows a user to generate QR Codes and also has the ability to read traditional barcode formats. QR Codes may be received by the Decisions Workflow from the environments with which Decisions is designed to communicate.  

The QR Codes Module must be installed before the QR Code steps can be used. To learn how to install Modules, click here.

Example

This example will demonstrate how to generate a QR Code in Decisions using the QR Module steps. 

  1. In the Designer Project, click CREATE FLOW from the Global Action Bar and select Flow. Name the Flow (QR Codes Module Flow) and click CREATE.
  2. Click the Done path on the Start step. Select the Show Form step and click ADD.
  3. With the Form selected, click PICK OR CREATE FORM from the Properties panel and select CREATE.
  4. Select Form from the Create New dialog window. Name the Form (QR Input Form) and click CREATE.
  5. Configure the Form with a Label (Please Input Text to Generate a QR Code:), Text Box (UserInput), and a Button component (Submit). Click Save and close the Form Designer.
  6. Click the Submit path on the Form step. Navigate to Integrations > All Integrations > QR Codes. Select the Generate QRCode step and click ADD.
  7. With the Generate QRCode selected, click Edit Input Mappings.
  8. Select Unknown from the Format field and click Constant.
  9. In the Format field dropdown box, select PNG. Click User Input {String} and drag the line to Value String [System]. Then, click OK.
  10. Click on the Done path of the Generate QRCode step and add another Show Form step. Configure the Form with an Image component (QRCodeImage) and Button component (Get Data From QR Code). Then, click Save and close the Form Designer.
  11. Click the Get Data From QR Code path and navigate to Integrations > All Integrations > QR Codes. Select Does Image Have QR Code and click ADD.
  12. Click the Display QR Code Form step and click Edit Input Mapping.
  13. Connect Generate QRCode_ Output to QRCode Image. Then, click OK.
  14. Select the Does Image Have QRCode step. Select Unknown next to the Data field under the INPUTS category and click Select From Flow. Select Generate QRCOde_ Output and select DONE.
  15. Connect the False path to the End step. Click the True path and navigate to Integrations > All Integrations > QR Codes. Select Get QRValue and click ADD.
  16. With the Get QRValue selected, select Unknown under the INPUTS category and click Select From Flow. Select Generate QRCode_ Output and click DONE.
  17. Click the Done path on the Get QRValue step. Select the Show Popup step and click ADD.
  18. For the Subject Field, select Unknown and click Select From Flow. Select Get QRValue_ Output and click DONE. In the Message field, enter "QR Code Value".
  19. Connect the Done path of the Show Popup step to the End step. Click Save to save changes to the Flow.


Debug

  1. On the top action bar, select Debug. Then, click START DEBUGGING.
  2. In the text box, enter "Jon Smith" and click Submit. A QR Code image will be generated. Click Get Data From QR Code. The Popup notification will display the value.
    The Flow validates the QR Code Image, then gets the text value from the QR Code and displays it on the Pop-up Notification.









Was this article helpful?