BTXML and "Missing" NamedSubString
I'm generating BTXML for my Bartender Document dynamically. Normally it will result in something like
Now and then I run into this problem, that if I have a Null values, then the NamedSubString tag will be left out/missing in by BTXML (as I would find ok, since missing is the same as leave out for me).
The problem is that Bartender then, for a reason I can't think of, chooses to use the last know value for the missing parameter !!! This result in labels having values from an earlier dataset !!
This is very BAD!!
I know that I can build some logic controlling if the tag is there and if not append it with an empty tag.
BUT I would find it more convenient if Bartender would stop being smart, so that if no tag is there then use a blank or do not use anything..... At least DON'T use data from the former label !
What to do here ?
Not sure Anders, could you make it that your BTXML file always has some form of value in the named field such as # for example and then use say the Search and Replace to look for the # and replace it with a SPACE for example?
I would also suggest that you make sure the BarTender document is closed and not saved after print. You can set these parameters in the BTXML <Format> tag. Refer to our BarTender help documentation here for more information on the <Format> tag.0
No! The point is that my BTXML is generated dynamically. So tags might be in or not. It's based on a query, and instead of having all tags always, it would be more convenient to just serve what is present a query time.
I had hoped that Bartender would just ignore it if the tag was not present!
Would that solve the problem not printing the "missing" tag on the next label ?
Would I then still have it logged so I can look it up in the Bartender Reprint Console and the History viewer ?