I have a label template in BT 2022 R4 with several Named Data Fields that populate fine from a BTXML file, but the label template fields that contains a VB Script in the TRANSFORMS tab do not get populated because the named fields in the BTXML that are referenced in the VB never make it there.
All this VB Script does it decide to print a named field only if it is not null, and then add a CR to the end of each line it ends up printing.
Note that it is not the IF stmt that is choosing to not print the fields as I removed the IF's and it still failed to print anything.
Based on an article on Seagull's site regarding FORCING Named Data fields to be recognized in VB scripts, I added the ReferenceSharedSubString("<blah>") lines to the beginning of the script (see pic) and now it gives me the following error: OnProcessData (Line 1): Type mismatch: 'ReferenceSharedSubString'
As I mentioned already, all the other template fields referencing named data sources pull their data just fine from the BTXML files.
Here is a pic of my VB script:
Please sign in to leave a comment.