Text formatting when sending by JSON
Hello we have two questions...
We have our own software that sends a JSON to a Bartender integration, the problem we want to solve is that in a text where the ingredients of a product go, some of the characters are in bold and others are not. How can this be done if the text is sent via a JSON?
And another question, where we work we want to send the design to the SATO and they start to label in continuous mode so that between package and package to be labeled, 1 second passes, how can we make the design so that it writes the weight of the SATO?
It sounds like you are trying to print EU FIC food allergen labels.
The simplest way to do this is use the sample label that comes with BarTender and manipulate this to match your requirements. The label can be found in the Document>BarTender>BarTender Documents>Food Production and Processing folder.
With that label the data is sent as a standard text string (or from a database etc) and at print time the VB script routine kicks in to pick out the Allergens and bold these as required. For your application you would need to populate the Ingredients named data source with your ingredient data.
For the second part of your query it sounds like you linking up to a scale and so you may want to look at the Scale Display Data Entry option and see if that meets your requirements. .0
Hello, thanks for your answer, the allergens part is ok, but the weight is a bit more complicated .. I need to send a label where all the fields are fixed except the weight, the problem is that I cannot use the scale object or any form, that is, the scale is connected to the SATO printer via serial, and the labeling is online, that is, it is continuous and very fast between package and package.
The scale already sends the weight to the SATO but I don't know how to make it print on the label directly, maybe it's not possible.0
I have not linked up a Sato label to accept an external source before but I am guessing you need to configure the field on the label to be a Printer Code Template Field.0
Theoretically, sending part of the data for your label to the printer from BT, and having some of it come from the scale is doable. But the help you need most likely needs to come from SATO, as you'll have to use their driver commands to manipulate the printer into doing what you want.
Sato has both really good documentation on their drivers, and very good support in the US for this kind of thing. I don't have the name with me right now; but they have a guy based out of San Diego that can definitely help you get this done. If you call SATO US, they can put you in touch with him.
As far as making some of the characters bold, you can easily set that through your template. JSON is just format in which you'll provide the variable data to the integration. Even deciding on the fly which characters should be bold is doable, but only through the template. It has nothing to do with the integration. If the native functionality within Bartender doesn't work, you can always use VBScript to achieve it in the template.
Hope this helped.0