Printing To Dynamic Label Formats Based On Xml Data S’abonner

0
Avatar
Legacy Poster

Hi, I'm trying to find a way to print using different .btw files depending on the data contained (or not contained) in the XML file I am passing to bartender. I have been able to print to one .btw file (CRD.btw) successfully. When I add a Search and Replace action to update any occurrence of "CRD" to "CRD2" to point to my CRD2.btw file, it fails with the error "Data at the root level is invalid. Line 1, position 1." Does anyone have any suggestions?

 

Here is the XML that is being processed by Integration Builder:

<?xml version="1.0" standalone="no" ?> 
- <!-- DOCTYPE labels SYSTEM "label.dtd"
  --> 
- <labels _FORMAT="CRD" _QUANTITY="1" _PRINTERNAME="usd-zprt-server" _JOBNAME="9184519">
- <label>
  <variable name="ATTR_PRINT_ID">9184519</variable> 
  <variable name="ATTR_PRINTER">usd-zprt-server</variable> 
  <variable name="ATTR_LABEL_TEMPLATE">CRD</variable> 
  <variable name="ATTR_LABEL_NAME">CRD</variable> 
  <variable name="ATTR_USER_NAME">JHUNTER</variable> 
  <variable name="ATTR_COPIES">1</variable> 
  <variable name="RECIP_NAME">John Doe</variable> 
  <variable name="ITEM_NUMBER">FUN717</variable> 
  <variable name="ACTIVATION_DATE">12-JUN-2016</variable> 
  </label>
  </labels>

 

Thanks,

Jeff

5 commentaires

0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

Are you using the Integration Platform in BarTender 2016 (or Commander in older software) to detect the XML and print labels from it in an automated fashion?

 

Assuming yes, you'd first run an XSL transform (XSLT) to transform the XML into BarTender XML Script (BTXML) which BarTender can then execute natively.  Of course, this will mean you'll need to write the XSLT to perform the transform in the first place.  The below link offers a good introduction on XSLT:

 

http://www.zvon.org/comp/r/tut-XSLT_1.html#intro

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Yes, I'm using the canned OracleXML.btin in Integration Platform. I have the Oracle WMS and MSCA Print Request to BTXML with no conditions (run always) with the EventData source variable. Followed by a Search and Replace to replace the printer name. Last is the Print Batch action. This all works fine. 

 

When I add another Search and Replace to update the template/format from CRD to CRD2, I get the error. I have tried adding the action either before or after the other Search and Replace action but it fails either way.

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Thanks for the tips Ian. I moved the Search and Replace actions prior to the Oracle to BTXML step and it worked!

0
Avatar
Vinay Talasila
Actions pour les commentaires Permalien

Hi Ian and Legacy Poster,

I am Vinay, facing some issue and I found that this solution is close to my issue but I am missing somewhere. Can I have a webmeeting with you and can you quickly help me regarding my issue. I appreciate you so much if you can help me.

 

Thanks

Vinay

0
Avatar
Ian Cummings
Modérateur
Actions pour les commentaires Permalien

Vinay; I suggest you first get in touch with technical support giving them a full set of information on what your problem is and what you'd like to fix it.  Do so via: support@seagullscientific.com

Vous devez vous connecter pour laisser un commentaire.