Commander E-Mail Trigger, Extra Data And Template Picking
As I am new to the Bartender Enterprise suite, I would like to ask for some directions in how-to-solve my use case.
Background info;
The firm I am implementing for has a front office attached to a distribution center. The front office manages purchase orders consisting of purchase lines, each having an EAN-13 property.
The distribution center checks incoming stock against purchase orders and prints the barcode by pressing a button next to the purchase line.
All of the above is handled by a custom made web application.
Envisioned solution;
- the web application buttons mentioned before send an e-mail trigger which is caught by Commander (this makes an easy implementation because tasks can be triggered from any webbrowser, anywhere), so far, so good.
Requirements;
- the button/email trigger should tell commander which label template to use (each product manufacturer has a different template)
- the button/email trigger should tell commander how many copies to print
- the button/email trigger should tell commander which barcode to print (template variable?)
- the button/email trigger should tell commander which extra texts to print (some other variables)
Questions;
- What is the appropriate way to send extra data over the email trigger to meet the above requirements? I don't think I require a database, shouldn't I be able to send the template variables via the triggering email, i.e. by attaching a CSV or XML file, or maybe even plain text?
- Can I select a template via a trigger, e.g;
C:\Desktop\labelA.btw
C:\Desktop\labelB.btw
Is it possible, from my webapplication, to send an email trigger that tells command which of the above label templates to use?
Thanks for any guidance,
Kind regards
-
I have managed to get the email trigger working. It executes a CommanderScript using the %Trigger Contents% variable. Here's what my e-mail looks like;
%BTW% /AF="C:\Users\suitcake\Desktop\BarTender Examples\label.btw" /PRN="Zebra ZT410 (300 dpi)" /P /C=1
%END%
sample,csv,data
How do I connect the data to my label fields? It seems the database option requires a local file, a layer I rather not implement.
0 -
Create a connection to a template text file of the same field structure as you'll have in your email. Set data sources in the design to the appropriate fields in your template data file. Add the command /D="%Trigger File Name%" to your command line:
%BTW% /AF="C:\Users\suitcake\Desktop\BarTender Examples\label.btw" /PRN="Zebra ZT410 (300 dpi)" /D="%Trigger File Name%" /P /C=1%END%sample,csv,data0
サインインしてコメントを残してください。
コメント
2件のコメント