Search

Help

Page 1 of 56. Showing 554 results (0.015 seconds)

  1. How to Use a String Replacement Script

    . This concept can be applied to other scenarios where character sequences in the data from the input file is not allowed. How to use a label script to replace a string or character The following procedure replaces a string or character with another string or character using a label script. This also allows passing of data
  2. Getting TypeError: can't convert AttributeName to string

    Description When generating a script on a label, you encounter the following error: TypeError: can't convert AttributeName to string Explanation This error … , the script is attempting to replace a value in the "energyCoST" field. Script2.jpg However, the field name in the actual label is named "energyCOST
  3. Scripting Basics

    and places it back on the label. ; ends the current string. Notes The script does not need to be contained in the field where the output ends up. By default … it sometimes makes it easier to trouble shoot a script with the //comments. This is especially helpful if the script is large and complex. Related Articles Article
  4. Script To Set Date Mask On Keyboard Field

    Description You may have the need to have userentered dates all conform to a certain date format, such as mm/dd/yyyy, regardless of how the users have entered the dates. Solution Create a script to adjust the date mask. The following script is an example of how to manipulate a date Keyboard field for dates using
  5. Useful Scripting Functions

    to see how someone could easily mistype this lengthy string. Functions can be cut and pasted into the script to reduce the required typing. function getData … Description This article outlines a few functions that are extremely useful when using the Field Level Scripting in Loftware. Most of the Loftware commands
  6. Using a Script to Inverse a Label Field

    a script. How to create a script to change the inverse property of a label field The actual script to change the inverse property of a field is as follows … . Create the following script: var input1 =String(label.fields.field.(@name == 'Text0000').@data); if(input1== "DANGER") image2017517 8:35:18.png The following
  7. Create a Script To Define a Printing Field Property

    creating scripts in a text editor such as Notepad and copying into the Data Source window). worddav8f3a32b9544e671ba6a61b83001f0775.png Related Articles Article … Description Create a field level script that prints (or does not print) a field based on the value of a key field. This is useful if you need to create a label
  8. Java Script Basic Sample to Modify Expire Date

    Description This article describes a Java script that calculates a future date, based on a date passed to a field on the label. Solution The script parses the date passed to the label and then can be configured to add a specified number of days to the date which is passed into a new field on the label. The script used
  9. How To Center a Code 39 Full ASCII Barcode Using Java Script

    Description How to center a Code 39 Full ASCII barcode using a Java Script datasource. This can also be used with standard Code 39 with a minor modification. How to Center a Code 39 Full ASCII Barcode using Java Script Use the following Script, but replace 'CODE39' with the name of your data input field. A Line field
  10. Script to Calculate the Difference Between Dates in Days

    . This can be done with a script. How to Create a Script to Calculate the Difference between Dates in Days The following script will compare a user entered date to the current date, and calculate the difference between the 2, putting the resulting number of days onto the label for printing. The script may be modified