VB Script shall executed for named data source in case of "On Value Changed"
Dear community,
I have the following use case:
I have a form 1 with one text input box. Furthermore I have a named data source called „SCANNED_INPUT“ where the read data matrix code is written to.
Furthermore I have the following named data sources:
ART, ART_01, ART_02, REF, REF_01, REF_02
After the data matrix code is read and written to „SCANNED_INPUT“, I want that the following script is executed immediately:
Dim dataMatrixCodeParts
dataMatrixCodeParts = Split(Value, "|")
if UBound(dataMatrixCodeParts) >= 0 Then
Format.NamedSubStrings("REF").Value = dataMatrixCodeParts(0)
Format.NamedSubStrings("REF_1").Value = Format.NamedSubStrings("REF").Value
Format.NamedSubStrings("REF_2").Value = Format.NamedSubStrings("REF").Value
end if
if UBound(dataMatrixCodeParts) >= 1 Then
Format.NamedSubStrings("ART").Value = dataMatrixCodeParts(1)
Format.NamedSubStrings("ART_01").Value = Format.NamedSubStrings("ART").Value
Format.NamedSubStrings("ART_02").Value = Format.NamedSubStrings("ART").Value
end if
Based on the values of ART_01, ART_02, REF_01 and REF_02 two subsequent forms 01 or 02 shall be shown and the values of the named data sources shall filled within the text input boxes.
My issue is that I don´t get the code on the right place with the functionality that the code is executed each time the named data source „SCANNED_INPUT“ changes ("On Value Changed").
Program: BarTender Designer 12.0.0
License: Automation Edition (2 Printers)
Version: 12.0/252359 (64-bit)
OS: Windows 11 Pro x64 build 26100
Thanks in advance!
-
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar