Better way to handle initial blank variable value for data initialization?

Label printing integration (NiceWatch middleware and ActiveX programming interface)

Moderators: Georges, milos, NiceLabel Support Team

Post Reply
dan2
Newcomer
Posts: 3
Joined: Sat Aug 03, 2019 4:30 am

Better way to handle initial blank variable value for data initialization?

Post by dan2 » Fri Aug 09, 2019 7:40 am

I have a solution file (Nicelabel 19.1) that allows users to open an assortment of different external label files, all of which require a single OrderId variable in order to print. The labels use this variable as part of a SQL lookup to determine what to print on the label and how many to print.

I am currently using the Data Initialization function as the means for having the users pass the OrderId to selected label file. I would like to have a Label Preview object be visible to the users of what the select label looks like before printing without any extra clicks. The problem I'm having is that as soon a label is selected the preview displays the below error before the user even has a chance at entering an OrderId:

Image

Since Actions cannot be applied to Data Initialization there is no way that I've been able to work out that would make it possible to have the preview wait until an attempt was made by the user to enter in a variable. Is there another way I can accomplish this?

It would be nice if the functionality of the Label Preview was more like just opening up a label file to edit where the unknown, not-yet-set variables are simply shown as "?????" so you can still see the label's basic structure/sizing. If the user tries to print with an invalid variable (or none at all) THEN this error would display as a standard error message dialog.

Alternatively, if there was another to accomplish passing the OrderId to label other than this current setup, I would be open to trying that as well.


Thank you.

User avatar
Kyleodonnell
NiceLabel Support
NiceLabel Support
Posts: 472
Joined: Mon Aug 28, 2017 3:07 pm

Re: Better way to handle initial blank variable value for data initialization?

Post by Kyleodonnell » Fri Aug 09, 2019 2:14 pm

Dan,

The support team has already replied to your SRX ticket in support.

Post Reply