跳至主內容

搜尋

搜尋

Multi QR-code variables for Query Prompt

評論

6 條評論

  • Avatar
    pthane

    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

    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
    pthane
    • 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

    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?

     
     

     

     

    0
  • Avatar
    pthane

    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 

    1
  • Avatar
    fernand obama

    Thanks Pete, I think I found my solution.

    0

登入寫評論。