# QR/Barcode Generator

### Introduction

Sort Mark lets you generate a code as an image based on your selected parameters (you can also crop the values of those parameters, add suffixes, prefixes, etc.).

The images are placed in the **image-type** parameter.

To see the QR codes or barcodes, you need to make a schedule with the image parameter selected and drop that schedule onto a Sheet.

### Workflow

Let’s look at how to implement the QR / Barcode generator in your workflow:

1. First, determine which category of elements should get the QR or barcode. For this example, let's select the Windows category.

   <figure><img src="https://239424168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqtUsszuAWXIZhQhrvjnb%2Fuploads%2Fvz1Ul3d3Tr3CUHUxnsZL%2F0.png?alt=media" alt=""><figcaption></figcaption></figure>
2. After selecting the category, you will be prompted with a window asking you to select a parameter where the new QR or barcode should be written. You can create a new shared parameter for the selected category, or use the built-in **Image** instance parameter.

   ![](https://239424168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqtUsszuAWXIZhQhrvjnb%2Fuploads%2FUXasHRrDBbRD1HXptekV%2F1.jpeg?alt=media)
3. After selecting the parameter in which to enter the new QR or barcode values, a configuration window will open where you will need to enter some settings before generating the new codes.

   **1 -** Using the menu at the top, you can save your settings for future use.

   **2 -** Here you can see the name of the category and the parameter where the code will be created. Here you can choose the **Code Type** (QR or barcode) and the **size of the image** in pixels.

   **3 -** In the **Sort Mark tab**, you can select parameters from the left to compose the value of QR codes or barcodes. You can then add a Prefix, Suffix, and Take or Remove segments of the chosen parameter’s value.

   In this case, let's select the **Mark: Instance** parameter.

   ![](https://239424168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqtUsszuAWXIZhQhrvjnb%2Fuploads%2FEgW4qbkWJC50t8wcGoEV%2F2.jpeg?alt=media)
4. In the **Filtering tab**, you can filter out elements from the chosen category, if needed.

   <figure><img src="https://239424168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqtUsszuAWXIZhQhrvjnb%2Fuploads%2F5hTMV23qbhsrtHbRkgpc%2F3.jpeg?alt=media" alt=""><figcaption></figcaption></figure>
5. Click **OK** to run the configuration. An information dialog will show how many elements of the chosen category have been processed.

![](https://239424168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqtUsszuAWXIZhQhrvjnb%2Fuploads%2FZSVKY2zIoGPM0YaFvXOE%2F4.jpeg?alt=media)

### Results

Now, when selecting one of the windows, I can see that the QR code was generated as a .png image in the **Image** parameter.

![](https://239424168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqtUsszuAWXIZhQhrvjnb%2Fuploads%2FIMCzd0k8Jdv9xrEb7rbZ%2F5.jpeg?alt=media)

To see the QR codes, I will need to create a schedule and add the **Image** parameter to it.

![](https://239424168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqtUsszuAWXIZhQhrvjnb%2Fuploads%2FLOg7FtGLKy4DpOD5pAsT%2F6.jpeg?alt=media)

Finally, let's create a Sheet, place the schedule and the generated QR code is visible.

![](https://239424168-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqtUsszuAWXIZhQhrvjnb%2Fuploads%2Fhg1rvUdKGwBpwMz3YnAR%2F7.jpeg?alt=media)
