Error M1108 Error with Script field. The Attribute pointSize Is Not Defined Correctly
Description
When the attribute pointSize on the element field is not defined in the DTD/Schema, you receive the following error:
(M1108) Error with Script field 'scriptJ1' ; XML Parser Error
Explanation
Using scripting to change the point size of a field. The following syntax was written:
label.fields.field.(@name == 'fieldA').@pointSize=20;
label.fields.field.(@name == 'fieldZ').@pointSize=72;
When running this, the error above is generated because the syntax is not correct.
Solution
The script was written without qualifying the @pointSize element as a .font.@pointSize. All font properties should be qualified by ".font.@"
The correct way to write the script is:
label.fields.field.(@name == 'fieldA').font.@pointSize=20;
label.fields.field.(@name == 'fieldZ').font.@pointSize=72;
Article Number
2014080
Versions
Loftware Label A label is a design area on the computer screen where a label format is created or edited. Manager / Loftware Print Server versions 9.5.2.0 - 11.1
Environment
All supported installation environments.