Skip to main content

Search

Search

Extract Query Prompt From Serial Number

Comments

6 comments

  • Avatar
    Peter Thane

    I think you are doing it backwards.

    Link the scanned input to the database lookup/filter, apply the transforms etc to that. to just get the part you need, and leave the serial number field on the label to extract the value from the database itself.

    The database filter will be applied before the Named Data Source field has a value I believe and so that could be the issue.

     

    0
  • Avatar
    Brandt Clawson

    Thanks for the suggestion Peter, that is the issue I'm running into as I try to use the named data source as a database filter: the filter doesn't apply without refreshing the database, unlike when we use a query prompt, which seems to apply the filter immediately.

    To make sure I understand your suggestion, you're recommending linking the scanned data to a query prompt and transforming to extract my product code, then the serial number field on the label is rebuilt solely from database information? I like that idea, but unfortunately the database is static. No individual product information is written to the database, so I don't have any way to reverse engineer the serialized portion reliably.

    0
  • Avatar
    Peter Thane

    If the serial number is already in the database then why do you need to revers engineer it? All you would be doing is scanning a barcode (of the serial number) via Transforms you can automatically strip off the bits you dont need and then BarTender will can be set to look in the Product Code field for the number extracted from the scanned data.

    Completely separate to the database filter a field on the label is linked to serial number and will printer value of the product code selected in the database. 

    0
  • Avatar
    Brandt Clawson

    Sorry, I maybe haven't been clear, but the serial number is not in the database, and is only presented to the operator on the label being scanned. The serial number includes some information from the product database, but also includes a serialized portion that is not recorded until a few steps after this label is created.

    0
  • Avatar
    Peter Thane

    Ok. What edition and version are you using? 

    0
  • Avatar
    Brandt Clawson

    I'm running 2022, R5 with an Enterprise edition license. 

    0

Please sign in to leave a comment.