ZPL Code Viewer Widget - Renders ZPL (Zebra Printer ) Code as an image in your application

Hi All,

I wanted to start to share some of the widgets that we are building internally for the library to get some feedback from you as early developers.

This one is a ZPL widget that renders ZPL code into an image in your app.

It has one prop read only which take the ZPL code as an input.

customWidget-ZPL Widget.json (994 Bytes)

Please try it out and let me know if you have any feedback.


Well done Eddy! Very usefull. You give me the idea to create Label widgets that would allow Apps Builders to access ready to use ZPL templates build base on inputs (Article, batch number, EAN, …) and generate a correct ZPL code and an image. "A small step for apps builder, a big one for logistics :slight_smile:

1 Like

This is a very useful widget and have employed it in one of our apps.

I am encountering a very intermittent problem and wondering if anyone has experienced the same issue. I have an on step enter trigger that sets some values to build out the zpl and stores that in a variable. That variable is mapped to the custom widget. While it is hard to reproduce, there are times that the custom widget will load but the preview is not displaying.

Any thoughts on how this might happen? Is there a race condition where the widget loads after the on step trigger executes? It is intermittent so I haven’t found a way to replicate it consistently.

Hey @kirons,

I have seen similar behavior in the past (In my case I saw it when passing an aggregation to a custom widget). I struggled to reproduce this reliably enough to report a bug for it. The suspicion in that case is the widget runs its logic before the aggregation is calculated, so that was driving incorrect behavior.

Now that you are seeing it too, I will bring this up with the developers and understand if there isn’t something we can do to make this bahavior more reliable. Let me know if you find cases where it always fails and we will use that to resolve, otherwise I will do what I can to reproduce on my end.