Unable To Get Value Entered In Four Text Input Box Of The Prompt Dialog Follow

0
Avatar
Legacy Poster

Hi,

 

I am creating a new label using an existing working label where there are four Text Input boxes instead of one. When the Prompt Dialog is started and the text Input box is filled, the VB script is not getting the value entered.

 

I have tried moving the VB Script from OnProcessData to OnPostPrompt and the results remain the same,

 

I am attaching the labels for your assistance. I am running version 9.4 SR3.

 

Working - Application Packet by Assoc ID

Non-working - Application Packet By 4 Digit and Name

 

Would someone be able to point me to right direction as to why the data in the label is not being passed to the VB Script?

 

Thanks in advance.

 

Chuen

3 comments

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

Not totally sure what you're trying to achieve here, but here are a couple of observations:

 

1. Two of the barcodes use a single line VB script that make reference to their own data source name thus resulting in a <script endless loop> error.  Normally such a script would make reference to some other data source or databse field and combine it with some calculation, concatenation, or conditional expression of some kind.

 

2. If you wish to modify/validate data coming in from a data entry form control then you use "value" as the input, and then at the end, "value" as the assignment.  Can you tell me the point of the script?  What is it supposed to do for you?

0
Avatar
Legacy Poster
Comment actions Permalink

Hi Ian,

 

For the one that I am working on the last four input text entry in the data entry form control are to send the value entered to a SQL query to return the data back out to the two bar codes uisng the single line VB script. The endless loop section was somethng that was completed by my predecessor.

 

At a high-level, the data entry form is for the operator to enter the Box Number (assigned to the first bar code label), the pertinent information on the employee to be used to return the employee ID (second bar code on the label) and employee name (third bar code on the label) using the four digit number plus their full name.

 

How would I capture the four digit number, last name, first name and middle name for the data entry form and pass it to the query in the VB Script? Form what I can tell using the msgbox() function, the information is not in the Format.NamedSubStrings("datasource").Value.

 

Any insight and guidance will be greatly appreciated.

 

Thanks in advance.

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

To take data from the data entry form you would need to use an event controlled VB script and use the "OnPostPrompt" event.  I tried this in a new, simplified label, on my PC, and it works just fine.  See an attached example: [attachment=912:Example..btw]

Please sign in to leave a comment.