Commander Fails To Recognize Query Prompt Replacement Parameter Follow

0
Avatar
Legacy Poster

I have a trigger setup to monitor a serial port for the word "pass" or "fail" to pass through it (coming from PLC).  If I receive the word "pass", I want to replace the only query prompt I have in the bar code template with the word "Pass".  I believe I have it setup to do so, but the label just prints the sample text in the query prompt of the template.

 

The object name of the data to print on the data entry form is called "Results"  I added /?Results = "Pass" to the extra parameters box on the general tab.  the full command parameters string from the Documents tab looks like this:

 

/AF="c:\BarCodeStuff\FPCLabel01.btw" /PRN="Zebra GK420d" /P /?Results="Pass"

 

 

Have I got the syntax wrong, or maybe the wrong object name for the query prompt?  How to I validate that I have the correct name for prompt?

 

Thanks,

 

Mike

3 comments

0
Avatar
Michael Toupin (mtoupin
Comment actions Permalink

What is the database result when you pass the query 'Pass'? It's going to populate that field with whatever the database shows for that result, so if it's not showing the appropriate value you're going to first need to look at your database and see what value is being reported for that field.
0
Avatar
Legacy Poster
Comment actions Permalink

It is a query prompt for text only.  When I run the template to print in bartender, it prompts me for the literal value to print on the label.  There is no database connection involved.

 

Mike

0
Avatar
Michael Toupin (mtoupin
Comment actions Permalink

That's the problem. Commander doesn't allow for that. What you'll want to do is to create a database connection then use 'pass' or 'fail' as your database field by using the /d="%Trigger File Name%" parameter. If you're using 10.1 you can as well use conditional printing to only show it if 'pass' is what's in there.

Please sign in to leave a comment.