Integration Builder - Modify Numeric Variable
I am new to using Bartender 2021 R5, and have a question specifically on the Integration Builder.
I have a complex integration (Nested Select Cases) but now am attempting to do what I think should be easy, but have yet to be able to be successful with it.
I have a variable that is passed via the web integration "Copies" that is just an integer. I have a specific label that is only printed half the time that other labels are printed.To accomplish this, I added an action "Set one Variable" and named my variable HalfCopies and in the value I put an expression (following the help on using expressions)
Name: HalfCopies
Value: <%Number(Copies) / 2 %>
This returns an error when I try to simulate the print "There are no templates to render and no forms to show"
I also tried with just using a different method:
Value: %Copies% / 2
Again returning the same error message.
What is the proper method to create a secondary variable that is half the value of the original variable?
Thank you in advance for your help with this.
-
I would normally process this in the label itself with am OnIdenticalCopies VB Event controlled script that would link to the field the in data file and then divide the value by 2 and then in turn connect this to the File>Print>Identical Copies box
0 -
That makes sense. It's not ideal in my case, as I print the same label in other circumstances and it forces me to either pass another variable to print only half the amount, or create a duplicate label that only prints half the required amount.
I was hoping for a way to do it through the integration, as I spent more time in the integration builder it seems like such a powerful tool, and this seems like it's something that the integration builder should be able to handle.
I will give it another bit to see if anyone knows a way to do it through the integration builder, if not I will follow your suggestion.
0 -
I got it to work through the Integration Builder with lots of trial and error.
<%Copies/2%>
0
Iniciar sesión para dejar un comentario.
Comentarios
3 comentarios