Zum Hauptinhalt gehen

Suche

Suche

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

Kommentare

3 Kommentare

  • Avatar
    Ian Cummings
    Moderator

    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

    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

    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]

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.