Skip to main content

Search

Search

Use the same template with variable data source/input

Comments

4 comments

  • Avatar
    Peter Thane

    Are the different data sources different databases/tables and if so are they single tables or are multiple joins required and also what type of the database are they? 

    How often are the different labels required and how much BarTender experience does the user have?

    Just wondering whether you could go down the Named Database route and, as and when required, adjust in Administration Console the path/link to the actual database being used. 

    0
  • Avatar
    Pierre Parisot

    Hello Peter,

    I see you answered 5 days ago, only now I received the notification… Sorry for my late reply.

    To answer your questions :

    - The different data sources are tables from a single database, in SQL Server. There are no joins used, only single tables.

    - I have a label which is used in 90% of the cases, but I still use each of the different labels at least once a day

    - About the user experience, are you asking about the user who is setting up Bartender, or the user who is actually printing the labels?

    Also, I would mention that all of the data source tables have a part of their columns which are the identical between them

     

    Thanks !

     

    0
  • Avatar
    Peter Thane

    The problem is if the data is coming from different tables for different layouts then to combine the formats into one, you would need to setup database joins. 

    If they were there, you could either add extra templates or else multiple substrings with conditional printing set so that BarTender knows which table the data is coming from for each string when a set/specified parameter occurs.

    0
  • Avatar
    Pierre Parisot

    I actually found a way by giving the selection task to SQL :

    - I created a stored procedure which takes the “case” as parameter, then returns the appropriate table

    - In Bartender I'm calling the procedure, not the table, and I'm passing the parameter as a query prompt

    0

Please sign in to leave a comment.