How To Handle Multiple /f Parameters In A Trigger File 关注

0
Avatar
Legacy Poster

I have one trigger file that contains data for two bartender designs

 

How can I handle this in one trigger file

 

I tried a set-up like this , but it does not work

 

 

 

%BTW% /AF="C:\directory\name.btw" /PRN="M4" /R=3 /P /D="%Trigger File Name%" /C=1 /S=1 /Close /AF="C:\directory\products.btw" /PRN="M4" /R=5 /P /D="%Trigger File Name%" /C=1 /S=3 /Close

%END%

"name";"address";"city"

"aaa";"bbb";"ccc"

"name";"product";"description"

"hhh";"jjj";"kkk"

"hhh";"www";"mmm"

"hhh";"ggg";"vvv"

 

 

How to handle multiple /F  or /AF parameters

Each design has its own parameters

 

 

2 评论

0
Avatar
Shotaro Ito
评论操作 固定链接

As I know, Commander script cannot handle two or more %BTW% commands (which actually calls BarTender) with embedded text database, within a trigger file.

There's some workarounds:

0
Avatar
Domingo Rodriguez
版主
评论操作 固定链接

Actually, you can indeed call 2 BTW commands within the same text trigger file, but if the trigger file also contains data, then both BTW calls will share the same set of data unless you set a query prompt on the database:

 

As an example:

 

%BTW% /AF="C:\directory\name.btw" /PRN="M4" /R=3 /P /D="%Trigger File Name%" /C=1 /S=1 /Close 

%BTW% /AF="C:\directory\products.btw" /PRN="M5" /R=3 /P /D="%Trigger File Name%" /C=1 /S=3 /Close

%END%

Your shared data here

 

Or

 

%BTW% /AF="C:\directory\name.btw" /PRN="M4" /R=3 /?myquery="A1" /P /D="%Trigger File Name%" /C=1 /S=1 /Close 

%BTW% /AF="C:\directory\products.btw" /PRN="M5" /R=3 /?myquery="A2" /P  /D="%Trigger File Name%" /C=1 /S=3 /Close

%END%

Your shared data here

 
Where myquery is a database query prompt which you've previously created in BarTender (at design time) via the "Query" tab of BarTender's database connection setup dialog. By using a query prompt, you can make it possible for one BarTender document to print a certain set of data, and the other BT document to print a different set of data.
 
However, if you own the Enterprise Automation Edition of BarTender, then your best solution is to make use of BarTender XML Script, as it is a more powerful solution than using Commander Script parameters.

请先登录再写评论。