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
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.
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.