Multi QR-code variables for Query Prompt S’abonner

0
Avatar
fernand obama

We use a two-stage label system. Label sticked when produced and an other label sticked when sold.

We are injected multiple variable(for eg. production date. maschine type, some specifications) in product label with a QR-code.

And now we want to read that QRcode with a USB-Barcode scanner, and automatic print final label. Here is the problem. I cant fill multiple Query prompts with one barcode read. All information is written on the first box.

or I have tried to take that information(Qr-code) in a variable so I thought to split it in data entry form actions and i can create a trigger file with that variables but I cant see the variables in actions.

Is there a way to read a QR code with multiple data, and after reading automatically label printing?

sorry for bad explanation.

 

6 commentaires

0
Avatar
Pete Thane
Actions pour les commentaires Permalien

Are the different elements in the QR code always of a fixed length? In which case you should be able to scan the code into one field (that is not on the label itself but is named) and then in each of the other fields link via VB to the named source and strip out the characters you dont need via Truncation. 

 

0
Avatar
fernand obama
Actions pour les commentaires Permalien

yes, I can arrange QR-Code length. But after Queryprompt input box, I cannot reach that value in data entry form. What should I do?

I have not much VB experience, Can you give me some tipps. Thanks in advance.

 

 
 

 

 

0
Avatar
Pete Thane
Actions pour les commentaires Permalien

  • Add a field off to the side of your label or else adjust the field to make it so it does not print. 
  • Give the field a name via the Change Data Source Name button on the Data Source tab of the field
  • Link that field to the box you are scanning your data into on the Data Entry Form
  • Add a new field on to the label and set this is a VB Script field set as an Event Controlled Script
  • On the AutoSelectedEvent i would suggest you change the Value = "Sample Text" to Value = "...." where .... is full contents of one of your QR codes (so you can see if the Truncation is working correctly)
  • Next in the column on the left scroll down to OnPostPrompt and type in the central box Value = and the in the column on the right double click on the name of the data field you set above and so your VB should look like this (I called the data field ScanHere)

  • Click close to exit the scripting box and then click Close again
  • Next copy and paste the VB script field on to the label a number of times equal to the number of fields that has data in your QR. I set it as 4 in the screenshot below with the field at the bottom being the original "ScanHere" field in my sample.
  • In turn go into the Properties of the fields and set the Truncation as required with the Discard Right/Left settings 

I hope this helps

 

0
Avatar
fernand obama
Actions pour les commentaires Permalien

Thanks, it seems like everything is O.K. I can use Text Input Box in Multiple Variables. But printing does not automatically start after scanning even though I have clicked the "Data is inserted by barcode scanner" button(in Textinputbox properties). I have to click print button every single one of scans. Queryprompts didn't have this problem. What do you suggest for that?

 
 

 

 

1
Avatar
Pete Thane
Actions pour les commentaires Permalien

You may need to amend your scanner settings. Most scanners by default include a carriage return after it transmits the data but if you were to amend this to a TAB and then a Carriage Return then the scanner should populate the entry field and then TAB to the print button and "press" it 

0
Avatar
fernand obama
Actions pour les commentaires Permalien

Thanks Pete, I think I found my solution.

Vous devez vous connecter pour laisser un commentaire.