Controlling the Printing of a Multi-Datasource Barcode Based upon a Data Entry Form Field Follow

Avatar
Nigel J. Navarro

Question

I do not want my barcode to print if I do not enter anything in the Data Entry Form.

However, there are other pieces of the barcode that are already populated with data. 

Answer

Use Named Data Sources.

When you name a data source in an object on a template, you are able to access the data contained within that data source and use it in other objects. This is useful for Conditional Printing, which needs to reference the data source and determine if the expression you have provided is valid or not.

  1. Add a Name to the field that is or will be tied to the Data Entry Form Field.
  2. Then, click the top of the barcode hierarchy.

  1. Click on the icon for Conditional Printing
  2. Select Conditionally, based on data source and choose your named data source.

More Information

Please see the following example:

Conditional_Printing_Named_Data_Source.btw

When you run it, try the following tests:

  1. File -> Print Preview -> Enter random numerical data -> Preview
    1. Notice how the barcode appears with all the data
  2. File -> Print Preview -> Preview
    1. Notice how no barcode appears
1 comments

0
Avatar
Bruce Tom Pearson
Comment actions Permalink

Can you user a drop down menu to change the type of printing the label does? example we have to print 2 labels one for the item and one for quality record. i want to set the form to allow the user to choose whether to print to label printer or print to PDF. can this be done?

other question is can i set up a label to print to both location without interaction from the user?

Please sign in to leave a comment.